Wordfence flags this plugin as abandoned because it has not been updated for 2 years. Is this plugin actually abandoned? If not, are there plans to release an update soon? Help.
]]>Hi,
when my page loads, it will only show a partial map which is not centered. When I resize the window, everything works as expected.
I embed the map with shortcode [locations_map].
I use the following JQuery functions:
jQuery(‘document’).ready(function(){
var width = jQuery( window ).width() / 2.5 + “px”;
var height = jQuery( window ).height() – 100 + “px”;
jQuery(‘.em-osm-map-multiple’).css(‘width’, width);
jQuery(‘.em-osm-map-multiple’).css(‘height’, height);
});
and basically the same for window resize.
Why does this work on resize but not on page load?
]]>The OpenStreetMaps plugin no longer works with EventsManager 6.4.3 and EventsManagerPro 3.2.4. No map is shown on the events page.
Your help would be appreciated.
Regards,
]]>Just upgraded to events manager v6.4.1 and WordPress had a severe failure which it identified as being due to this plugin. Only way to sort it was to use the WordPress admin recovery link and then deactivate this plugin. I see that someone also encountered this when upgrading to v6.3 of Events Manager. Plugin therefore seems to no longer work with EM.
Error is as follows:
This plugin failed to load properly and is paused during recovery mode.
An error of type E_ERROR
was caused in line 79
of the file /home/site/public_html/wp-content/plugins/stonehenge-em-osm/classes/class-admin.php
. Error message: Uncaught Error: Undefined constant "EM_LOCATIONS_TABLE" in /home/site/public_html/wp-content/plugins/stonehenge-em-osm/classes/class-admin.php:79 Stack trace: #0 /home/site/public_html/wp-includes/class-wp-hook.php(308): Stonehenge_EM_OSM_Admin->alter_locations_table() #1 /home/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #2 /home/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /home/site/public_html/wp-admin/admin.php(175): do_action() #4 /home/site/public_html/wp-admin/index.php(10): require_once('/home/site/...') #5 {main} thrown
I am trying in vain to output my locations with Openstreetmap on Event List/Archives so that the display type Map will list the current events on the map. For single Events or shortcode output no problem. Can anyone help me?
]]>Hi, I’m trying to create a map of all our locations via the locationsmap shortcode, like this:
[locations_map country="United Kingdom"]
However, it opens as a map showing all Europe and Africa and the user would have to click multiple times to zoom to our small area.
I can’t see how to set the centre of the map and the zoom level but assume it can be done either with another argument in the shortcode or via a filter.
How would I do that?
Hi, is there a straightforward way to disable zoom when scrolling with a mousewheel or trackpad?
]]>Dear OpenStreetMaps support team,
unfortunately, I am getting a severe WordPress failure with OpenStreetMaps and the today’s Events Manager 6.3 update!
Works again if I roll-back to Events Manager 6.2.1.
Kind regards
Michael
]]>Hello,
I love the plugin but on the EM event submission form I was finding that people either submitted no location OR submitted mutiple instances of the same location. When I checked, I found that the auto-search for existing locations was not happening, and it works when I have the plugin disabled and Google Maps enabled in EM. I do not see any errors in the console, I have the Open Cage API added and Search Address works to find locations — it’s just that nobody from the front end can find existing locations so I end up with duplicates.
]]>Hi, I have installed Event Manager and the OpenStreetMaps plugin. Obviously I got the API Key and in the backend page of the event (after having saved the places), the correctly geolocated map appears to me. Unfortunately the map does not appear in the frontend, I checked all the documentation by doing several tests, but unfortunately I was unable to solve. In the console I only see this error:
Failed to load source map in DevTools: Failed to load content for https://www.imfi-ge.org/wp/wp-content/plugins/wp-google-maps/lib/ol.js.map: HTTP Error : status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE.
The WP version is up to date and I’m using PHP 8.1. I also tried disabling the plugins to no avail
The reference Events page is as follows:
https://www.imfi-ge.org/wp/calendario-eventi/
Where am I doing wrong?
Best regards
]]>Hey Patrick,
Thanks a lot for working on this EM – OSM plugin. I was wondering what it would require to add PDOK integration in EM Location Maps?
]]>This is more of a bug report than a support request. Plugin works great just the following small issue. My environment:
PHP Version 7.4.30
WordPress Version 5.8
WP_DEBUG true
WP_DEBUG_DISPLAY true
SCRIPT_DEBUG true
WordPress displays this notice when calling wp_localize_script() from the plugin:
]]>WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
Hi – I just installed this using a free API key. The basemap is missing, however.
Thanks
]]>Hi,
I want to use my own tile server. How I have to use [em_osm_default_tiles] for setting my url?
Thx!
]]>Hi, does anyone know if “Events Manager – OpenStreetMaps” works with the new release of Events Manager v6?
Cheers, David
]]>Tried to add a new location to Events Manager but the search address button did nothing. Looked at my browser console and found a 401 error when using the API to OpenCage to get the coordinates.
https://api.opencagedata.com/geocode/v1/json?key=*******Hidden for priavcy****&q=111%20Ottawa%20Street%2C%20Toledo%2C%2043604%2C%20OH&no_annotations=1&add_request=1&pretty=1&language=en
I went to the OpenCage website and it might be that they limit the api calling it a Free Trial so it might expire at some point.
This only effects attempts to add a location. Previous maps work fine
]]>I don’t know when that happened but the OpenStreetMaps plugin stopped finding the entered location address, nor showing it on the map.
The old entries are still showing on the map correctly. Here is an example that shows the map correctly.
https://stragglersofasia.co.uk/locations/jesus-college/
The link below is a location as generated by Events Manager. On the map the location is near Africa, and on the backend the Find button does nothing. The address of the location is found by Google Maps.
I disabled and enabled the map plugin to no avail. I need guidance please to make the map system work.
]]>I have a working OpenCage API key. When I search for a location, the location shows up in the autocomplete, but the map does not update. When I save the event, the map is also not showing correctly. See this screenshot https://ibb.co/rHSNmwG
I am on Events Manager Version 5.12.1, Events Manager Pro 2.6.7.2.
]]>Hi,
I’m struggling to get the map to load on the front end. I can make it load on the back-end by clicking the search button but I can’t figure out how to make that also appear in the front end. I think I need to do that since, as I understand it, the OSM won’t load automatically since the open cage server isn’t called automatically on loading the page?
Thanks
Mark
Just a note re your FAQ item on “Why is my map not visible?”
I found that for the map to show on the location page, you need to add
<p>
#_LOCATIONMAP
<p/>
into the Single location page format
THe FAQ says put it in the single event page format – well, yes, if you want it there too….
It would b worth adding this point to the FAQ
Hello,
I’m using this plugin for quite a long time and I’m pleased with it.
The only thing I could complain is that the marker color is not using the category color.
How can I change it ?
Thanks
Hello and thank you for making this super cool plugin. =)
Since I dynamically add a marker from a txt filefor real time purposes, I used to hook into the em_maps_locations_hook/em_maps_location_hook hook and add my marker.
Studying your code brought up that you didn’t implement a replacement fpr those hooks. So I added them myself and would like to ask you if there might be a chance to get them into your code base?
Edits to class-maps.php:
In single_map function in line 217 after “setTimeout(function(){ thisMap.invalidateSize()}, 400);”
–> jQuery(document).triggerHandler(’em_osm_maps_location_hook’, [thisMap, thisMarker, marker, ‘map<?php echo esc_attr($id); ?>’]); <–
as well as in multiple_map function:
366 (before the for loop): var markers = [];
382 (after var maker = …): markers.push(marker);
394 (after setTimeout): jQuery(document).triggerHandler(’em_osm_maps_locations_hook’, [thisMap, locations, markers, ’em-osm-map-<?php echo esc_attr($id); ?>’]);
Hello,
I am not sure where the filter em_osm_default_tiles should be implemented. Usually such filters are implemented in the theme’s functions.php. But the filter is called as the plugin is being constructed, and functions.php is called later, when the theme is being loaded. Wouldn’t it be better to call the method later, say in get_location_tiles?
Thanks,
Ron
Hi,
I use your OpenStreetmap plugin with a lot of fun! And I see now, that you have many more of those great plugins!
Unfortunately again I have the problem that the location is not found and only the 0/0 point is shown off the coast of Africa.
It has worked well for two and a half years without a single problem. At that time it was the Piwik plugin solved in this topic:
https://www.ads-software.com/support/topic/no-data-available-from-the-location/
But I also use your plugin on this website https://vrijzutphen.nl/ where the piwik plugin is installed, where I have no problems with automatic location recognition.
And yes, I updated all plugins and themes last week.
Do you have a possible solution?
Best regards, Rovanov
Hey
What about also making your plugin work with other events plugins?
Such as:
https://theeventscalendar.com/products/wordpress-events-calendar/
as well as others…
Perhaps even: https://www.ads-software.com/plugins/my-calendar/
Or perhaps sharing advice to others on how to incorporate the map into their plugins.
Thank you!
]]>Edit: moved to Google Maps
Hi,
Thanks for your plugin.
We can not see the map on the page. Not on the front-end and not on the backend.
We dont use cache and I have an active API Key.
Is there something I overlook or is it a bug?
]]>I am creating EM Events and Locations via a Gravity Forms. This is working, but new locations don’t have GPS longitude and latitude. Is there a function I can call for the location post to do the location search programmatically after creating the location?
do_location_search($post_id)
Thank you for this nice plugin and you work!
]]>Hey,
Thank you for sharing this nice plugin with the WordPress community and thanks for the time and effort for maintaining and enhancing it.
I suggest to add some information on the access key of OpenCageData.com to the plugin’s description page. It seems that the key is required to make OSM maps work in the backend? That could add some transparency for users and help them understand what the key of this third party is required for. What are your thoughts on this?
]]>Hi Patrick,
My location maps on location detail pages are not responsive. On mobile, the map is bigger than the screen. For these pages I use the Event Manager formatting and have the following code:
<div style="float:right; ">#_LOCATIONMAP</div>
How can I make them responsive?
I already tried this:
@media screen and (max-width:1000px) {
.em-osm-container {max-width: 100% !important;}
}
But that doesn’t work.
]]>Is there any way to change the font size of all the cities and villages on the map? On my map, even the names of the big cities are not readable because they are too small. It is ok that big cities have a bigger font, but now nothing is readable.
]]>