This is a free plugin – answere to your comments may take up to one week.

This plugin is updated five times a year. The more people ask here for a specific feature, the higher is the chance to get it ;-)

If you like the plugin please rate it here.


300 comments on “Forum-EN
  1. 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 sagt:

        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

  2. Matt sagt:

    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.



  3. Pablo sagt:


    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?


  4. Eddy sagt:

    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.

  5. Gerard sagt:

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


  6. Ruben sagt:


    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 sagt:

      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 sagt:

        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

  7. 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?


  8. GiMa sagt:

    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 sagt:

      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

  9. Radoslav sagt:


    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 sagt:

      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.


  10. Todd sagt:

    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 sagt:

      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!

  11. Arnaud sagt:

    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 sagt:

      Hello Arnaud,

      pls post a link to a testpage on your site.

      BR, MiKa

      • Arnaud sagt:

        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 sagt:

          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 sagt:

            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 sagt:

              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

  12. Santos sagt:

    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.

  13. Philipp sagt:

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

    That would be great. Thanks!

    • MiKa sagt:

      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 sagt:

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


        • MiKa sagt:

          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 sagt:

          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 sagt:

            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 sagt:

              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 sagt:

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


                • Philipp sagt:

                  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 sagt:

                    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

  14. Santos sagt:

    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 sagt:

      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!

  15. Todd sagt:


    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}


  16. Bernard sagt:

    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

  17. Jeremy sagt:

    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 sagt:

      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 sagt:

        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.

  18. John Gorentz sagt:

    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?

  19. John Gorentz sagt:

    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 sagt:

      Hi John,

      can you make a sample page and post the link …

      BR, MiKa

      • John Gorentz sagt:

        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 sagt:

      Hi John, your sample – page looks empty …

  20. Marcus sagt:

    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!

  21. Alessio sagt:

    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 sagt:


      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 sagt:

        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 sagt:

          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 sagt:

            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?


  22. Philipp sagt:

    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.


  23. Fredrik sagt:

    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!

  24. Hugh sagt:

    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.

  25. Hugh sagt:

    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.

  26. Santos sagt:

    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.

  27. Digby Maass sagt:

    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!

  28. Frits sagt:

    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

  29. dondelion sagt:


    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

  30. Masare2 sagt:

    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 sagt:

      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 sagt:

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

        • Masare2 sagt:

          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 sagt:

            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 sagt:

              ok, I’ll try! thanks!

              • Masare2 sagt:

                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 sagt:

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

                • Masare2 sagt:

                  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!!!

  31. John Nielsen sagt:

    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

  32. herve sagt:

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

    many thank’s

  33. 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.

  34. Helga Rakel sagt:

    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?

  35. 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.

  36. Petar sagt:

    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?


  37. Fre sagt:

    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"]

  38. 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.

  39. 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.

  40. Mikko Wuokko sagt:

    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 sagt:

      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.

  41. Koen sagt:

    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 sagt:

      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.

  42. David sagt:

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

  43. Helga Rakel sagt:

    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

  44. John sagt:

    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 sagt:

      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)?


  45. Christian sagt:

    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 ?


  46. Renato sagt:

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

  47. Christian sagt:

    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.


  48. Masare2 sagt:

    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 sagt:

      also the maps in articles are pointing to the wrong place

      • Masare2 sagt:

        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 sagt:

      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 sagt:

        thanks, I didn’t see your answer!

        • MiKa sagt:


          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 sagt:

          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!

  49. Mark sagt:

    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!


  50. Jo sagt:

    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.



  51. John Brisbin sagt:

    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 sagt:

      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 sagt:

        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 sagt:

          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

  52. Luca sagt:

    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?

  53. Peter Bailey sagt:

    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.

  54. Neil sagt:

    Is it possible to load map styles from stamen?

  55. patxmay sagt:

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

  56. Hugh sagt:

    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 sagt:

      Hello Hugh,

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

      Br, MiKa

      • Hugh sagt:

        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.

  57. Masare2 sagt:

    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!!

  58. John Gorentz sagt:

    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 sagt:

      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

  59. patxmay sagt:

    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 ?


  60. patxmay sagt:

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


  61. Todd sagt:


    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.


  62. patxmay sagt:

    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

  63. raf sagt:

    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 sagt:

      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 sagt:

        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 sagt:

          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 sagt:

            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 sagt:

              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

  64. Dmitry sagt:

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

    • Marc sagt:

      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 ???)


  65. Marc sagt:

    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 sagt:

      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 sagt:

        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 sagt:

          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).”)!”);


  66. Neil Watson sagt:

    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 sagt:

      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 ?



  67. Neil Watson sagt:

    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


  68. anders frisk sagt:


    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=""]


  69. Bård Laukvik sagt:

    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

  70. Adrian Walmsley sagt:

    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?


  71. Fiona sagt:

    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?

  72. Mark sagt:

    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 sagt:

      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 sagt:

        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 sagt:

          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 sagt:


            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,


  73. 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 sagt:

      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

  74. Dmitry sagt:

    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 sagt:

      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.


  75. Todd sagt:

    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 sagt:

      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 sagt:

        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.


  76. Dmitry sagt:

    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 sagt:

      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 sagt:

        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 sagt:

          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 sagt:

            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!

  77. Mickaël sagt:

    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

  78. Nate Wessel sagt:

    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 sagt:

      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 sagt:

        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!

  79. Lowa sagt:

    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 sagt:

      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 sagt:

        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 sagt:

          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 sagt:

            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 sagt:

              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.

  80. Lars Mielke sagt:

    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?

  81. MiKa sagt:

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

  82. Mickaël sagt:

    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 sagt:

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

      • Mickaël sagt:

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

        • MiKa sagt:

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

        • MiKa sagt:

          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 sagt:

            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 sagt:

              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 sagt:

                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 sagt:

                  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 sagt:

                    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 sagt:

                      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 sagt:

                      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 sagt:

                      Hello Mika,

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

                      Best regards,


                    • Mickaël sagt:

                      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 sagt:

                      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

  83. Mickaël sagt:

    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 sagt:

      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 sagt:

        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 sagt:

          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 sagt:

            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 sagt:

              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?


  84. MiKa sagt:

    The first posting in the new WordPress OpenStreetMap Plugin Forum.

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *


Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>