Events Manager – OpenStreetMaps

Omschrijving

Requires Events Manager to be installed & activated.

0% Google, 100% open source.
Use the free and open source OpenStreetMap to show your Events Manager Location Maps.

Existing locations work right out-of-the-box.

This plugin completely replaces the original Google Maps API (paid) with OpenStreetMap (open source). Once installed and activated, this plugin will automatically disable the Google Maps integration in Events Manager for you and replace them with OpenStreetMaps.

Available Options:
– Set Marker Color per location.
– Set Map Type per location.
– Set default Marker Color.
– Set default Map Type.
– Set default Zoom Level.
– Show/hide Zoom Controls.
– Show/hide current Zoom Level.
– Show/hide Full Screen Control.
– Show/hide Map Scale (metric & imperial).

There are currently 12 different map tile types available (overview in the Plugin Settings Page).

Please note:
Multiple Location Maps will apply the custom marker colors per location, but will always use the default map type.

Geolocation Search is currently not available when using this plugin.

Localisation

  • US English (default)
  • Dutch (included)
  • French (included)
  • German (included)

The plugin is ready to be translated, all texts are defined in the POT file. Any contributions to localize this plugin are very welcome!

Feedback

I am open to your suggestions and feedback!
Please also check out my other plugins.

Schermafdrukken

  • Single Location Map.
  • Multiple Locations Map.
  • Select Map Style and Marker Color.
  • Edit Event Page (Front-End Submission).
  • Add padding to the map.

Installatie

  1. First make sure the original Events Manager plugin is installed and activated.
  2. Install and activate this plugin.
  3. Upon activation this plugin will automatically disable the Google Maps integration in Events Manager for you.
  4. Enter your free OpenCage API key and preferred settings in the options page.
  5. Enjoy the free OpenStreetMaps on your website.

FAQ

Are you part of the Events Manager team?

No, I am not!
I am not associated with Events Manager or its developer, Marcus Sykes, in any way.

Do I really need Events Manager?

Yes, this plugin is an add-on for Events Manager. It cannot be used without it.

What is the big benefit of OpenStreetMap?

1) OpenStreetMap uses a free, open source platform.
Check their website for more information: OpenStreetMap.org.

2) This plugin with OpenStreetMap will not request any visitor (location) info to display the map. So, that makes it easier to include in your own GDPR compliance.

Why are Map Sizes different?

The maps shown in the meta boxes (Add/Edit Location & Event in the back-end and the front-end submission forms) have fixed dimensions of 400px X 300px (EM default) to ensure a correct display of the meta boxes.

You can set the dimensions for #_LOCATIONMAP (single location) in Events → Settings → Formatting → Maps.
These will also be the default dimension for the [locations_map]. If you wish to display the [locations_map] differently, you can set those dimensions from within the shortcode: [locations_map width="500px" height="500px"]

My maps won’t load / Map tiles all over the screen

All EM OSM scripts and styles need to be loaded in a very specific order. Caching & optimizing plugins tend to combine multiple files into one. Please exclude the ‘/wp-content/plugins/stonehenge-em-osm/’ folder in the settings of your optimization plugin to prevent these errors.

Why is my map not visible?

You probably have set your map dimension in percentages (100%). Please check Events → Settings → Formatting → Single Event Page → Single Event Page format.
Replace: <div style="float:right; margin:0px 0px 15px 15px;">#_LOCATIONMAP</div>
With: #_LOCATIONMAP
Because the div has no width set, it is automatically scaled to 0px. Therefore your map is filling 100% of 0px.

If you are using a caching plugin and/or optimizer plugin, please exclude wp-content/plugins/stonehenge-em-osm/ in the settings of that plugin. OSM Leaflet assets have to be loaded in a very specific order and such optimizers break that. All included assets are fully optimized already.

All EM OpenStreetMaps are being wrapped in a div.
You can target that with custom css in your stylesheet to best suit your theme’s responsiveness. “#em-osm-map-container {}”

Can you add more Map Styles?

Technically I can, of course. The suggested Map Tiles need to be publicly accessible without the need for an additional API key, though.

Beoordelingen

1 december 2019
Thank you so much for this great plugin. It is a huge benefit for Events Manager!
15 oktober 2019
The Plugin is a very useful alternative to GoogleMaps for EventsManager. I really can recommend it. And Patrick provides a really quick and detailed support. Definitely 5 stars!
20 augustus 2019
I avoid Google's tracking services whenever possible, and I don't want visitors to any of my sites to automatically be tracked and surveilled. This plugin does exactly what I needed it to do -- override Google Maps and make OSM the default. Thank you so much for this awesome plugin!
24 april 2019
Perfect setup. Perfect ease of use. Perfect integration with Events Manager.
Lees alle 21 beoordelingen

Bijdragers & ontwikkelaars

“Events Manager – OpenStreetMaps” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“Events Manager – OpenStreetMaps” is vertaald in 2 talen. Dank voor de vertalers voor hun bijdragen.

Vertaal “Events Manager – OpenStreetMaps” naar jouw taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

3.0.0

In Events Manager version 5.9.7 a lot of changes were made that influenced this plugin. Especially in how locations are now being saved and updated.
– Bug fix in a new location not being saved and going back to coordinates 0,0 (center of the world map = the ocean below Gold Coast).
– Bug fix in custom colors and markers not being saved for new locations.
– Bug fix in selected map type not being applied after Ajax search.
– Bug fix in if the marker is draggable or not – dragging the marker will change the found coordinates to place it even more accurate. The marker is only draggable if the location address fields can be edited as well (creating a new location in the Edit Single Event Page or creating/editing in the Edit Single Location Page).
– Tested & confirmed compatibility with Events Manager version 5.9.7.1.

2.9.9.1

  • Minor bug fix that prevented the option to hide the zoom control buttons.

2.9.8

  • Minor bug fix in responsiveness of the form fields in Edit Location page.
  • Improved plugin dependencies.
  • Some CSS changes for WordPress 5.3.
  • Confirmed compatibility with WordPress 5.3.

2.9.7

  • Disabled unavailable Geo Search options in the Events Manager settings to avoid confusion. This plugin does not support Geo Search, because EM has that much too entangled with Google Maps.

2.9.6

User Requested:
Added the argument for extra padding (in pixels) inside a multi-marker map.

  • Map Bounds and Zoom Level are always automatically calculated, but this additional argument will allow you to zoom out a little.
  • Can be applied to [locations_map] and [events_map].
  • If not used, the map will (still) default to 10.
  • Usage: [locations_map padding=”50″].

2.9.5

  • User Requested: Added four additional Stamen map tiles (Toner, Toner Lite, Terrain & Water Color).
    Their maximum zoom level is 18. Max zoom is automatically adjusted if one of these servers is selected, to prevent gray screens.
  • Minor bug fix in responsive layout of the location select dropdown admin page.
  • Updated readme.txt file.
  • Confirmed compatibility with WordPress 5.2.4.