Google Maps cost $$$ in spite of using “Embedded Maps”
-
Hi!
I make heavy use of maps on my site https://padelfinder.de/ where i list padel locations in germany. To keep the cost low, i am using the “Embedded maps” setting in Events > Settings > Google Maps & Location Services.
Now, Google is billing me $$$ nevertheless and when searching for a reason, i stumbled across this sentence in the EM documentation:Also, if you're using the [events_map] or [locations_map] shortcode, each map load will count as one Dynamic Maps API call. If you have multiple maps on a single page, each map displayed counts as one map load, even if on the same page.I use the shortcode maps
[locations_map width=100% height=100% limit=500]on most category pages and#_LOCATIONMAP{100%,0}on the location pages.
My questions are:- Is there a setting in free or pro versions of EM to make shortcode maps stick to the preset map type? Or are they always going to be dynamic maps that cost $$$?
- With my settings, only the shortcode maps cost $$$, right? Maps on location pages using
#_LOCATIONMAP{100%,0}are embedded and thus free, right? - Is there an option in free or pro versions of EM to natively use alternatives to Google Maps like OpenStreetMap? Now or in future?
Thank you so much for clarifiying and pointing me in the right direction.
🙂🙏
-
This topic was modified 2 months, 1 week ago by
Oliver Gelbrich.
The page I need help with: [log in to see the link]
-
I don’t believe that Events Manager ever uses embedded maps. All API accesses of Google Maps counts towards your free quota. You can get 10,000 free API calls per month. Make sure the Google Maps API key is restricted to your website: https://wp-events-plugin.com/documentation/google-maps/api-key/
I’m not aware of any options or plans to use other maps such as OpenStreetMap.
Not sure if it will work for you but I use https://wordpress.org/plugins/stonehenge-em-osm/
Thanks for getting back to me, @joneiseman 🙏
That would be weird – there is a setting to choose dynamic, static or embedded maps and in the EM documentation, it says “Embedded maps are free to use. That is the major advantage… set it and forget it! However, there’s are some trade-offs… customization and flexibility.” here: https://wp-events-plugin.com/documentation/google-maps/map-types/#embedded-maps – I always thought this applied to all map instances.
You mean the toggle maybe doesn’t change anything? Maybe @msykes can clarify 🤔
I have the proper restrictions in place in my API manager, good point though! https://padelfinder.de/ is headed towards 100.000 pageviews/month, and most pages have a map on them… so the point “Embedded maps are free to use.” is very relevant to me.@aces – that looks very interesting, thank you 🚀 i’ll have a look at it, but it says “This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.” which makes it sound sketchy… What site are you using it on, can I maybe take a look? What is your experience with it?
I implemented support for OSM in Events Manager. The modified code is located here: https://github.com/jeiseman/events-manager/
Here’s the list of modified/added files:
admin/settings/tabs/general.php
includes/js/events-manager.js
includes/js/events-manager.js.map
includes/js/events-manager.min.js
includes/js/events-manager/min.js.map
includes/js/src/Gruntfile.js
includes/js/src/package.json
includes/js/src/parts/google.js
includes/js/src/parts/osm.jsI sent this information to @msykes so hopefully he will incorporate these changes in the next release.
I missed one file that was changed: classes/em-scripts-and-styles.php
@ogelbrich
The plugin has worked pretty well for the last about 8 years.There is a warning on the staging site around ‘$parsley is deprecated’ and another set with
_load_textdomain_just_in_time()but no ill effects, however I am worried that it will break. If you want to see it in action on the site see westbourneforum.org.uk/map-of-event-locations/I think it would be much better if OSM was built into events manager, especially if switching over from stonehenge-em-osm is relatively painless. Hopefully it will happen soon!!!
OMG @joneiseman you’re a hero! thank you so much, I’ll try and implement that. ❤️
thanks for your feedback @aces , I’ll have a look at that as well! 🙏
Hi @ogelbrich ,
I created a plugin to add OSM support so you don’t need to modify the Events Manager plugin code. You can find the plugin here: https://github.com/jeiseman/events-manager-osm/tree/main/wp-content/plugins/events-manager-osm
You can find the zip file for the plugin here: https://github.com/jeiseman/events-manager-osm/blob/main/events-manager-osm.zip
After you install the plugin, OSM will be added to the list of Google Map Types in the pulldown.
legend! @joneiseman
thank you so much, this makes it so much noob-friendlier… it DOES work like a charm, just switch the map type in setting.
but it seems to have some problems with the pins? i get a lot of broken images, is that a setting i need to adjust somewhere? in google maps, I just have the standard location pin, nothing fancy…
and on my detail pages it doesn’t fill the container provided for it, but that’s probably some of my CSS to fiddle with…
i have screenshots here: https://nc-2869441302961419809.nextcloud-ionos.com/index.php/s/Bs3YFzJBbjE37Zx-
This reply was modified 2 months ago by
Oliver Gelbrich.
-
This reply was modified 2 months ago by
You must be logged in to reply to this topic.