This page is closed, find the new forum here:

>> WordPress OpenStreetMap Plugin Forum <<


451 comments on “Forum-EN
  1. Paul says:

    I am trying to use the plugin with KML files generated by the android ‘backtitude’ app. Google earth can open them OK, but for some reason, they do not display in the plugin. I have tested with the supplied test kml file. I can get that to work. I am using the http url method for the files. The test kml works, the backtitude ones display no plot. No error is displayed I can see. Is there any way to turn on any debugging etc? A file is here It does seem valid, so not sure why no plots are shown by the plugin. Thanks for any advice. Would love to get this working.

  2. Marcel says:


    I’m very happy user of the plugin, but yesterday I updated to version 3.5.5. Unfortunately, since then it isn’t possible for me to publish any blogposts or pages anymore with the plugin activated.

    With the plugin activated, I get the following message when trying to edit or publish a blogpost:


    You don’t have permission to access /wp-admin/post.php on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    When I deactivate the OSM-plugin, it is possible again to publish a blogpost/page again. no problems at all.

    Do you have ideas about this? I like the maps very much, so I don’t like it to have them deactivated…

    • MiKa says:

      Hello Marcel,

      in the plugins/osm directory there is a file called: “osm-config-sample.php”. Can you open it and change:

      define ("OSM_enable_Ajax", True);


      define ("OSM_enable_Ajax", False);

      and let us know if this fixes the problem.

      Br, MiKa

      • Marcel says:

        Hello MiKa,

        That worked out well! After making that change in the file, it is possible again to publish posts and pages again. And the maps on my site are also still working, so problem solved for me.

        Thanks and have a great day!

        Kind regards,


  3. Rafael says:

    Mika, could you fix this page: ? I think the shortcode is missing, maybe was written without the * asterisk.

  4. Marcus says:

    And yes, another thing. The widgets/helpers are not found on the edit screen on custom posts. Only on post and peges. Just for your info.
    Thanks again!

  5. Marcus says:

    Hello again!

    I’m one of those that’s keen on getting the tagged_type=”” to be able to use custom post types. It worked in the older version but is needed also in the v3.
    Thanks for all you work!!

  6. MiKa says:

    Thank you for the info!
    Br, MiKa

  7. Mathieu says:

    I can’t see all informations on my map, on my website. Do you know why ? Thank you !
    You can see my problem here :

  8. Val says:

    Hi MiKa, do you roughly know, when import=”exif_m” will be supported in osm_map_v3 (or is something like this already implemented)? Would love to see that feature in the new shortcode so that I can change everything to the new version! Thanks a lot! Val

    • MiKa says:

      Hello Val,

      hope to find some time end of this year … but there are still some other topics with more prio. At least it is fixed that it will be also merged to the new shortcode since we want to get rid of the osm_map shortcode as soon as possible.

      Br, MiKa

  9. Dmitri Don says:

    Trying to use your WordPress Plugin, couple of issues so far, please help:

    1) when geo tagging a post/page, coordinates get saved succusfully, but if I refresh the page/post in the editor, tagging widget would not display the current coordinates. Is this a bug or this is normal?

    2) I tagged couple of pages, now trying to display them on a single map, and after generating a shortcode and pasting it into the page, I see following when viewing the page:
    [OSM-Plugin-Error]:No posts/pages with geotag found!
    [OSM-Plugin-Error]:Tagged_Filter: osm_all
    What am I doing here wrong? I tried to view pages and posts. I even tried to get rid of _v3, and then map is displayed without red errors, but still nothing on the map.

    • MiKa says:

      Hello Dmitri,

      add 1.) If you geotag the post / page you will see the selected icon at the place you set. If you refresh the page it is removed and you can reset the the geotag at another place.

      add 2.) Can you post the shortcode here. Or even better create a testpage, add the map and also the shortcode with a “*”.
      Make sure there is no formatting in your shortcode (eg kursiv “).

      Br, Michael

  10. Todd says:

    Hi Mika,

    I’m testing the v3 shortcode and I miss the mousewheel zoom. I do understand that it can be annoying when scrolling through a page with embedded maps, but if one is interested in a specific map, the zooming is quite handy.

    Would it be possible to add a parameter to the shortcode to enable mousewheel zooming if wanted? The shift+drag thing is neither obvious nor well-known, unfortunately.

    Also, if the mousewheel zoom could be enabled by default in fullscreen mode, that would be great.

    I’d try to look into this and send patches for the above, if you’d accept them for a future version.


    • MiKa says:

      He Todd,
      We will not change osm_map anymore, but since you are the second who is asking for the mouswheel, we will consider it.
      Br, MiKa

  11. Todd says:


    just a quick hack to make (at least the default OpenStreetMap tiles) truly transport-agnostic:

    In osm/js/OSM/openlayers/OpenStreetMap.js and osm/js/OL/2.13.1/OpenLayers.js replace the references to http://* with //* The browser will then use whatever the page uses (https or http).

    I hope something like this will make it into the next release. Keep up the great work.


  12. Ovidiu says:

    trying to replace old map style with new v3 one and failing.

    [ * osm_map lat=”50″ lon=”12″ zoom=”3″ width=”100%” control=”scale,mouseposition,scaleline” map_border=”thin solid lightgrey” theme=”dark” marker_name=”mic_photo_icon.png” import=”osm” type=”OpenStreetMap”]

    [ * osm_map_v3 map_center=”50,12″ zoom=”3″ width=”100%” map_border=”thin solid lightgrey” control=”fullscreen” theme=”dark” marker_name=”mic_black_camera_01.png” import=”osm”]

    The v3 version has a huge ugly “dot” that links to openlayers? Is my code above correct otherwise?

  13. Valentin says:

    Now, as Google Maps are not supported anymore [1], might it be possible to include the beautiful Nokia Here Maps [2]?


  14. ovidiu says:

    Starting a new comment as the other is pretty hard to read by now.

    Need some help with the osm_map_v3 short code

    The code I use is this:
    [ * osm_map_v3 map_center=”-34.115,18.445″ zoom=”10″ width=”100%” height=”450″ kml_file=”” map_border=”thin solid black” control=”fullscreen” z_index=”0″ theme=”dark” type=”Mapnik”]

    – Apparently in v3 one has to use map-center instead of lon/lat?

    – can I keep using kml_file or do I need to use file_list?

    – I had to stop using control=scale,scaleline,mouseposition,fullscreen and only stick with fullscreen as I was getting errors, is there a list of possible controls?

    – I have replaced the built-in icon which pointed to Google: with a local one: yet I see no markers or routes and

    – the output looks really bad, there is a white thick border on top of my map which is due to an empty p-tag

    – the full-screen button only maximizes width not height, why would it do that?

    See the problem live here:

    • MiKa says:

      Hello ovidiu,

      pls use the shortcode of my first answere: 27. Oktober 2015 um 06:34.

      Anyway, I will create an article abute osm_map vs osm_map_v3. To your questions:

      * Apparently in v3 one has to use map-center instead of lon/lat?
      MiKa: Yes, tried to make it simpler

      * Can I keep using kml_file or do I need to use file_list?
      MiKa: No, osm_map_v3 is a new shortcode with new arguments.

      * I had to stop using control=scale,scaleline,mouseposition,fullscreen and only stick with fullscreen as I was getting errors, is there a list of possible controls?
      MiKa: osm_map_v3 is a new implementation. Up to now only fullscreen is implemented, other will follow …

      * the output looks really bad, there is a white thick border on top of my map which is due to an empty p-tag
      MiKa: Where did you get dis empty p-tag from?

      * the full-screen button only maximizes width not height, why would it do that?
      MiKa: At the moment it’s limitted to this …

      Br, MiK

      • ovidiu says:

        Oh no, I’m embarrassed. I saw your shortcode but thought that it was meant as a place holder, didn’t realize you were using absolute an path with ..\..\ instead of the full URL.

        The empty p-tag is gone, that was a quirk of my editor 🙁 I found an option to disable it: Automatically add paragraphs – unchecked.

        Thanks for all the detailed answers and I’m now using your shortcode copy/pasted it. Looks perfect but 2 questions remaining:

        – still no icons and I edited the KML file and replaced the default icon which Google Maps had inserted with one of your markers according to the KML example you linked to.

        – does the V3 shortcode accept arguments to use another map, preferably Google maps?

  15. mike says:


    I currently use a Google Maps widget – that I would like to replace with yours.

    But from what I can see, your widget cannot be simply dragged into a widget area and appear – or have I missed something?



    • MiKa says:

      Hello mike,

      to use WP OSM Plugin widget you have to add the widget in your widget area and then, when you write your post/page, you have to set a geolocation. This geolocation will be shown automatically in a widget …
      What was your usecase?
      Br, MiKa

  16. ovidiu says:

    Anyone able to help with a couple of issues? I also asked about them on the WP dot org forums but there was no response.

    1.) Google Physical isn’t loaded, I have to swithc to Satelite then back and it works.
    The code used is:
    [*osm_map lat=”50″ lon=”12″ zoom=”3″ width=”100%” height=”520″ control=”scale,mouseposition,scaleline” map_border=”thin solid lightgrey” theme=”dark” marker_name=”mic_photo_icon.png” import=”osm” type=”AllGoogle”]

    2.) Trying to display a kml file kinda fails.
    I tried the following codes:
    [*osm_map_v3 map_center=”-34.139,18.412″ zoom=”10″ width=”100%” height=”450″ map_border=”thin solid black” file_list=”” type=”AllGoogle”]
    [*osm_map lat=”-34.115″ lon=”18.445″ zoom=”10″ width=”100%” height=”450″ kml_file=”” map_border=”thin solid black” control=”scaleline,mouseposition” z_index=”0″ theme=”dark” type=”Mapnik”]

    I tried setting type to AllGoogle with both and it doesn’t work.
    Can anyone spot any errors in the above examples?

    • MiKa says:

      Looks like the trouble are related to AllGoole … regarding the kml file … did you try:

      [osm_map_v3 map_center="-34.115,18.445" zoom="10" width="100%" height="450" map_border="thin solid black" file_list="../../../../wp-content/uploads/2015/10/Southern-Peninsula-Drive.kml" control="fullscreen"]

      Post a link if this does not work …
      Br, MiKa

      • ovidiu says:

        Simply not getting this to work 🙁
        so I went ahead and published the post, hope we can fix this.
        You can see the shortcodes used on the page, please advise how to properly display the kml file with markers. Ideally with Google maps and all the proper controls visible on the map.

        • MiKa says:

          Hello ovidiu,

          you have to specify the icon for the marker in your kml file. Have a look to the sample page:

          br, MiKa

          • ovidiu says:

            I’ve seen that but this is a kml file exported from Google My Maps – any directions how to include the marker directly there before the export? I’ll read their manual, maybe I’ll figure it out.

            Also if you follow my link you can see that my second try with osm_map not that one with osm_map_v3 shows markers but it doesn’t show any map controls.

            Just realized things are messed up, using Chrome I see map markers and no map controls, with IE I don’t see markers but controls 🙁

          • ovidiu says:

            oh, btw. when exporting from Google’s My Maps, I can export as KMZ or check the box for this setting: “Export to a .KML file instead of .KMZ (does not include custom icons).”

            BUT I don’t have any custom icons.

            Any advice on how to proceed?

            • MiKa says:

              Hello ovidiu,

              I do not know these google tools … looking at the sample you will see that your kml file present routes and placemarks. For placemarks you should define the icon in your kml-file. The address should be also on your own domain …

              • ovidiu says:

                Thanks, I had tried a search/replace but it seems only the filename for the icon isn’t enough. Will try next with the full domain/path to the icon.

                Seign that you don’t know Google Maps, what other tools (ideally free) are there for creating routes and places? Maybe you can add this info in your FAQ?

                • MiKa says:


                  I am working with Viking and wrote some lines here:


                  And you should use the osm_map_v3 tag …

                  Br, MiKa

                  • ovidiu says:

                    Thanks for the Viking pointer.

                    Just wondering why you didn’t say a word about V3 when I pointed you to my post earlier? I had used both options there, none was working. Since you completely ignored the V3 tag, I deleted it and focused on getting the default one working.

                    So, ok, I’m back with V3 now and this code:

                    [ * osm_map_v3 lat=”-34.115″ lon=”18.445″ zoom=”10″ width=”100%” height=”450″ kml_file=”” map_border=”thin solid black” control=”scale,scaleline,mouseposition,fullscreen” z_index=”0″ theme=”dark” type=”Mapnik” ]

                    is giving me [OSM-Plugin-Error]:Invalid usage of control tag!

                    Any ideas?

                    I have successfully replaced all markers inside that file.

  17. Adrian Harper says:


    Are you able to offer some advice regarding icon descriptions. I am using a kml file displayed on my map but the icons are created ok and the name is shown however the descriptions are not.

    The kml file opens on google earth ok and the descriptions are shown as expected on there but not when i open the kml file using the openlayers plugin.

    Many thanks

  18. Hi! The OpenWeather does not work. The map does not show nothing. This problem will be solved? Thank you.

  19. Hey all,

    Have have a map using type=”ext” (to use a different tilemap as background layer) and multiple kml files with kml_file_list. But somehow when I use type=”ext” the box for selecting overlays disappears. How do I get this back? When I don’t use type=”ext” I do get it, and also my multiple kml files in there, so I can switch each of them on or off individually.

  20. Marc says:

    Now I use OSM Plugin in a second website (the french local currencies website) and wrote an “how-to use OSM on WordPress” page.

    • MiKa says:

      Hi Marc,

      very nice to see that you have been working on a second page using WP OSM Plugin. I will forward the link on twitter and facebook. If you have some time left, an article on HanBlog.Net about your work with the plugin could be nice. In English or French.

      Br, MiKa

  21. Masare2 says:

    Hi MiKa!
    I took a look to my site tonight and I saw that all my maps were gone.. the markers are still there but the maps are not
    I don’t know whn it happened, I’ve been quite busy in the last months!
    I see that the code has changed… “osm_map_v3 map_center” etc..
    do I have to update the code in all my map pages? have you got any suggestion on how can I do it?
    my central map is here

  22. Daniel says:


    I tried to add a list of markers (containing only one marker for now, but I’ve tried with more than one too), but I couldn’t make it work. Can somebody tell me, what I did wrong?

    My osm plugin code looks like this (without the star):
    [*osm_map_v3 map_center=”52.795,11.185″ zoom=”5″ width=”100%” height=”450″ marker_file=””]

    and my marker.txt looks the following:
    lat lon title description icon iconSize iconOffset
    54.029367 11.545837 Salzhaff Beschreibung 20,20 0,-20

    Does anybody see a mistake??

    • MiKa says:

      Hallo Daniel,

      osm_map_v3 wird txt files nicht mehr unterstützen, empfehle Dir daher entweder KML files oder GPX files zu erzeugen. Wenn Du dennoch txt verwenden willst, dann musst Du den alten Tag osm_map verwenden. Für Dein File sieht das dann wie folgt aus:

      Im Text-file war auch noch ein Fehler, einmal war ein Leerzeichen statt einem Tab.

      Br, MiKa

  23. Patrick says:

    Hi Mika,

    I really appreciate your plugin and using it a lot. However, currently I’m trying to combine both a KML file and geotagged posts in one map. However, it seems that the geotagged posts still need the old tag (osm_map) and the KML the new tag. Are you aware of this or am I missing something here?



    • MiKa says:

      Hi Patrick,
      you are right, the new tag does not cover it, you could to it with the old one (osm_map), which could combine it or just wait … for an upcoming version.
      Br, MiKa

  24. Great plugin. At your convenience, I’m having a little trouble displaying photos in the map. I can get a GPX trail in the map, but not photos. Seems not to pic up the exif data. I got it to work in another post and can’t figure out whats wrong. Code below, thanks for any help!

    for the post

    15 miles and 50 pictures in urban Hawaii.
    On 15 August 2015 I walked through my home, Honolulu, with my Nikon 3300 and a 50mm lens. What a saw was Honolulu’s own mixture: tourists, workers, and homeless; graveyards and mountains; high rises and shacks; stone walls and chicken wire; palm trees and light posts; alleys and highways; streams, sand, and sea.
    [osm_map_v3 map_center="21.275,-157.809" zoom="13.5" width="80%" height="400" file_list=",," type="stamen_toner" file_color_list="blue,blue,blue" import="exif_m" marker_name="mic_photo_icon.png" ]
    [gallery size="full" columns="2" ids="176,175,174,173,172,171,170,169,168,167,166,165,164,163,162,161,160,159,158,157,156,155,154,153,152,151,150,149,148,147,146,145,144,143,142,141,140,139,138,137,136,135,134,133,132,131,130,129,128,127"]




  25. Alexey says:


    Just a quick one, on this example:

    Clicking on waypoint popup shows: Nameundefined

    That fixes it in osm/js/osm-v3-plugin-lib.js:
    desc_str = features[i].get(“description”);

    => desc_str = ”;

  26. First, many thanks for this excellent plugin. It is the most flexible mapping plugin I have found; most others seem to insist on using Google Maps – the OpenStreetMap maps work better in my application.

    I’m having some difficulty with KML files and v3 maps. See the samples on this page here:

    The top sample uses osm_map_v3 and the bottom uses the older osm_map. Both use the same KML file, generated by Google Earth.

    You will see that in the osm_map_v3, the paddles are displayed at double the size compared to the osm_map. These are Google’s standard map paddles and are made that size for retina displays but usually scaled to 32px on non-retina displays. Is this behaviour intended?

    Also, is it possible to style the bubbles which pop up when clicking a paddle? In the osm_map, bubbles use most of the available width but in the osm_map_v3, they are narrow and some of them overflow the height of the map window.

    Many thanks.

  27. Valentin says:

    Hello Mika,

    would it be possible to include the map types of stamen toner and stamen terrain in near future? Apparently, stamen toner was supported once, but at the moment it does not work on your example page. And especially the terrain map ( is very beautiful.

    Thank you for your great work!

  28. ovidiu says:

    map stopped working (at least google physical)

    once you switch to google sattelite and back its ok. Any ideas?

    • MiKa says:

      Hello ovidiu,

      thx for this feedback! Will have a look to it next week.

      Br, MiKa

      • ovidiu says:

        thanks, I would have switched to osm_map_v3 but couldn’t find proper documentation. If there is, please point me there, otherwise I’ll just wait.
        I’ve copied the link to my sample map in my profile here if you want to see it live.

  29. Hello,

    I like your plugin very much. But I’ve a question. On your GPS-demo page, you can’t click on the route. On my page, you get the name of the route and I don’t like it.

    Furthermore, on your demo page and also on my page, if you click an point, you get the name of the point followed by “undefined”. Is it possible to hide that text?

    And a third question, is it possible to completely disable clicking the points?

    Thanks for your answers.


    • MiKa says:

      Hi Jeroen,

      this is not well done yet and has to be corrected in one of the next WP OSM Plugin versions … after summertime 😉

      Br, MiKa

  30. Pawel says:

    I’ve got problem with placing the circle on map 🙁
    my shortcode is:
    [osm_map_v3 map_center="50.422,16.621" zoom="9" width="100%" height="350" marker_latlon="50.43961,16.65436" marker_name="mic_black_pinother_02.png" disc_center_list="50.422 16.621" disc_radius_list="2000"]

    and i can’t see any circle.
    Can You give me any advice to solve this problem?

  31. Rudy Engels says:


    After my previous plugin for displaying gpx-files didn’t work anymore, I’ve tried yours now. For some reason, my gpx-file isn’t shown. Here’s my shortcode:

    [*osm_map_v3 map_center=”50.98,5.624″ zoom=”12″ width=”100%” height=”450″ file_list=”” file_color_list=”blue”]

    Am I doing something wrong?


  32. Hello,

    I am trying to display KML data, but it does not appear on the map – what’s gone wrong?

    You can see my attempt on the website link above.

    Many thanks

  33. Adrian says:

    It’s good to be able to show several gpx files.

    Is it possible to toggle the display of the files on and off?

    Like this example which I built using OpenSpace mapping.


  34. Peter says:

    Hello Mika,

    NICE PLUGIN! Like using it but I have a problem.
    I try to place only waypoints on my map but that is not working. A gpx file with a track is no problem, only the waypoints are not showing up.
    Am I doing something wrong? Thanks for any advice.
    You can see the map here :

    Thanks again for any help!


  35. Hi MiKa,
    there is a problem with css: The style rules are too broad and affect items outside the map view. See yourself:

    In my opinion, selector “ a” is too simple for something that has to work together with lots of different code… Actually, looking at the rest of the file, the other rules have similar problems. I would very much like to see all the other rules scoped into the map element in some way.

    Thanks for the plugin anyway!

    • MiKa says:

      Hi Vladimir,

      we will not change osm_map shortcode with old openlayers library anymore but improve new shortcode:


      css is handled in a better way, too.

      br, MiKa

      • Oh, so that’s how it should be – thanks!
        Perhaps the documentation could mention this (_v3) more, but, well, we all know how it is with documentation…

  36. D. Michael says:

    Really liking the plugin. I am struggling with 2 things in the gpx/kml openlayers3 option:

    1) Seems the map won’t display the CycleMap option. I display the other OpenMaps options and the stamen options too, just not CycleMap.
    [*osm_map_v3 map_center=”22.502,59.029″ map_border=”solid thin #F0F0F0″ zoom=”12″ width=”100%” height=”450″ file_list=”../../../../wp-content/uploads/2015/06/wbk_trek.gpx,../../../../wp-content/uploads/2015/06/wbk_downstream_turnoff.gpx,../../../../wp-content/uploads/2015/06/wbk_upstream_turnoff.gpx” file_color_list=”red,red,red” type=”CycleMap”]

    Also, is it possible to load a completely different base map? Example: “outdoor” base map?

    2) The text generated for the gpx files in the pop up cloud has “undefined” attached to the end. Am I doing something wrong, or can I spec a value for this? You can also see this in your examples (

    Thank you.

    • MiKa says:

      Hi Michael,

      add 1.) Not yet, could be added if you post more info to the specific map.
      add 2.) That’s a bug and will be fixed in the next version (July).

      Br, Michael

      • D. Michael says:

        Thank you for the quick response.

        1) To be clear, CycleMap is not a working option for the the kml/gpx maps at the moment?
        The information on the outdoor maps can be found here: It’s from the same guy who created the OpenCycleMap. Loading all is options into your plugin might prove beneficial:

        At the moment, the klm/gpx base maps offered in the plugin are more geared for city and road purposes, or special aesthetics with stamen. Adding the Outdoor, landscape, and OpenCycleMap would support outdoor users well, and make the options well rounded.

        It would also be helpful to have the option for web viewers to toggle different base maps and overlays like it is in the older versions of open layers I see on your site with the “+” button.

        2) Thanks, I look forward to the release.

        Again, really cool plugin and great efforts, and I look forward to the possibility to load different base maps. Will leave positive remarks, as I am pleased.
        Thank you. D.

  37. giancarlo says:

    I’m trying to use your wp plugin (latest version) with wp 4.2.2, but when I edit a new page and insert the code I cannot save nor preview, all I get is this page:
    Access to this resource on the server is denied!”

    Could you check it please?

  38. Marc says:

    Hi Mika !

    Thank You, danke schön, merci pour la release 3.3

    I enjoy to preset Lon & Lat in osm-config.php ;->)

    Is that possible, in the next release, to add :
      define (“OSM_default_zoom”, 3);


  39. Tony Zeoli says:

    Here is the second test post using your shortcode.

    I’ve added the EXIF data viewer plugin to read the EXIF data and print it to the page, so I know it’s actually there.

    I can see the map, but there are no camera icons or photos on the map.

  40. Tony Zeoli says:

    I copied the shortcode you provided and the map is empty. It does not load.

  41. Paul Fleming says:


    I installed your plugin yesterday. However when I activate your plugin and try to post anything I get the error message:


    You don’t have permission to access /wp-admin/post.php on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    If I deactivate your plug in, and make the post with the appropriate code I can make a post. If I then reactivate the plugin I get the map and track. However if I try then to make any post I get the same error message.

    I am using wordress 4.22 and the sucessful post, made by deactivating the the plugin, making the post, and reactivating the plugin is at:

    To be clear, with the plugin activated I cannot publish any posts 🙁

    Thank you for any help your able to offer


    • MiKa says:

      Hello Paul!
      Thank you for your information and feedback – I will send you a Betaversion this week.
      Br, MiKa

  42. Tony Zeoli says:

    You say in your instructions that if you insert 3 photos into your post, then your plugin will read the exif data of all three photos and insert a map based on the shortcode provided, but if you have a short code with one lat long data example, then that’s not three images. Three different images should have three different lat lon coordinates, right?

    • MiKa says:

      Hi Tony Zeoli,

      a.) Create a new post
      b.) Upload three photos ẃith geotag and insert them to the post
      c.) Copy (Strg+c) the shortcode we provided as answere to you question in this forum
      d.) Change the view of the WordPress post Editor from Visual to Text (see this blogentry)
      e.) Paste (Strg+v) the shortcode in your post
      f.) Change the view of the WordPress post Editor from Text to Visual again
      g.) Publish the post
      h.) Post a link to the created post if you need more support.

      Thanks & br, MiKa

      • Tony Zeoli says:

        Sorry, I didn’t know the word “Antwoten” means to “Reply”

        Here is another test post.

        I uploaded two images.
        I set the exif data shortcode in the post from the other plugin, to make sure exif data was in the images.
        I set your shortcode and the map displays, but not with the camera icon or photos.

        • MiKa says:

          Hi Tony Zeoli,

          * open test-post-3 to edit
          * change the view from visual to text
          * copy the shortcode in the article for the map
          * past the shortcode for the map in the same post
          * add a “*” in the shortcode like [*osm_map
          * change the view from text to visual
          * you will see the same shortcode twice, but once with “*”
          * update the article and post here the info

          Thx & Br, Michael

          • Tony Zeoli says:

            1. I edited the post.

            2. I added this shortcode to the post:

            [*osm_map lat=”27.368″ lon=”88.223″ zoom=”11″ width=”450″ height=”450″ control=”mouseposition,scaleline” theme=”dark” map_border=”thin solid black” type=”CycleMap” import=”exif_m” marker_name=”mic_photo_icon.png”]

            3. Now, there are two shortcodes in the post editor. One with the “*” and one without.


            4. I see shortcode with the “*” in the body of the post. I see the map embedded in the post, but nothing appears on the map and it resolves to the lon / lat somewhere in Asia, not in Asheville, NC in the United States.


          • Tony Zeoli says:

            Any feedback on this? Please check my work and let me know what you see is incorrect.

            • MiKa says:

              Try to include the images into the post not resized but 100% (original) size.

              • Tony Zeoli says:

                Okay, will try that.

              • Tony Zeoli says:

                Nope, didn’t work. Changed the size of the photos to 100% and reset them in a post.

                I don’t understand – why does the OSM code still have a lat lon of – lat=”27.368″ lon=”88.223″?

                Are you saying that the lat lon is ignored in the code when the photos have exif data that differs?

                It doesn’t make sense.

                • MiKa says:

                  lat & lon set the center of the map.
                  the photos with exif-data set the marker on the map.

                  • Tony Zeoli says:

                    Okay, thanks.

                    It doesn’t say that in the instructions.

                    So, if I want to set the center of the map to Asheville, NC, I need to change the lat lon in the shortcode. Is that correct?

                    I also inserted full size images, but it’s still not setting the markers from the exif data.

                  • Tony Zeoli says:

                    Okay, so now I’m starting to really understand this tool.

                    This is what the instructions should say.

                    1. Create a Post or Page in WordPress
                    2. Find the WP OSM shortcode generator panel that was added to the post editor screen when you installed the plugin
                    3. Click on the Geotagged tab and make your selections. For Post Type use Post or Page, depending on which Post Type you are working with.
                    4. Now click into the map and choose the area you want to center on – most likely, the area you took the photos (e.g. a city, town, village) – then zoom in or out until you are satisfied with the area of the map you would like to display in your post or page. If you’re photos are, for example, from a city in the United States and a city in Europe, then you’ll want to make sure both the United States and Europe are in view and centered on the map.
                    5. Click on the map once to generate the shortcode, which will then appear in the area below the map.
                    6. Copy and paste the shortcode into the body of your Post or Page.
                    7. Now click on the Media tab in the post editor to upload your photos with EXIF data. Add each photo to your post.

                    Remember, only photos that have longitude and latitude in the EXIF data will display on the map. To make sure your photos have the correct EXIF data, there are iPhone and Android apps that will help you view your EXIF data to ensure they contain the longitude and latitude data. Or, there are WordPress plugins that will display EXIF data from a photo in your Post or Page with a shortcode after you’ve uploaded and embedded a photo into a post.

                    Either way is useful to confirm your photos have EXIF data. Photos taken from a regular camera without the ability to embed latitude and longitude data into the photo will not work with this plugin.

                    8. Either save or publish your post and view the post on your website. The images you’ve added to the post should appear on the map.

  43. Tony Zeoli says:

    This code:

    [osm_map lat="35.5946" lon="-82.553" zoom="11" width="75%" height="450" control="mouseposition,scaleline" theme="dark" map_border="thin solid black" import="exif_m" marker_name="mic_photo_icon.png"]

    already has the lat=”35.5946″ lon=”-82.553″data in it.

    This is so frustrating, because you’re not being very clear as to how this actually works.

    I have three images. I placed the code in the post. The images are not at the lat lon location in your code, so how are they supposed to display then?

    These instructions are not very good. Please give me detailed, step by step instructions, like this:

    1. Upload photo(s) to media library
    2. Select photo(s) to insert into post
    3. Insert photos in post
    4. Add this shortcode…
    5. Change the lat lon data in the shortcode to the lat lon of your first picture
    6. To add additional lat lon data in the short code, do this…

    Please be more specific. I appreciate your help, but you’re not helping by assuming that I’m just going to get it.

    You have lat lon data in your short code that is NOT the lat lon data of the photos in my post. How can I use this code, when I have three photos and they are not where your lat lon data is? And, there are three. Not one.

    This is so frustrating.

  44. Tony Zeoli says:

    I’m not sure how a post with exif data should work. The instructions on the website are not clear, because it seems you always have to click on the map to get a shortcode. How do you generate a shortcode of all the photos in a post? Can you better explain that in the example on your website, please?

    • MiKa says:

      Checked your site. Exif data is available in photo, use something like this:

      [osm_map lat="35.5946" lon="-82.553" zoom="11" width="75%" height="450" control="mouseposition,scaleline" theme="dark" map_border="thin solid black" import="exif_m" marker_name="mic_photo_icon.png"]

      to show to the place in your post.

  45. Amgine says:

    The maps are wonderful. However, the widget does not display on the main page. I tested with several themes, including 2014.

  46. Juha Tyni says:

    Hi, when the osm plugin is installed and activated, I can’t preview or update my wordpress pages. I get the common 404 cannot open page error. If I deactivate the plugin, the problem goes away.
    I deactivated all my plugins except for the osm plugin and my Gantry theme plugin (which I have to have activated for the website to load). Could it be an issue with the theme?

    Currently I am using a different Google map on my page:

    But I would rather use your osm map.

  47. benjamin says:

    Hi there,
    I’m using your plugin on my localhost.
    And I have a problem with the kml file I try to import.
    The problem is :

    I provide the link where my kml file is.
    I select in the combobox “kml file”
    I validate with the “update options” button.
    Then the page reload and the fied “paste the local URL of file here” is empty (just the http://).

    How can I display my kml on this map.
    Thanks for helping !!

    Best regards

  48. Dolf Andringa says:

    I am trying to add some interaction between the text of my page and the OSM map that is in that same page, created from a KML file.

    I have links now going from a feature popup in the map to the text (using anchors), and in the text I use javascript to jump to the map and zoom to a specific feature.

    Only one thing I would like to add is that the popup of a feature is opened somehow. Now when I click a link the following javascript makes my map zoom to the feature.

    I would like on the same click also to open the popup that normally opens when I click the feature. How can I do this? I am reasonably comfortable programming OpenLayers (done it before in other applications), but I would like to use the OSM plugin code as much as possible.



    • MiKa says:

      Hi Dolf,

      I like this kind of feedback by the users and I will support you with some conditions:

      * all has to be designed in a generic way to be available for all WP OSM Plugin users.
      * it has to be implemented in OpenLayers 3 (shortcode osm_map_v3)

      I will be pretty busy until end of cw20 – if you have some running samples outside WordPress I can have already a look to it. You can also contact me directly here:

      br, MiKa

      • Hi Mika,

        I can’t use the contact form (only 1000 characters allowed and verification image doesn’t show), so I’ll continue here.

        Just to show what I did now is make a map using a KML file using the shortcode generator (see link to website as well).

        Then in the page where the map is located, I added the following javascript snippet:

        function showFeature(name){

        Then in the text I can link to Location

        Possible problems I see with this setup is the amount of layers and maps and feature attributes.
        * I hardcoded to get the feature by the attribute “name”. Others might want other attributes. That would be easy to change.
        * I have the map variable hardcoded
        * I hardcoded the reference to layer number 2 of the map

        Right now I do everything just with javascript in the WP page, but if it is for other users, it would be nice to have a second shortcode that creates a link to a feature in the map (zooms the map to it and displays the popup).

        For that I guess on the WP-OSM side we would need
        * an Id for each map shortcode so we can refer to it from other shortcodes (instead of hardcoding the map variable)
        * an anchor at the map we can link/scroll to
        * A shortcode to generate the link that scrolls to the map anchor, centers the map on the feature and shows the popup. The arguments to the shortcode should be a map_id (to get the correct map), feature attribute name and feature attribute value (to identify the feature). With that you have enough info to execute the javascript I pasted above. I guess.

        I’d be happy to contribute if you want me to (depending on available time of course), but I would need some pointers as to the shortcode generation (I haven’t really developed for WP before, plenty of JS/PHP though) and where the behaviour is defined that shows the popup when the feature is clicked (I know it is an OpenLayers.Popup.FramedCloud).



  49. Colin says:

    I have a problem with OSM – OpenStreetMap Version: 3.1.1 (the first time I have installed it). When active I cannot change or write any posts because of this error:

    “Forbidden You don’t have permission to access /wp-admin/post.php”

    Maps still show up Ok but I have to disable the plugin to modify any post with the editor? Is there a solution to this permissions error?


  50. Radoslav says:


    I can’t find the map on my page. It is not loading.


    • Radoslav says:

      Can you help me?

      • MiKa says:

        Hi Radoslav,

        1.) create a testpost to test the WP OSM Plugin in your site
        2.) create a very simple map without any additional data like:
        [*osm_map lat="38.709" lon="-9.135" zoom="14" width="95%" height="300"]
        <= without the *
        3.) add the Shortcode also as text (with *) in the post
        4.) post a link to this post here
        br, MiKa

        • Radoslav says:


          I had a map but it is disappeared. The code is the following:

          [*osm_map lat=”42.7″ lon=”25.35″ zoom=”7″ width=”100%” height=”360″ import=”osm_l” post_type=”any” marker_name=”mic_red_pinother_02.png”]

          The link is (bottom)

          Thanks in advance!

  51. Leonie says:

    Hi, I installed and activated your plugin. I was able to upload a GPX file to my media, so at least part of the plugin seems to work.
    In the OSM shortcode creator it says I have to click ‘in the map’to adjust the shortcode, but I do not see a map.
    What am I doing wrong? Could there be a conflict with my theme?

    Thanks! Leonie

    • MiKa says:

      Hi Leonie,

      can you create a test page and insert these two shortcodes (without :

      [*osm_map lat=”38.709″ lon=”-9.135″ zoom=”14″ width=”95%” height=”300″]

      [*osm_map_v3 map_center=”45.63,13.62″ zoom=”11″ width=”100%” height=”450″]

      Can you see the maps on this page?
      Br, MiKa

      • Leonie says:

        No, I don’t. I see an error message and below that an empty box where (i think) a map should be:

        [OSM-Plugin-Error]:Map Zoomlevel out of range or invalid! (using defaultvalue)

        [OSM-Plugin-Error]:Map width or height is out of range or invalid (using defaultsize)!

        [OSM-Plugin-Error]:Map width or height is out of range or invalid (using defaultsize)!

        [OSM-Plugin-Error]:Map width or height is out of range or invalid (using defaultsize)!

        [OSM-Plugin-Error]:Map width or height is out of range or invalid (using defaultsize)!

        • Leonie says:

          MiKa, I tried a different browser (Safari instead of Firefox) and now the map does show. I will check firefox first and if -after that- it still does not work, I will let you know!
          Thanks-Danke Sehr for you quick response before (I forget to tell you earlier)

          • MiKa says:

            Hello Leonie,
            you have a great blog for a great adventure! I am looking forward to see the WP OSM Plugin running on it. Let me know if you need any help. You know, if you geotag your posts you can draw your route automatically on a map. If a browser does not work you could also check the settings of this browser. Most time the [OSM-Plugin-Error] is shown because the ” are with style information (” instead of “).
            br, MiKa

  52. Thank you for the new version (3.1).
    kml_file_list seems to be working fine and traces are well clickable.
    I’m going tu use this option to make a whole index map pointing to description pages.



    • An example of kml_file_list here:

      Some problems remain:
      1) Only upper overlay is clickable. you have to deactivate a layer to get access to lower one. And some “whim” in closing balloons when multiple layers.

      2) rounded corners of baloons and markers are not transparent.

      Some add on would be usefull if possible as:
      1) track highlight on mouseover
      2) only name of kml file without path and extension.



      • MiKa says:

        Hi Yves,

        thanks for your feedback. We are currently working on migration to a new library to display maps. This takes some time but we hope to get KML running with OpenLayers by end of April. We will invest in the new technology and consider your feedback there. Would be great to get some test from you with feedback middle of April with a Beta-Version.

        Br, MiKa

  53. Matt says:

    The plugin is almost working for me with KML but the size of the balloon is wrong – it is too wide and too narrow.

    I am using this shortcode:

    [osm_map Lat="7.397" Long="151.78" zoom="11" width="100%" height="600" control="mouseposition,scaleline" map_border="thin solid grey" theme="dark" kml_file="../../../../wp-content/uploads/maps/Wrecks.kml"]

    How do I configure the height of the balloon?

    I have some text and an image in the balloon using this balloon style – the height=”xx” does nothing – I tired several values.



  54. Pablo says:


    First, thank you for this plugin. I see in OSM there is a map called MapQuest Open. It’s posibe to use it with the plugin?


    • MiKa says:

      Hello Pablo,

      thanks for your feedback. MapQuest will be integrated in a version that will be releas end of April.

      br, MiKa

  55. Eddy says:

    I cant’t get the gpx file to show on the map.

    This is the gpx file:

    This is the shortcode:
    [osm_map lat="52.212" lon="6.551" zoom="9" width="100%" height="450" gpx_file="" gpx_colour="red"]

    This is the result:

    What do I wrong??

    Many thanks.

  56. Gerard says:

    Is there a way to change the olPopup size? even if I change it via stylesheet it get’s overridden by the inline style.


  57. Ruben says:


    Am I missing something – is it possible to add Waypoints from a GPX file – not just tracks?

    Here is a test page

    Below is the map is the file url

    Like your plugin otherwise especially the ability to embed more than one gpx track in a map – wonder if its possible to loop for all gpx tracks and make a big composite map.

    • MiKa says:

      Hi Ruben,

      thanks for your feedbacke. The feature to add multiple GPX tracks in one map will be added by the end of next week. The waypoints will be implemented in a later version in April.

      BR, MiKa

      • Ruben says:

        Mika that is wonderful.

        I look forward to news of your developments, will keep an eye out, if you have any elist please subscribe me!

        Thanks for you work

        • Ruben says:

          Just stopping by to say thanks for letting us know about the multiple GPX file development! much appreciated.

          We are eagerly awaiting the ability to display POI, and will hold out from using another plugin because everything else works beautifully.

          Thanks again for your work!

  58. GPX tracks seems not to be clickable but KML are (viewving descrption, link…. in the map).
    You provide list of GPX tracks but not for KML.

    I would be glad to get GPX (or KML) clickable list of tracks. Is it possible?


  59. GiMa says:

    Thanks for your plugin, until now it worked fine but since I
    updated WordPress to the version 4.1.1–it_IT there is a problem:
    with OSM – OpenStreetMap Version: 3.0 active I cannot change or write new posts because of this error:

    Forbidden You don’t have permission to access /wp-admin/post.php on

    this server. Apache Server at Port 80
    If I deactivate your plugin everything works.
    What can I do about it?
    Have a nice day
    Gian Mario

    • MiKa says:

      Hi Mario,

      I found posts regarding this issue and most time it is adviced to adapt the .htaccess file. But I really want to know what is the reason in the last update of the OSM Plugin. Can you delete the file:


      Since I did not get any other feedback … if it’s not this I will ask you to replace some other files …

      Thanks for feedback! BR, MiKa

  60. Radoslav says:


    First of all, thanks for the plugin. This is the solution I’ve seeked long time. It is great but I have a big issue. The loading page speed of my map with geotaged posts it is too slow. More than a half minute.

    What can I do to increase it?

    Thanks in advance!

    • MKang says:

      Hi Radoslav,

      the loading time of a page depends on many things. Geotagging includes database operations on your server and there are some topics open which will be improved. And some improvements will be made by a newer JS executed on the client site. Nevertheless it takes really long to load your page and there are not that many pins. Please make a post with this article and post the result here:
      The Site has got more than 1.000 posts with geotag. It takes long but not as long as your page … maybe the performance of your host should be tested, too.


  61. Todd says:

    Hi Mika,

    Thanks again for the plugin and the recent update.
    What do you think of moving the map creation dialog to a new popup, similar to the ‘Add Media’ popup that’s already there in the post/page edit screen? That way you could have a ‘Insert into post/page’ button at the bottom, too, just like in the media screen. GPX files could potentially be uploaded and added to the media library directly and the preview could display such tracks and pre-center on them upon upload. That would be pretty cool.
    What do you think?


    • MiKa says:

      Hello Todd,

      thank you for your feedback – I am 100% with you! To copy the string is not state of the art anymore, nevertheless there are priorities. Most people want their maps shown on mobile devices and currently the plugin uses an OpenLayers version that was not optimized for mobile devices … so next step is to bring it to OpenLayers 3.2.1 – which was released this year. Aftwerwards the very next step will be the button in the editor. Since ressources are “limited” there is no parallel development 😉

      Thanks for using the plugin for such a long time and still giving feedback!

  62. Arnaud says:

    I don’t understand why, I can’t use you plugin on my website
    I put exactly [osm_map lat="48.857" lon="2.332" zoom="13" width="100%" height="450" type="Mapnik"], for exemple, and it doesn’t work.
    And I can use the plugin in the subdomain, so I know how use it, but not for
    Have you any idea ?

    Thank you


    • MiKa says:

      Hello Arnaud,

      pls post a link to a testpage on your site.

      BR, MiKa

      • Arnaud says:

        Hello MiKa,
        Here you can see the test :

        The code is : [osm_map lat="48.856" lon="2.333" zoom="14" width="100%" height="450" theme="dark"]

        Thank you

        • MiKa says:

          Hallo Arnaud,

          I could not find any reason for the problem just having a look to this site. Did you try to disable your other plugins step by step to see if there is a conflict. Espacially these plugins which are not set active on your page with the subdomain where the plugin is working. Or set the same plugins actice on your subdomain to check whether there is a conflict. It would be interesting to see what makes the page behave like this. Just to be sure it’s not a JS version conflict can you also try:

          [osm_ol3js lat="48.856" lon="2.333" zoom="14" width="450" height="450" theme="dark"]

          BR, MiKa

          • Arnaud says:

            It’s work with the code [osm_ol3js lat=”48.856″ lon=”2.333″ zoom=”14″ width=”450″ height=”450″ theme=”dark”].
            But I prefer the [osm_map ...].

            SO, you think is a JavaScript version conflict ? Have you any idea what can I do ?

            • MiKa says:

              Hello Arnaud,

              the osm_ol3js is still in Beta-version and should not be used on productive sites this was just to test.

              Did you check the plugins (maybe even the theme) that brings the conflict?

              Once it’s clear which components are responsible for the conflict we can see how to solve it …

              BR, MiKa

  63. Santos says:

    Hi Mika;

    I have a pair of question/issues:

    1. I am displaying geotagged post. Is it possible to show only posts filtered by “category” of post, when I have the following scheme of category:

    – Category 1 (Superior)
    – Category 2 (depending of Category 1)?

    2. In this site

    On the second map “MAPAS DEL SENDERO GR14. POI’s (Puntos de Interés)” when I click on the icon, it display a window with the information of the icon. But I can not close it because there is not a X button on the right top. It is possible to implement this utility in the next update?

    Thanks for help and support.

    • Santos says:

      Concening to the 1st issue, I am interested on display only the post tagged with Category 2

    • MiKa says:

      Hi Santos,

      add 1) at the moment you can filter just on the top level – not subcategories and you can not do any logic operations.
      add 2) thx for this info … not sure about the reason … will check it.

      BR, MiKa

  64. Philipp says:

    Hi Mika,
    have you had the time to look at my “picture-problem” so far?

    That would be great. Thanks!

    • MiKa says:

      Hi Philip,

      can you create an KML file with just one placemark inside? Then take a text editor and replace the icon – at style – with an icon of the OSM plugin. And remove the size info of this placemark. Feel free to post again as soon as you have an KML file with just one placemark.


      • Philipp says:

        Hi Mika,
        done. I put it onto my page.


        • MiKa says:

          Hi Philipp,

          thanks – I can reproduce it but did not find a solution for it up to now. Hope to fix it with the next version – which will be released next week …

          BR, MiKa

        • MiKa says:

          Hi Philipp,

          found a way: You shold use div in your KML file – copied a KML file to the end of this page:

          BR, MiKa

          • Philipp says:

            Hi Mika,
            thanks a lot. That helped me big time!

            But I still have the problem that the name of the placemark changes the size of the picture. As soon as I reduce the length below the width of the picture, all is fine. I now started to cut all names to make it look properly.
            See my example: all placemarks with green pins have shorter names. As soon as the name is longer, the picture is distorted.

            In all examples, there still is a scrolling bar so the window isn’t exactly fit to the content.

            Is there a way to solve those two problems?

            Best wishes

            • MiKa says:

              Hello Philipp,

              the WP OSM Plugin will change in spring and use OpenLayers 3 by summer – hopefully 😉 It started alread and you can test it like this:
              [*osm_ol3js lat="52.802761" lon="14.238281" zoom="4" width="100%" height="600" kml_file="../../../../wp-content/uploads/osm_map/BESTFACT41.kml"].
              Remove the * and change the kml address. But keep in mind this is just a prototype and might change in future. The new system is optimized for mobile devices and will also fix many problems of the old version.
              So we will not change this in the current version but invest the time for the integration of the new library.
              BR, MiKa

              • Philipp says:

                Thanks, but it doesn’t work at the moment (see my page). Maybe you’re working on it.


                • Philipp says:

                  I found the problem:
                  After directing to the css file, the Plugin includes the following parameters hard coded:

                  #’name of map’_1 img {
                  border: 0 none;
                  clear: both;
                  height: 100%;
                  margin: 0;
                  padding: 0;
                  position: absolute;
                  width: 100%;

                  As soon as you delete height and width from osm-sc-osm_map.php (line 224 & 225), it works perfectly.

                  Best wishes

                  • MiKa says:

                    Hi Philipp,

                    thx a for sharing this information! I will work on this with the next release. To be honest, I forget that there are some CSS in the php code … moved most to an extra files some time ago.

                    BR, MiKa

  65. Santos says:

    Hi Mika,

    Thanks again for working on this fantastic plugin!.

    I am displaying geotagged post according to the following documentation:

    Concerning to this, I have two question / issues:

    1. In my site (firts map)

    When I click on the icon, the plugin show the url of the post and when I click in this url, the post is displayed in the navigator. Is it possible to open the window in other tab, using target=”_blank” command?

    2. Is it possible to show only posts filtered by “category” of post?

    Thanks a lot for help and support!

    • MiKa says:

      Hi Santos,

      if you like it, rate it her.

      add 1.) I will add this somehown in the next version with an argument.
      add 2.) Yes, you find a sample here.

      Think about optimizing your GPX files for faster loading of your page. You do not need xsi:schemaLocation information and you do not need ele tags. And maybe even optimize the data itself with

      BR, MiKa
      PS: Nice page!

      • Santos says:

        Thanks Mika. Thans for help and support.

        many thanks for the advice about the loading gpx file.

        I rated your plugin under the nick: lasendadelduero Nice plugin!!! 🙂

        • MiKa says:

          Hi Santos,

          I checked the target=”_blank” issue. It’s a nice idea but needs a lot of change. Currently I would like to invest the time in the new version of OpenLayers and I will consider it there! It will be part of this plugin.

          BR, MiKa

  66. Todd says:


    Thanks again for your work on the plug-in. It would be great if support for the OpenMapSurfer theme could be added:${x}&y=${y}&z=${z}


  67. Bernard says:

    Thank you for this wonderful plugin.
    I’m french and I tried it …. but in a page and not an article (post in english), so I was unable to see several Geo tags.

    In a post it works fine.
    Than’ks again

  68. Jeremy says:

    Hi Mika,

    I’m looking for an alternative to Google My Maps and have spent the day trying your plugin – it looks great. But there are a couple of things I want to do and I’m not sure if they are possible now, or if you will add them in the near future.

    1) A major problem with new Google Maps is the position of the icons. If I create a single marker in OSM, I can use marker_focus=”5″ – this is good!. However I loaded one of my kml files (produced in Google) and OSM uses the centre of the icon (like Google). Marker_focus=”5″ doesn’t work. Might you introduce this functionality? Or is there a work around?

    2) I want to use OpenSeaMap but I tried this and there seems to be a problem with missing tiles. You can see an example here:

    3) Ideally I’d love to use OpenSeaMap with the optional elevation profile I can select on Is there a way to do this?

    4) I will geotag my posts and want to set up a map page for posts in each category (my categories are geographical areas). I understand this is possible but at present all the points have to use the same icon. I believe you plan to add the ability to use different icons. Do you know roughly when this might be available (weeks? months? years?)

    5) I would then want to provide navigation from each post to the map page with the icon for that post being highlighted. Might it be possible to highlight a single icon in future versions and if so, how far away (weeks?months? years?)

    Thanks for any advice you can give.


    • MiKa says:

      Hi Jeremy,

      add 1.) post the link to a sample page with this kml.
      add 2.) there is already a work around and I will try to fix this within this year.
      add 3.) did not know that up to now, let’s see
      add 4.) many people ask for that, I startet alread and will complete it hopefully within this year. You should use already OSM_geo_icon when you geotag your posts / pages.
      add 5.) nice idea but not planned right now.

      btw, if you like the plugin feel free to rate it here.

      • Jeremy says:

        Hi Mika,

        Thanks for your reply and good news that you are already working on some of the things.

        Ref 1) Problem with marker_focus: I’ve put two maps on this page:, one using no focus, the other with focus=”5″. I tried other values too. none seem to work. I can send a copy of the kml if it helps.

        Ref 3) OpenSeaMap with elevation – this would also give other users a terrain map (which I think someone else was asking for).

        6) A small new problem. If you look at the top map on, you can see some of the lines are visible through the markers. If you look at the yellow circle A icon in the centre and try to click on it, sometimes you get the bubble for the location (Fort Bay) but if you click a little off centre (but still on the icon) you sometimes get the bubble for one of the two lines (Piskera – Skradin or Zaton – Rogoznica). Is there a way to make the line inactive when it is behind an icon? Or is this a feature (bug!) in the way google has generated the kml file?

        Thanks for all your help.

  69. John Gorentz says:

    In my previous comment I was wrote some KML directives that seem to have gotten stripped out before my message was posted. So here is what I was saying (minus the angle brackets). In the KML iconstyle, the color and scale directives are ignored. Is this what I should expect?

  70. John Gorentz says:

    When I specify a KML file that I created from Google Earth, the placemarks (png files hosted by Google) get rendered OK, but the and directives in the seem to get ignored. Is this the behavior I should expect?

    Over the long term I’m trying to reduce my dependence on Google products. At some point I will probably generate my own KML files for some of my maps rather than get them via Google Earth, and for planning purposes would like to know what features I should expect to work.

    • MiKa says:

      Hi John,

      can you make a sample page and post the link …

      BR, MiKa

      • John Gorentz says:

        Thanks for the reply.

        Here is a link.

        The page also includes a link to the google map from which I got the KML file. The original markers had color that didn’t get displayed on the test page.

        Is this possibly a geoxml3 vs kmllayer thing? (Those are two terms I just now learned about.)

        In the future I may use a markers file instead, as it looks like I can use that to diplay markers with an offset, so that if I use those teardrop type markers, I can center them on the bottom of the point of the teardrop rather than in the center. Now I’m trying to find documentation for those so I can determine whether I can put html in the marker description…

    • MiKa says:

      Hi John, your sample – page looks empty …

      • John Gorentz says:

        That’s another issue that has come up recently. I often need to refresh a page in order to get the map to display. I haven’t yet investigated to see whether it’s a caching problem. I at first thought it may have been a google issue, but in this case I’m using the OSM map.

  71. Marcus says:

    Firstly thanx for a great plugin!

    But one major thing that I miss is the possibility to have different marker icons on a overview map of all geotagged posts. The individual icons could be set on the posts with “OSM_geo_icon” and shown (like with the widget). It seemes like the most of the code is already there.
    Big thanx for any effort put into this!

  72. Alessio says:

    Hi guys,
    many thanks for this fantastic plugin.
    I’m trying to display a gpx track to my blog. The blog is locally with MAMP, and I think the wrong path of the track. As result I get the map view but not the gpx track.
    This is the path that I insert: “Users / alessio / localhost / fabriano_life_cycles / wp-content / uploads”.
    You know tell me where am I wrong ?!

    • MiKa says:


      do not know about localhost address. As soon as you have a test site online let us know the address to help you!

      BR, MiKa

      • Philipp says:

        Hi MiKa,
        thanks for the quick reply. This is my test site. As you can see, I fixed the scaling down by giving it a fixed size: style=”width:***px !important; height:***px;”. But the bubble still doesn’t show the pictures. How can I adjust them?

        Thanks in Advance

        • MiKa says:

          Hi Philipp,

          can you add all the information on your testsite:
          OSM Shortcode you use with a *
          The changes of your style

          I can see the picture in the bubble.

          🙂 MiKa

          • Philipp says:

            Hi MiKa,
            I added the OSM Shortcode.
            Each bubble has a similar description such as: “

            I didn’t change any style, only assigned the markers in Google Earth to it.

            I can also see the pictures but can I make the bubble higher so the user can see the whole picture and doesn’t have to scroll?


  73. Philipp says:

    Hi guys,
    thanks a lot for your tool!
    I have a problem to display marker bubbles correctly. I created a kml file with markers. In the description, there is a picture (250 x 250px). In my blog however the tool scales it down to 666px x 51px). Even setting the right size as width and heigt in Google Earth doesn’t help.


  74. Fredrik says:

    Hi and thanks for a nice plugin!

    I say a post from February that you were testing OpenLayers 3.0. How is it going and when we do you think we will see OpenLayers 3.0 “in production”?

    Many thanks!

  75. Hugh says:

    A second question: can I use create maps which display posts from any post type or can I only display posts from post types : “pages, posts” and both “pages and Posts” via “any”. I have some custom post types which I would like to use to display data from.

  76. Hugh says:

    is it possible in the dimensions of the displayed map to have it set to 100% rather than a set px value? I do not seen any examples of this in the documentation.

  77. Santos says:

    Hi Mika;

    After the new version v2.8.1 I have several issues/questions:

    1. On the following website the mark do not appear.

    The marks are included into a txt file with the structure (lat – lon – title – description – icon – iconSize – iconOffset) and I have not change anything for months

    2. In the website

    In point 3.2 Ausgabe einer Übersichtskarte I need that one mark will be red, other yellow, other blue, etc. Is that possible in version 2.8.1?

    3. The OpenWeather does not work. The map does not show nothing

    Could you please check if ia a v2.8.1 question?

    I appreciate so much your comments and help. Thanks in advance for your support.

  78. Digby Maass says:

    Hi! I have a feature request.

    That the map zooms to the bounds of the uploaded gps track, and that you can put a small (custom size) map in a post and have it zoom full screen on clicking.

    Your site and plugin look very professional. I can see you take a lot of pride in the plugin!

  79. Frits says:

    I am experimenting with OSM plugin to use it for my geocaching. I have two questions:

    – I would like to change the dimensions of the pop up box. I like to change it more to a landscape-format. Where can I change this?

    – Where can I change font size and font type inside the popup window

    • MiKa says:

      You could extend this, but it is changed again with the next update of the plugin version … we will se how to add this in a generic way …

  80. dondelion says:


    Love the plugin, thanks for your work.

    Apart from my 2 problems –

    1 –
    I can’t get a GPX file to display and I have tried every location permutation I can think of with no success. Even the absolute path doesn’t work although the file does show in my browser ( I have tested the file and it works elsewhere.
    Within my domain the GPX files are in /public_html/blog/wp-content/uploads/gpx/ …what am I doing wrong?

    2 –
    My geotagged posts show as markers on my map at but they are not now linked to the post and it was working until recently. The example page on your website demonstrating this ( also doesn’t now work for me. Any ideas?

    Thanks for your time

  81. Masare2 says:

    Hi Mika!
    The plugin has been working perfectly for almost 8 months.
    at the moment all my maps are blank, I don’t know if it’s something wrong with the wordpress update (OSM 2.8.1 wordpress 4.0) or what…
    I haven’t changed anything in months!
    today I’ve tried do uninstall the plugin and reinstall it, but nothing changed… do you have any suggestions?
    two maps are shown here

    • MiKa says:

      Hi M2,

      tests with WordPress 4.0 were not done yet. I will be back next week and release it for WP 4.0. Ifyou did not do anything (eg install another plugin that produces conflicts) this should fix the problem.

      • Masare2 says:

        ok! thanks, I’ll wait for your update!

        • Masare2 says:

          I see that this site is already running on WP 4.0… am I right? so I suppose the problem has to be in my site!! in my theme or in my customization of the theme itself..
          could you please take a look at it?

          thanks again!

          • MiKa says:

            Hi M2,

            tests with WP 4.0 were done and all is fine. Best way to find the reason why your site brakes would be:

            * deactivate all plugins except OSM plugin
            * change the WP theme

            BR, MiKa

            • Masare2 says:

              ok, I’ll try! thanks!

              • Masare2 says:

                it was my fault… sorry! a plugin was blocking the maps!
                now I have the maps back, but I don’t get the markers of all the posts! no problem with the single marker, but they don’t show up in the “all posts map”
                I didn’t change the code in the page… is always this: [osm_map lat="41.942" long="12.765" zoom="5" width="600" height="450" type="AllGoogle" control="mouseposition,scaleline" map_border="thin solid blue" theme="ol" marker_name="wpttemp-yellow.png" import="osm_l"]
                I probably lost something when I re-installed the plugin..

                • Masare2 says:

                  the field name for the post coordinates is “Geotag” instead of “OSM_geo_data”… maybe that is the problem… but it was working before!

                  • MiKa says:

                    Hi Masare2,

                    good news 🙂
                    The overall map will be fixed with the next release in this week. There was a change. You need not to do anything it will be fixed.

                    BR, MiKa

                • Masare2 says:

                  Hi MiKa, I solved myself by changing the tag in “OSM_geo_data” in mysql… I got back to normal!

                  I just used this:UPDATE `wp_postmeta` SET `meta_key` = REPLACE(`meta_key`,”Geotag”,”OSM_geo_data”)

                  now the test page says
                  OpenStreetMap Plugin V2.8.2
                  published posts: 47
                  geo tagged:047; DB request took: 00:00:00.035
                  published pages: 16
                  geo tagged:000; DB request took: 00:00:00.033

                  now it all works smoothly, the popups are all big, but it’s not a problem!
                  thanks again for your plugin and for your help!!!

  82. John Nielsen says:

    I have been using “XML Google Maps” plugin for travels in the past, but this plugin is not supported anymore (and it does not work :-()

    I found the OSM plugin rather interesting, but would like to know if it is possible to load a KML file (containing a route) and have the OSM plugin automatically calculate “lat” and “lon” values + a zoom level that enables all the route to be displayed on the embedded map at the same time?
    The “lat” and “lon” values + a zoom level should be calculated based on the route in the KML file.
    Best regards

  83. herve says:

    Hello, I need to put several markers on a map without link with a trace. Can I do that ?

    many thank’s

  84. Hi everyone!
    I have a wordpress website with the OSM plugin and it works fine. On the map I put several POI’s via “Display Marker File”

    But I need to link every POI with a other page into the website, in the same way that this example

    Anyone knows how It can be done?

    Thanks in advance for your help and support.

  85. Helga Rakel says:

    I love your plugin and I like to use it on my site but I have one problem. It is not responsive to the browser size. For example if I view my site on a mobile phone the map is too big. There is a similar problem using image maps but it has been resolved by this plugin so I was wondering it there migth be a similar solution to the responsive problem for your map plugin?

  86. I have a map with several Points of Interes ( ). Each POI is recorded in a txt file according to the rules written in

    I would like to know if it is possible to link the icon of each POI with a new web page.

    Thanks a lot for your help and support.

  87. Petar says:

    Hello, I am building a “travelog” and I need a map showing not only the images in one post, but all geotagged images in all posts (eventually – from a certain category).

    Is that possible to achieve with the OSM plugin?


  88. Fre says:

    I have a wordpress website with the OSM plugin. I want to show all the datapoints from an KML file on a map. I get the map, but no data on it… Below is my code so far:

    Can anyone help me?

    Thank you!

    [osm_map lat="51.237" lon="4.417" zoom="11" width="450" height="300" control="mouseposition,scaleline" map_border="thin solid orange" theme="ol_orange" kml_file="../../../../wp-content/uploads/OSM/wifioverzicht.kml"]

    • MiKa says:

      Hi Fre,

      did you make tests with the sample KML file:

      Regards, MiKa

  89. Hi Mika!
    Concerning to the las comment, I use one wordpress theme which uses, in addition to the standar input, another one specific from the theme. Only in the specific from the theme, I cannot select geotag at the shortcode generator because the plugin does not target post types for the editor button.

    Maybe it will be easy to implement a solution.

    Thanks for help and support.

  90. Hi everyone.

    First at all, thanks a lot for the plugin!. I’d like to show a list of GPX file and each and one of them will be linked to a post. Is that possible?

    Thanks in advance for the support and help.

  91. Mikko Wuokko says:

    Hi MiKa.

    If I’ve understood correctly, the OSM widget can only show markres of one post at the time, right? Is there a change that it would be able to show all the markers of posts currently shown? Ie. if we have a list of latest posts (like 5), it would show markers from all of those posts.

    I’ve used another plugin with Google Maps which had this kind of widget feature, but would like to very much change to use this OSM plugin instead.

    • MiKa says:

      Hello Mikko,

      sorry, but this feature is not covered by WP OSM Plugin. The widget shows only one marker if it is a singel post or page.

      Of course you know, you can show a map with all geotagged posts.

  92. Koen says:

    Any progress on the filtering by category issue ?

    I read in the previous comments, it should (and is) “corrected” when there’s only 1 category applied, but that doesn’t really work for our intended use. In fact, it would be great to be able to use more than one category as filter.

    E.g. cat=Spain cat=hostel would then display hostels in Spain.
    So no hostels in France, no restaurants in Spain.

    • MiKa says:

      Hello Koen,

      yes – the open issue with the category filter is fixed with V2.8. But it is still limited to one category in the highest hirarchy. As you know and mentioned, categories are quite powerful to group your posts (see also in many ways. This is also challenging for filtering a needs to be planed with a generic concept. There are currently some open issues for the widget which will be addressed in May and beginning of June. If you want support the OSM plugin eg with Beta Testing on your site it can be planned vor second half of June.

  93. David says:

    Is there anyway to make a map with both width and height 100% ? I want my map filling all the window. Thanks.

    • MiKa says:

      Hi David,

      not yet. But it’s on my list for long time … should be in a next version within May.

      • David says:

        Well, I finally did it… Just doing a bit of css. width and height: 100% and position absolute

        I have another question… Is it possible to have different pin markers when you geolocalice posts in a map?

        Example: I need to show an unactive event (red pin) and also an active event (green pin) in the same map…

  94. Helga Rakel says:

    I need to put in a few markers on the same map. I have tried to use .klm file from GoogleEarth and a .gpx file from Garmin MapSource but they dont seem to work. I was unable to make and upload a .txt file into the WP backend.

    My test webpage is

  95. John says:

    Weird problem – don’t know if it’s me or what…

    I’ve installed the plugin and got it working nicely. (Thanks!)

    But… sometimes the markers don’t display.

    Using Ubuntu: Firefox doesn’t show markers, Chromium does.
    Using MacOSX: Firefox doesn’t show markers, Safari & Chromium do.
    Using Windows7: Firefox DOES show markers. Int.Explorer doesn’t …but IE’s dumb anyway. (Don’t have Chrome on my Win box.)

    Why would the markers not show on Firefox on Mac/Ubuntu?

    • MiKa says:

      Hello John,

      can you setup a testpage, add the shortcode with * on that page and post the link here?

      Did you call the page with the same address (eg https vs http)?


  96. Christian says:

    Sorry to bother again but I have a new question..

    As previously mentioned I show the map in my sidebar widget where it shows a pin for every geotagged post on my blog. However when I click on some geotagged post I want the map to zoom and focus on the pin for this particular post. Is there any way to do this ?


  97. Renato says:

    Is there a possibility offline usage the plugin using as map source?

  98. Christian says:

    Thanks for a great plug-in. It does exactly what I wanted; to display geotagged posts on one map on my travel blog.

    I use a plugin to use the shortcode in the sidebar widget area. It’s called “Use Shortcodes in Sidebar Widgets”. It works fine on all pages except my front page. I use the TravelBlogger theme.

    Any suggestions or a direction I could go to solve it myself. Right now I’m out of clues.


    • Christian says:

      I should say that on the front page it displays the frame with no contents, only white color.

      • Christian says:

        Nevermind. It started working as soon as I posted here. Magic 🙂

  99. Masare2 says:

    After the update all my maps went crazy! in this page ( I managed to correct the first map by writing type=” All” instead of type=”All” (without space), but it doesn’t work with the second map..
    and I am no more allowed to change the type of map, users can choose only between mapnick and cycle map…
    I had changed something in the css to have proper wordwrap but it was working fine until the update! could you help me?

    • Masare2 says:

      also the maps in articles are pointing to the wrong place

      • Masare2 says:

        sorry to bother again, I solved the main problem in the maps by changing “All” with ” All” in every map (I don’t understand why it works)
        I still can choose only between mapnick and cyclemap… no google or others
        I lost the word break modification and I forgot how I did it, so I’ll start testing again

    • MiKa says:

      Hello Masare 2,

      the two map types (OpenStreetMap and Google Maps) are separated from the Version 2.6. You should use ‘AllOsm’ or ‘AllGoogle’. I will check your feedback regarding ‘All’, which should show OpenStreetMaps.
      What did you change in the CSS file? Any personal changes in the plugin directories are deleted with an update. If it is usefull for others, it could be added to the public version.
      You commented about the pointer to the articles, this feature is used here: and working very well. Can you post the code you are using to integrate the map.
      If you were happy with WP OMS Plugin Version 2.5.3 and if you do not want to update, you can also downgrade again, just go to “Download” and “Old Version 2.5.3” to get the old version.
      Regards, MiKa

      • Masare2 says:

        thanks, I didn’t see your answer!

        • MiKa says:


          pls do not correct to ” All” but to “AllOsm” or “AllGoogle”. I could reproduce it – you found a bug and I will fix it within this week with Version 2.6.1. And I am still curious about the wrong place of the marker, what’s your OSM Plugin code here:


        • Masare2 says:

          this time I changed a portion of the base.css of my theme (not of the plugin) this way
          pre {
          background: #FFFFFF;
          padding: 10px;
          margin: 0;
          border: 0px solid #EBEBEB;
          border-radius: 3px;
          word-break: keep-all;
          word-wrap: break-word;
          white-space: pre-line;
          overflow: hidden;
          line-height: 24px;
          for not having the words broken in two at the end of the lines in the popup… I’m not good in coding, so maybe there is a better solution!
          I think that the type “All” returns an error, while ” All” or anithing else returns the OSM maps
          thank you again for this plugin!

  100. Mark says:

    Is it possible to add multiple geo-tags to one post? And then add
    these tags from all geo-tagged posts to one big map (linking back to
    the post)?

    What I am trying to do is very much like the story-browser on This
    American Life (I would give you a link if you would let me).

    I know, I may be asking a lot. But then, the plug-in looks like it
    can do so much!


  101. Jo says:

    Hi there,

    This is great plugin. Although I’ve been trying to use it on my site & it looks fine in Chrome & Safari but in Firefox it seems very ‘laggy’. I also tried it on firefox & safari on another laptop (Macbook Pro) & had the same problem.
    Are there any compatability issues with firefox?
    Here the link to this page-

    Please view it in firefox & another browswer to see if you see the same effect.



  102. John Brisbin says:

    Great to meet this plugin, thank you!
    My usecase is to display a collection of features (points) on an OSM baselayer. The features are available via WMS.
    In your module description I understood WMS is supported.
    In the examples, all I can find is this shortcode example (excerpt):

    But my WMS source (geoserver) is offering a map based on requests that conform to WMS standard. So I need to pass a request like this:,-45.0,160.0,-10.0&width=660&height=440&srs=EPSG:4326&format=application/openlayers

    AFAIK, you must pass a WMS service these parameters:
    version=1.1.0 or better
    width/height=(desired output dimensions)

    So… how can I use this module to connect with the WMS service? Can you suggest a working approach?
    Thanks for your help,

    • MiKa says:

      Hello John,

      currently it’s not supported by the WP OSM Plugin. If you have a sample page for your geoserver we might consider it for an upcoming release.


      • John Brisbin says:

        Hi MiKa, thanks for the fast response and clarifying the options. In terms of a sample page from geoserver, that is exactly what is shown in the original message. Is that what you mean?

        • MiKa says:

          Hi John,
          yes – probably it’s what you have posted. As soon as there is a sample page with this implementation let us know the link.
          BR, MiKa

  103. Luca says:

    dear all,

    i am trying to have my blog posts all geotagged and visible on a single map on a site page. this is the result:
    as you can see, i have a few problems:
    1) transparency is not working, both for comics appearing when you click on a marker and for the marker itself (it is supposed to have transparent edges)
    2) mouse icon should turn to “clickable” (ie hand instead of arrow) when mouse pointer is on a marker, which doesnt happen.
    i cannot find a solution for these two issues in the help page, can you help me?

  104. Peter Bailey says:

    I have managed to install the plugin BUT the webpage now shows errors on loading. so not sure what to do now. ON one page called expat I would like to have a world map and on that map show totals of expats for specific countries.

  105. Neil says:

    Is it possible to load map styles from stamen?

  106. patxmay says:

    can i modify (by javascript or pgp code) the popup who is display when the user click on a marker ?

  107. Hugh says:

    Do you have any examples on how to use NextGen Gallery with your plugin?

    Haben Sie einenge Beispiele die nutzen NextGen Gallery und Ihr OSM Plug-in?

    Auch, wirt man automatisch ein Email als Antwort bekommen?

    • MiKa says:

      Hello Hugh,

      currently there is no interaction with NextGen Gallery implemented. What is your requirement?

      Br, MiKa

      • Hugh says:

        I use Lightroom to geo-tag my photos and then I upload them to NextGen Gallery. I want to be able to display various geo-tagged photos already uploaded to NextGen (whith the options for: the whole NextGen instance, or per-album, per gallery, or individual photos) on a OSM map. On this same map I want to display GPX traces and KML polygons.

        There is a plugin out there which does the maps for NextGen Gallery Photos, which does put the photos on a map. But it does not allow for GPX or KLM to also be included.

  108. Masare2 says:

    Marc your solution helped me a lot (I did put some “” in the titles), but now that I see correctly my stuff on the map I have them misplaced in the article! (I have tried to post here some images links but it is signed as spam) I was wondering if using “word-wrap:break-word;” could help but… I’m not that good to make it work!!

  109. John Gorentz says:

    Thanks for the WordPress plugin. I’ve found it easier to use than I had expected. One thing, though. When I specify both a marker file and a kml file, they both work, but the kml stuff is written on top of the markers. My KML file contains bicycle routes and such things – line data, in other words. It would best if markers were drawn on top of the lines from the KML file, instead of behind them. Is this possible?

    • MiKa says:

      Thanks for your feedback. If you like it just rate it at WordPress. You are right – I will have a lookt to that issue. Do know, you can also add markers directly to the KML file, see the example here.
      BR, MiKa

  110. patxmay says:

    can i used this code
    echo do_shortcode(‘[osm_map lat="45.2875" ...]‘)
    in a php page loaded from XMLHttpRequest, not direct in a wordpress page ?


    • MiKa says:

      Hi patxmay,

      to be honest: I have never thought about this and I do not know it. Let us know if you made if working. But probably there are easier ways to integrate OpenStreetMap outside WordPress.

      BR, MiKa

    • patxmay says:

      it’s run with this code
      jQuery(‘#mapdiv’).load(“osm.php” )

  111. patxmay says:

    can i used this code in a php page loaded from XMLHttpRequest, not direct in a wordpress page ?


  112. Todd says:


    I added htmlspecialchars_decode($a_ExtAddress) to osm-openlayers.php line 179:
    else if (($a_Type == ‘Ext’) || ($a_Type == ‘ext’)) {
    $Layer .= ‘var lmap = new OpenLayers.Layer.’.$a_ExtType.'(“‘.$a_ExtName.'”,”‘.htmlspecialchars_decode( $a_ExtAddress ).'”,{‘.$a_ExtInit.’, attribution: ”

    That way & and other chars can be used in the address.


    • Todd says:

      I used type=’ext’ and the above to add the OpenMapSurfer theme. It works well in Rekonq, but it doesn’t work in Firefox. Do you have any idea what could be wrong?
      Also, the attribution line is missing the extmap_name value.

  113. patxmay says:

    i test the osm plugin with this in my wordpress page :
    [osm_map lat="48.863" long="2.439" zoom="15" width="800" height="800" marker_file_list="http://localhost/point.txt" type="AllOsm"]
    it run very well !
    but today, i want to use osm in my php code : in the worpdpress page i have this

    and in my webpage_recherche.php , i have this :
    echo "test”;
    the string ‘test’ display very nice ..
    How can i load the osm plugin in php ? which php function with ?

    Thanks a lot for you help

  114. raf says:

    Hi there,

    trying to play around with your promising plugin, i was willing to display custom types posts on a map using shortcode found here :

    but that didn’t work : it works fine with ‘posts’ with the right custom field, but not with ‘custom types posts’..

    any clue i could make that work ? add a parameter in the shortcode and some extra query in the plugin code to loop on custom post types ???

    thanks 🙂


    • raf says:

      i got it working after playing inside the osm.php file :
      – added a shortcode attribute named ‘post_type’
      – edited the query in function createMarkerList on line 356:
      instead of
      – passed the ‘post_type’ attribute value to the createMarkerList function

      let me know if you guys are interested in having the edited file.


      • raf says:

        me again, speaking to myself 😉

        after custom posts types, i also added two attributes to shortcode to add to import to dea with custom taxonomies :
        – “custom_taxonomy” : to give the taxonomy name to include
        – “import_osm_custom_tax_incl_name” : to include a taxonomy by its name

        so now my shortcode looks like :
        [osm_map ...... import="osm_l" post_type="site" custom_taxonomy="country" import_osm_custom_tax_incl_name="Spain"]
        to get the custom post types with a given custom taxonomy 🙂

        let me know if you re interested in seeing the code or not..

        • MiKa says:

          Hi raf,

          this sounds very nice and if the implementation is compatible to old OSM plugin versions we would love to integrate your work and make it available to other OpenStreetmap user with the plugin!


          • raf says:

            hi there,

            i put the code for osm.php file here :

            i m not sure what you mean by :”compatible to old OSM plugin versions”… 🙁

            thx for the plugin !

            • MiKa says:

              Hi raf,

              thanks a lot for your coding – it will be considered in the next version!
              Several people adapt the OSM plugin to the need of their personal page – some of them can be used to be added into the published OSM plugin version. There are several thousands installations of the OMS plugin, most of them are autoupdated. Most important is, that these installations do not break with a new OSM plugin version. I was talking about this, released features must not break because of new features.
              gtx, MiKa

  115. Dmitry says:

    It seems that popups are not autosized correctly. For example, visible only two lines in popup and two lines hidden

    • Marc says:

      Hello Dmitri,

      I noticed the same behavior, see the second point of my post just behind yours and the reply of Mika.

      I’ll manage the font size by adding HTML tags into the descrition field (somethink like YOUR DESCRIPTION).
      And I guess somethink more easy will appear into further versions (nices css statements added into osm_map.css ???)


  116. Marc says:

    Hi, thanks for this usefull plugin.

    I made a page with marker_list and I noticed that the list_name is used in the overlay selection.


    1) I wonder if several overlays could be displayed by multiple marker_list arguments ? This feathure would permit visitors to select some of them by enabling (or not) some overlays.

    2) You may notice by cliking on the markers that text is too big, is there a way to manage test format and/or box format ?

    Thank You,

    • MiKa says:

      Hello Marc, I am not sure what you addressing with the first point. Regarding the second point there will be a change in the plugin that is planned for weeks, but … a newer mechanism has to be implemented in the plugin – hope I find some time soon to fix it. Gtx, MiKa

      • Marc says:

        Hello Mika, the main point is the first : I’d like to have, in the same map, several layers defined by several marker_list=text_files. This will be a great improvement (and some extra work !)

        Hope You can do this, soon or later, ;->)


        • Marc says:

          I looked to the osm.php and found a group of lines beginning by : if ($gpx_file_list …..

          I made a mix between this group and the marker_list group.

          the result is that You can insert in the shortcode

          in function sc_showMap($atts) {
          after ‘marker_file_proxy’ => ‘NoFile’, // ‘abs…
          add ‘marker_file_list’ => ‘NoFileList’,

          after if ($marker_file != ‘NoFile’){
          $MarkerName = basename($marker_file, “.txt”);
          $output .= Osm_OpenLayers::addTextLayer….

          add // Add multiple Layers
          if ($marker_file_list != ‘NoFileList’){
          $MarkerFileListArray = explode( ‘,’, $marker_file_list );
          $this->traceText(DEBUG_INFO, “(NumOfMarkerFiles: “.sizeof($MarkerFileListArray).”)!”);


  117. Neil Watson says:

    I now have a nice map and multiple markers (accepting that the descriptions need to be tidied up). However, as the scale of the map changes the markers move relative to the map. As I zoom out from close up to further away, the markers move South.

    Is this a feature or is there a workaround? You can see the map at

    Many thanks


    • Marc says:

      Hello Niel,

      I don’t think your markers move, the marker seems to be balls with a tee (or support). Il You fix the place of the balls (circles) during the zoom in, You can notice they are staying in place. The tee appears smaller (relative to the background) and is botton moving North.

      Do You have icon offset in your configuration ?



  118. Neil Watson says:

    This is a great plugin, but I cannot get multiple markers to work.

    The map page is at . I have downloaded the example and replaced the data item by item, but nothing shows.

    My marker file is:
    lat lon title description icon iconSize iconOffset
    54.0938 -0.32295 All Saints Church 20,20 0,-20
    54.09382 -0.32381 Winifred Holtby’s grave 20,20 0,-20

    Any thoughts?

    Many thanks


  119. anders frisk says:


    I have a problem displaying KML-files. Everything works with gpx files, but when i try to show a kml file the data from the kml file does not show. I have tried to copy the text from the KML-example, but even then the KML-file wont load.

    I am using the latest version of wordpress.

    what doesnt work:
    [osm_map lat="59.835" long="17.573" zoom="14" width="600" height="450" kml_file="" map_border="thin solid black" marker_file="" type="Mapnik"]

    [osm_map lat="38.713" long="-9.136" zoom="16" width="450" height="300" map_border="thin solid orange" theme="ol_orange" kml_file=""]


  120. Bård Laukvik says:

    Hi, I am trying to show the maps from the norwegian authority. They provide several formats at these URLS:
    I am especially interested in the layer called topo2.

    (In a web application I would get the gmap tiles like:
    this.getTile = function(coord, zoom, ownerDocument) {
    var div = ownerDocument.createElement(‘DIV’); = this.tileSize.width + ‘px’; = this.tileSize.height + ‘px’; = “url(” + this.layer + “&zoom=” + zoom + “&x=” + coord.x + “&y=” + coord.y + “)”;

    Has anyone gotten this to work in OSM plugin ??
    I tried things like:

    [*osm_map lat=”59.133″ long=”11.387″ zoom=”14″ width=”450″ height=”300″ map_border=”thin solid black” control=”scaleline,mouseposition”
    type=”ext” extmap_type=”topo2″ extmap_name=”myMap” extmap_address=”${z}&x=${x}&y=${y}” extmap_init=”numZoomLevels: 17, transitionEffect: ‘resize’, tileOptions: {crossOriginKeyword: null}, sphericalMercator: true” ov_map=”0″]

    But no success

  121. Adrian Walmsley says:

    I would like to read a list of markers from a file (in CSV format preferably).

    What is the format of the marker list txt file?


  122. Fiona says:

    I would like to use this plugin to map the care homes on my site but cannot make marker_list work. I have uploaded the text file, with latitude and longitude pairs separated by a comma, through new media and used the generated http:// but nothing shows on the map. What am I not doing?

  123. Mark says:

    Hello Mika,

    I am so glad I found your awesome plugin. Thank you for developing it.

    I am working on my travel blog at

    I have a working map on the homepage sidebar with all the posts marked and a route map on my where page. Now, I hope to make a similar map on the photos page with only the gallery posts marked.

    I am trying to use the [ import_osm_cat_incl_name=”photo” ] to select the category “photo”. My posts are categorized as both “gallery” and “photo”, I’ve also tried to select by “id=50” but none of those works. I just get an empty map.

    I haven’t been able to find any documentation on how to implement the [import_osm_cat_incl_name=”announcement”] short code. Could you tell me what is the proper syntax for this feature?

    Thank you,


    • MiKa says:

      Hi Mark,

      thx for your feedback.

      I could see your post, but I do not know the exact shortcode you are using. There are two things:

      * Change the editor in the WP backend to plain text and make sure there is no style info in the shortcode and you are using the right ”
      * Make a testpage including all articles in a map and on the same page map just including photos.

      If you checked the first point and you did the second point, let me know the link and add the shortcode at the page.


      • Mark says:

        Thanks for being so quick to reply.

        Here is the link to the test page:

        I checked to be sure that there was no stray formatting. I put several different maps and shortcodes on the test page but still can’t figure it out.

        Also, I noticed that the scaleline is obscured by the google logo in the lower left corner of the map. Is there any way to control its placement-maybe move the scaleline to another corner… not that big a deal, just wondering.

        Thanks for the help,


        • MiKa says:

          Hi Mark,

          this testpage ist great for fixing! I could not find the reason up to know but there are two more things I ask you to do:

          * add one article with only one(!) category “photos” – I could see they are all “gallery” and “photos”
          * add one map in the testpage and include “gallery”


          • Mark says:


            That’s it! You figured it out. When I took away one of the categories it displayed fine. I also ran a test with “gallery” to make sure that having a category with the same name as a post format wasn’t causing a conflict and it worked fine.

            Then I tested on the map of all posts to see if a post in two categories would display and it did. So it looks like there is only a display problem if you have posts in two separate categories AND you try to limit the categories with import_osm_cat_incl_name=.

            I also tried to include both categories in the shortcode but it would not display any posts. I now realize that the correct shortcode to limit by category requires both import=”osm_l” AND import_osm_cat_incl_name=”photos” to run correctly.

            So, the solution for me will be to make sure that they are only in one category. Thanks so much for helping to get to the bottom of it.

            Thank you,


  124. Hi,

    Thanks for this great plugin!

    I am having troubles with the CSS rules that you are adding in osm_map.css and osm.php to set the max_width for all images to “none”.

    This seems dangerous and extreme to me and it’s breaking rules set by other plugins such as nextgen gallery that sets max_width for 100% for images with certain classes.

    Isn’t it possible to use more restrictive selectors to set max_width only for images generated by OSM Map?



    • MiKa says:

      Hi Eric,

      which WP-Theme are you using, is there a link to a page you are facing problems?
      Generally you are right, these style rules should focus only on map info … I will consider it with the next version.

      BR, MiKa

  125. Dmitry says:

    Plugin version 2.1
    Geotagging not working.
    Page always contains “!– OSM plugin V2.1: did not add geo meta tags. –”
    I think the problem in the commented line:
    function wp_head($not_used)

    $lat = ”;
    $lon = ”;

    // list($lat, $lon) = explode(‘,’, $PostLatLon); produced warning on some blogs ToDo
    To insert geo tags into the page (not post) “is_single” must be replaced with “is_singular” in line:
    if(is_single() && ($lat != ”) && ($lon != ”)){

    • MiKa says:

      Hi Dmitry!

      Thanks for your comment and the fix for pages! It will be considered in the next version.

      The geotagging feature is mainly used to tag posts in WordPress an show them on the map. This is working pretty fine and used on many pages. In addition to it, there are some comments when you look on the generated source of your page – you are right, this is not working in the current version, but does not influence the geotagging feature in WordPress.


  126. Todd says:

    First of all, thanks for the great plugin! I have a few comments:

    1. I’m using the OSM plugin like this:
    My text…
    [osm_map ...]
    This makes the map overlap slightly with the first row of gallery pictures, i.e. the margin between map and gallery is too small.

    2. I’m using the FancyBox Gallery plugin which creates an overlay when a gallery picture is clicked. Unfortunately, in the z-order, the OSM plugin is always above the picure overlay.

    3. I was happy to see the ‘No Google API’ feature. Unfortunately, the admin part of the plugin tries to load scripts from Google servers. Blocking those requests (using NoScript) breaks the map display (even for OSM) completely. It would be great if access to Google servers could be switched off completely.

    It would be great if you had any ideas how to fix those. 🙂

    • MiKa says:

      Hi T,

      I am no sure about the first issue, since this would need a very generic solution. Propably the easiest way is to put some space between these two shortcodes (linefeed).
      For the second point: Did you try the argument z_index=”0″ in the osm-shortcode?
      And you are right, the google libraries are called in the backend since the map at the shortcode generator allows you to generate google maps, too. If you do not choose google maps, these libraries are not loaded for your page / posts.

      • Todd says:

        Hi MiKa, thanks for your reply.

        Unfortunately, adding vertical whitespace doesn’t help with no. 1, and adding z_index=”0″ doesn’t help with no. 2. I tried to tinker with the CSS but haven’t found a solution yet.
        For no. 3 I just commented out all references to Google scripts – I don’t want anything to load from there at any time.


        • MiKa says:

          Hi T,
          without a link to your page it’s difficult. If you modify the plugin by yourself you should also safe it local to be able to update it and add your modifications again to the newer version.
          Gtx, MiKa

          • Todd says:

            Hi, ok, no. 1 is fixed with an after the map. A CSS solution would still be nice. 🙂
            You can see no. 2 at


            • Todd says:

              That should be: “no. 1 is fixed with a br after the map”

            • MiKa says:

              Hi T,

              by the end of next week I will publish a V2.2 Beta1 that should fix your z-index problem and also remove the requests for the google library in the backened. Check and give feedback here to ensure it fixes your problems.

              Gtx, MiKa

              • Todd says:

                Hi Mika,

                Thanks for the new version. Unfortunately, the z-index problem is still there.


              • Todd says:

                I had a look at this again and it seems like the OpenLayer lib adds a very high z-index (various values ~1000).
                I just ‘fixed’ that by changing the fancybox z-index values to 2000+.

            • MiKa says:

              Hello T,

              there is no OSM map on this site anymore – I can not do any test to analyse your problems if you remove it.


  127. Dmitry says:

    Hello, thank you for the great plugin. Yet I can’t figure our how to post a map with all my geotagged posts on it.

    The corresponding part of your manual is not quite clear – it says “to add a marker with link to the article add a shortcode like this” – yet it doesn’t say, what to do to post the whole map.

    I tried posting the suggested code though ([osm_map lat=” etc.), it does create a map, but with no markers, although I have two posts I added OSM_geo_data and the value in custom fields.

    Please help.

    • MiKa says:

      Hi Dmitry,

      thanks for your feedback!
      Regarding the documentation we are going to consider your lines and adapt these parts and make it more clear. To solve your issue let us know:
      * what is set at settings => osm => at the very end of the page at custom field?
      * what is set at settings => osm => at the very end of the page at php interface?
      * what is the address of your customfield at the post?
      * what exactly looks your osm shortcode like?

      • Dmitry says:

        Hi Mika,

        Thank you for the quick answer, sorry for not being as quick on my side.

        – custom field in settings – Custom Field Name: OSM_geo_data
        – php interface in settings – Map Zoomlevel for the PHP Link (1-17): 7
        – address in the customfield – 52.23388,20.96094
        – osm shortcode – [osm_map lat="52.795" long="23.51" zoom="3" width="450" height="300" control="mouseposition,scaleline" map_border="thin solid orange" theme="ol_orange" type="CycleMap" marker_name="wpttemp-yellow.png" import="osm" import_osm_cat_incl_name="announcement"]

        Thank you very much.

        • MiKa says:

          Hi Dmitry,

          you have to delete
          from your shortcode, this is just used in the sample on this page to show how to filter to one post category. If oyu delete it, it will display all posts.

          • Dmitry says:

            Oh, I am sorry – it finally worked our after I removed all OSM custom fields from my posts and placed them again. You may want to use this case for your help files.

            Thank you very much!

  128. Mickaël says:

    Hi Mika,

    Our website is still under construction but now we have a map than works great !

    Thanks a lot for your kind help,
    Regards, Mickaël

  129. Nate Wessel says:

    I’m having some trouble getting outside tiles to display with the plugin. I’d like to use the ‘transport’ layer that’s on the homepage of
    The API for that tileserver is documented here and seems to be in the same format as the extmap_address given in the example here.

    I can’t get either the transport layer tile server or the one in the example(nor even the basic OSM Mapnik layer) to show up in the map. It presents variously one of two problems:

    1. I get a bunch of blank pink tiles which presumably means it can’t find the data, or

    2. with the example exactly like it is(minus the asterix of course) it fails to reconize the shortcode and renders the shortcode as text and I can’t figure that out at all since I don’t see any obvious syntax errors.

    Can someone please help me by providing a working shortcode into which I could insert the appropriate values to display the OSM transport layer for my area?

    I’m using v2.0 of the plugin.



    • MiKa says:

      Hello Nate,

      there are three answeres:
      1.) You found a bug. When I reproduced your lines I recogniced, that – for any reason – a map has to be embedded like “[*osm_map lat=”51.482″ long=”-0.239″ zoom=”14″ control=”scaleline,scale,mouseposition” width=”450″ height=”300″ ov_map=”0″]” before loading an external map (by chance, the example shows two). I will have a look on this issue.

      2.) When you insert the OSM shortcode you have to be sure, not to insert any characters for the format. In your editor change from visuell to text and delete all tags like “strong” in your shortcode.

      3.) There is another bug reported related to adaptive WP themes which will be fixed within the next two weeks in an OSM Plugin Version 2.1. I will add the transport layer in this version to be called just as map-type and not as external type 😉 In advance I will publish it here as Beta – would be great to get feedback before it is released on


      • Nate wessel says:

        Thanks for the quick response! I feel really stupid…There were indeed a few randomly placed *strong* and *code* tags inside the shortcode. WordPress always seems to find the most unexpected places for those doesn’t it?

        I did get it working after removing those with the following shortcode:

        [*osm_map lat=”39.099″ long=”-84.51″ zoom=”13″ width=”500″ height=”500″ extmap_type=”OSM” extmap_name=”Cincy_Transport_Layer” extmap_address=”${z}/${x}/${y}.png” extmap_init=”tileOptions: {crossOriginKeyword: null}” type=”ext”]

        The reason it was showing up pink(ie failing to retrieve the files) is that there was a *code* element wrapped around the URL of the tile server.

        Thanks for your work!

  130. Lowa says:

    Good day, I followed the plugin installed on my domain WP went on Settings OSM and I loaded my GPS track but when I try to view the post get the message “errorLoadingGML”

    my code is as follows:
    [* osm_map lat = “45.63” long = “12288” zoom = “12” width = “600” height = “450” gpx_file = “ “gpx_colour =” black “control =” scaleline “theme =” dark “type =” CycleMap “]

    Do you have any advice to solve my problem?

    • MiKa says:

      Hi Lowa,

      you have to correct your GPX-address, just type the address into the browser. As sample have a look to this:

      You can see the GPX text-file. If you type your GPX address, you get just an error. If you know the address of the GPX file in your own blog you have to add it.


      • Lowa says:

        Thanks mika actually with my link I can not see the text, if trascno from my desk the gpx on the browser I see correctly using wordpress but there’s no way the load through the media uploader but when I try to view the file gives me error …. Any idea?

        • MiKa says:

          If you have FTP access you can upload the file manually to your WordPress uploads folder. There is no need to upload it via WordPress, it just has to be at Blog domain address. Also check upper and lower case of your filename.

          • Lowa says:

            Also tried this and the program to load the files on the FTP if I look at the file permissions are set to 000. If I try to change them does not change anything … There must be some other little problem ….

            • MiKa says:

              Hi Lowa,

              yes, before adding an OSM map with a track to your blog, the issue with the fileupload has to be solved and tested simply by calling the GPX file directly in the browser.

  131. Lars Mielke says:

    I am working with the OSM_displayOpenStreetMapExt function for automatically geotagged posts and wanted to know, if there is a way to specify my own source for the lat/lon values.
    I have a custom field, which provides the position data in a different way than the OSM plugin. Do I have to hack my custom fields or is there a way, to set an own handler for the position data?

  132. MiKa says:

    WordPress OSM Plugin V2.0 Beta 2 is available for download.

  133. Mickaël says:

    Good evening Mika,

    I also tried with “http://” instead of “ftp://” but I got no results either.

    No, I didn’t modify the coding. (I also made sure all previous osm plugin folder was deleted before I install the beta version).

    Also, quite curiously, when the plugin is activated it is not possible to upload any media in the library…

    I am not sure what to do now. Thank you for your help,

    • MiKa says:

      … and add the www. in the address of the kml file, since your blog address is like this. gtx, mika

      • Mickaël says:

        Yes you’re right. I corrected and double check the link but still no results…

        • MiKa says:

          But now the kml file is loaded … I can see it now. gtx, mika

          • Mickaël says:

            yes it is, good news 🙂 There are still the white bands though. Is this bug only happening to me ?

        • MiKa says:

          You have commented about a message “This is somewhat embarrassing, isn’t it? It seems we can’t find what you’re looking for. Perhaps searching can help.”
          Did you modify/change the address of your blog?
          Is the URL and the Blog address the same (general settings in the blog) – or does it differ with the www? I am wondering why the controls are not shown in your map.
          Gtx, MiKa

          • Mickaël says:

            Blog and URL address are the same yes.

            “This is somewhat embarrassing, isn’t it? It seems we can’t find what you’re looking for” > this is still the message when clicking on settings. It only works when use chrome. (we tried safari, firefox, IE).

            And also, it’s not possible to upload images in the library when the plugin is activated… Quite weird…

            Best. Mickaël.

            • MiKa says:

              If you try to see a OSM plugin icon on this OSM page:
              you see it. When you enter your blog address:
              you get an error.

              1.) Is the png located at this address and do we have rights to read it?
              2.) When you disable the OSM plugin you can see the blog seetings and if you enable the OSM plugin you can not see it – all with Firefox?
              3.) When you disable the OSM plugin you can upload images in the library and when you enable it you can not?


              • Mickaël says:

                1) The png is located at the following address:
                The OSC plugin has been installed with a different folder name. I tried to brutally rename the folder to osm, but it did not work: the map did not appear anymore.

                2) Whether the plugin is activated or not I have this message (“This is somewhat embarrassing…”) when I click on settings, with firefox.

                3)That’s correct.

                thanks for your help,
                Regards, Mickaël

                • MiKa says:

                  If you can not rename it:
                  * deactivate it
                  * delete it
                  * copy the Beta 1 OSM folder
                  The pluginhas to be at this location.
                  gtx mika

                  • Mickaël says:

                    Hello Mika,

                    Finally it worked! Your advices were very good.
                    I have two more questions, if I may…
                    – Is it normal to see the tiles on the map (not a big deal though)
                    – Is there any way we see see the markers’ information (eventhandler?) ? It contains description of the markers and it is something important for us.

                    Thank you for your kind help and have a good evening ! Best Regards. Mickaël

                    • MiKa says:

                      Hi Mickaël,

                      add 1.) No, it’s not normal to see the tiles in the map. I will try to fix this in Beta 2 for the wp-theme you use.

                      add 2.) No, there is no way to see the info (HTML Popup) in the PlaceMarkers. This is part of the eventhandler and will be part of OSM V2.0 Beta 2.

                      Beta 2 will be released here within the next three weeks.

                      BR, MiKa

                    • MiKa says:

                      Hi Mickaël,

                      the Eventhandler has been implemented – you can see it on the KML example page. The plugin will be available for download on Wednesday.


                      PS: Can you upload mediafiles after you renaming the folder name?

                    • Mickaël says:

                      Hello Mika,

                      fantastic ! I am looking forward to try the latest version !

                      Best regards,


                    • Mickaël says:

                      Hello MiKa,

                      I have attached the link to our map.
                      It looks great so far. Only one thing, the hyperlink are deleted. Is there anyway to keep them ?

                      What do you mean by : PS: Can you upload mediafiles after you renaming the folder name?

                      Thanks again and have a good day.

                    • MiKa says:

                      Hi Mickaël,

                      if you like the plugin just rate it at WordPress.
                      In Beta 1 there was a bug when you uploaded mediafiles. It is fixed in Beta 2.
                      I am not sure about the link in the kml files … I will have a look to it.
                      Your page with the map is well done – the routes in your kml files are very detailed, so it is quite big and it takes some time to parse it. If you split it (eg between flights), the visitor of your page would see one after another – in the same map or in different maps.
                      Gtx, MiKa

  134. Mickaël says:

    Dear Mika,

    Thanks a lot for having released this V2.0 Beta1 plugin !
    After having installed it I couldn’t access the settings. It gave me the message:
    This is somewhat embarrassing, isn’t it?
    It seems we can’t find what you’re looking for. Perhaps searching can help.

    I thought maybe the 1.3 version need to be activated but I cannot activate both version.
    Is there any step I missed ?
    Thanks for your help,
    Best, Mickaël

    *I meant I cannot activate both version at the same time (fatal error)

    • MiKa says:

      Hello Mickaël,

      thanks for this comment, I have added the missing information at the download page. The content of the OSM folder must not be twice in the WP plugins folder. To use the Beta version you have to delete the previous OSM plugin version (rename is not enough). As soon as the Version 2.0 is released you can make the update directly in the backend and WP is deleting / replacing the Beta OSM plugin with the Final for you.
      This version covers the feature to display a KML file, the event handler will be part of the final version – which will be released within one month.
      Gtx, MiKa

      • Mickaël says:

        Hello Mika,

        After having uninstalled everything and installed the beta version again I still get the same message. What else should I do so that the plugin workd ?

        Thanks for your help and good evening,

        • MiKa says:

          Hi Mickaël,

          this error messages is not generated by the OSM plugin, but a very generic one by WordPress. If you google it, you will find many reasons and solutions.
          When you deleted the entire OSM plugin folder (not uninstall, not rename) and you created a new article, do you still see this message?

          BR, MiKa

          • Mickaël says:

            Hello Mika,

            Yes, I still saw the page not found after deleting OSM folder. I could only access settings by using chrome (neither safari, IE, Safari worked). also, none of the icon is displayed in the settings page and I don’t get any good results (kml not displayed and map with blank parts).

            Here is the map I did, with the code:


            Thanks for your help and for your time,

            • MiKa says:

              Hello Mickaël,

              the message you mentioned was not shown on my browser.
              The KML file is not shown because your prefix at the file is “ftp://” instead of “http://”. You should loud your file like:
              I could also see the blank parts in your map – you are running V2.0 Beta 1 without any modifications in the coding, aren’t you?


  135. MiKa says:

    The first posting in the new WordPress OpenStreetMap Plugin Forum.

By continuing to use the site, you agree to the use of cookies and load data from third parties. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.