Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
[resolved] [Plugin: Leaflet Maps Marker - OpenStreetMap, Google Maps, Bing Maps - easy mapping for everyone] No (3 posts)

  1. Krvislav
    Posted 3 years ago #

    as you can see here there are no markers on the map (however they are listed beneath the map). But when you view the map on fullscreen, they are there.
    As a workarnoud I tried to embed the map via iframe and it worked, but the fullscreen map does not show the list of markers.
    My client needs the mat to show the markers on the map and also the list of all markers.

    I tried de-activating, reinstall, manual install, tried to disable all plugins, different theme various settings but with no luck.

    If there is a fix for this, let us know.

    Thanks :)


    [Moderator Note: your other topic was removed because it was a duplicate. Forum Rules]

  2. RobertHarm
    Plugin Author

    Posted 3 years ago #

    Hi Krvislav,

    thanks for pointing this out - I found the problem: the markers are loaded from a subdomain via AJAX and so we are getting a problem with same origin policy.

    This will be fixed in v2.8, allowing leaflet-geojson.php to load also from subdomains. It will take a few more days till v2.8 is ready, so if you want to fix this in your installation, please open leaflet-geojson.php, search for global $wpdb; (line 29) and add the following line before:

    //info: set php header to allow calls from other (sub)domains
    header('Access-Control-Allow-Origin: *');

    This should solve your problem.


    PS: as support is given for free, I´d really appreciate a donation and/or a vote for the plugin on wordpress.org ;-)

  3. Krvislav
    Posted 3 years ago #

    Thank you! It is fixed now. :)

    I really appreciate it. Of course we will support you. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic