OpenStreetMap wordpress plugin
feedback & discussion
This site is used to
- report bugs
- post ideas for further versions
- ask questions
- post the URL of your site using the Wordpress OpenStreetMap plugin.
This site is used to
RSS feed for comments on this post. TrackBack URL
Powered by faktor, based on free software.

Awesome job on the plugin.
I just played with it for a few minutes and was wondering if you plan on extending it (is there a roadmap)?
Wishlist
- Elevation Chart (gpx)
- Speed Chart (like in the XML Google Maps Wordpress Plugin )
- generating a map from a link to a kml/gpx file (without osm_map shortcode).
- autocentering on track
- calculate width / height from track (within given values?)
- detect zoom automatically
- alignment option
Maybe if you don’t want to put a lot of additional effort into it you might setup an OS project at sourceforge or launchpad or the like.
That way the community could easily add feature requests and other developers can help improving the plugin.
Take care,
Christian
Comment by Christian S. — 2009-04-28 @ 12.13 am
----------------------------------------------------------------------------------@Christian
Thanks for your ideas! Some of theme were already on my list (like autocentering or zoomdetection) and other ideas are new to me (like generating a map just by a link)!
The next version is focusing on interfaces to other plugins, a Beta-Version is shown at the gcStats-plugin page of Michael Jostmeyer, showing the combination of his geocaching plugin and the OSM plugin.
The plugin is still in the startup phase, even the internal SW-architecture is not fixed yet. As soon as the planned features are covered I will consider an OS project to use the advantages of the community. Nevertheless feedback and discussion is welcome all the time – the more detailed the better!
Comment by MiKa — 2009-04-28 @ 5.49 am
----------------------------------------------------------------------------------It would be very nice to include the use of OpenRouteService. This would make it a real alternative to Google Maps.
Comment by marco — 2009-05-07 @ 4.59 pm
----------------------------------------------------------------------------------hi, very nice plugin, it would be nice to add geocoded photos from the ng gallery. best jan
Comment by jan — 2009-05-19 @ 10.14 pm
----------------------------------------------------------------------------------@Jan
Since I am crazy about geotagging photos, using the geocode of photos in the OSM plugin will be implemented in one of the next versions for sure.
Actually V0.9 – end of may – will focus on popup marker and interaction with the visitor of your site.
Comment by MiKa — 2009-05-20 @ 1.52 am
----------------------------------------------------------------------------------Hi, today i was playing around with the vistors adding markers feature wich is very nice for colaborative mapping. It would be nice if the latitude and longitude data would be written to the comments after submiting. (May be together with an address field)
Thanks for this Great Plugin.
Best jan
Comment by jan — 2009-06-08 @ 12.10 am
----------------------------------------------------------------------------------@Jan
To add the geoaddress in your comment field you have to modify your theme. Mostly there is a comments.php files in your theme folder. Within this file there is loop that traces all your comments with:
< ?php comment_text() ?>
Simply add somewhere over there (eg. after this line) these lines to trace the geo info:
< ?php if ($comment->extra_lat != ” && $comment->extra_lon !=”){echo Lat:’.$comment->extra_lat.’ ‘.’Lon’.$comment->extra_lon;}?>
It’s done this way in the sample where you can find the geo address at the commetn:
http://www.Fotomobil.at/wp-osm-plugin-add-marker-by-visitor
Comment by MiKa — 2009-06-08 @ 5.54 am
----------------------------------------------------------------------------------Are there any template tags for themes that allow to display a position indicated by a post’s geo meta tag on a map?
Comment by Bernhard Reiter — 2009-06-26 @ 12.45 am
----------------------------------------------------------------------------------Oh, and an option to use actual address data instead of lat/lon would also be great!
Comment by Bernhard Reiter — 2009-06-26 @ 12.50 am
----------------------------------------------------------------------------------@ Bernhard
1.) there is no template tag yet, but there will be one in the next version to add a map of the post’s geo meta tag in your footer or header.
2.) you need not use lat/lon if you want to show a map of the actual address (defined in a customfield). Just add this shortcode: [osm_map] to see a standard map of the act. address.
Comment by MiKa — 2009-06-26 @ 5.50 am
----------------------------------------------------------------------------------hi
i try to do something like this (with the wordpress plugin):
[osm_map lat="46.7839" long="12.0383" zoom="12" width="440" height="350" gpx_file="http://www.w650.eu/wp-content/plugins/osm/sardinien/1.gpx" gpx_file="http://www.w650.eu/wp-content/plugins/osm/zurburg.gpx" marker="46.791218,12.040674,OSM_marker_text" marker_name="burg.png"]the marker appears, but the text which i defined in an special field does not. do i make something wrong or is this a bug. thanks.
Comment by keule — 2009-06-28 @ 3.00 pm
----------------------------------------------------------------------------------@ keule
If you want to add a text to your marker you have to use the “Custom fields” and add a new one (you chose the name “OSM_marker_text”). It is case-sensitive, therefore it has to be written in the same way.
You will see the text if you double click the marker. You can see a sample here:
http://www.Fotomobil.at/wp-osm-plugin-add-popup-marker
Let me know if this sample fails at your blog.
Comment by MiKa — 2009-06-29 @ 5.51 am
----------------------------------------------------------------------------------Hi! I’ve been waiting long time for this plugin. Thanks a lot!
Just staring use but have some problems.
1) Only can view one map in a post. I understand that you say it’s possible to have several in the faq at http://wordpress.org/extend/plugins/osm/faq/
2) Can’t see gpx traces. After trying with my own, I tried with the example at your page and I can’t see not too. There is some restriction as to be at same server or so?
You can see my test at http://colegota.mapamundi.info/cb/mapas-de-osm-pruebas/ Just leave the code working for the example and “commented with *” the rest if you want to try.
Using WP 2.8, seeing in Firefox 3.0.8 under GNU/Linux.
Regards,
Colegota
Comment by Colegota — 2009-07-05 @ 9.18 pm
----------------------------------------------------------------------------------@Colegota:
Opening your GPX-file in a texteditor I’ve seen strange comments like this:
< ![CDATA[,,,]]>
Test
which confuse the GPX-parser. I replaced them to:
Find the corrected file at:
http://www.faktor.cc/Fotomobil/wp-content/plugins/osm/GPSDATA-20090627_0756.gpx
Using this file you will see your track in a correct way. Your sample is shown here:
http://www.Fotomobil.at/wp-osm-plugin-forum-sample
Comment by MiKa — 2009-07-06 @ 5.55 am
----------------------------------------------------------------------------------Thanks Mika! But that’s not the problem. It was that the gpx must be in same server than WP.
I don’t know why but tested your sample and does not work on my site. Also the sample at your page
[*osm_map Lat="36.315" Long="128.101" width="600" height="450"
gpx_file="http://www.faktor.cc/Fotomobil/wp-content/plugins/osm/Korea_sample.gpx"]
does not work on my page not too.
Finally I’ve uploaded tracks at my site (/gpx/ directory) and now it works. With and Without CDATA. I don’t know nothing about GPX format, but that is recorded by my GPS datalogger and works in programs like Marble or Viking.
So It’s a good starting point for me.
I’ve just come back from Indonesia and have tracks of my routes that I want publish with maps and photos.
If I can help you, for example translating help from English to Spanish, just let me know.
Regards,
Colegota
Comment by Colegota — 2009-07-06 @ 6.21 pm
----------------------------------------------------------------------------------BTW What I must write to have a photo shown when click on an icon like here
http://www.Fotomobil.at/wp-osm-plugin-add-geo-logger-data
or here?
http://chrisduran.eu/surfing/northern-nsw-surf-trip-2009-geotagging-edition/
Can’t find how.
Comment by Colegota — 2009-07-06 @ 6.58 pm
----------------------------------------------------------------------------------@Colegate:
The shortcode for:
http://www.Fotomobil.at/wp-osm-plugin-add-geo-logger-data
is:
[*osm_map Lat="36.315" Long="128.101" width="600" height="450" gpx_file="http://www.faktor.cc/Fotomobil/wp-content/plugins/osm/Korea_sample.gpx" marker_file="http://www.faktor.cc/Fotomobil/wp-content/plugins/osm/Korea_Marker_2009_V1.txt"]
So, there is one GPX-file to display the track and txt-file to display the popupmarker with photos. Just copy the sample-txt-file and modify it! It is organized by tabs and very “sensitiv” for missing tabs …
Comment by MiKa — 2009-07-06 @ 7.13 pm
----------------------------------------------------------------------------------… sorry for “bla”
I just have the same problem Colegate reported in Post 13:
“1) Only can view one map in a post. I understand that you say it’s possible to have several in the faq at http://wordpress.org/extend/plugins/osm/faq/”
Are there a solution for that?
Comment by Peter — 2009-07-22 @ 8.55 pm
----------------------------------------------------------------------------------@Peter
Here is a sample for a post/page with several maps:
http://reiseblog.hohlbrot.de/?p=57
Do your maps work in separate posts? What looks the shortecode of your map like?
Comment by MiKa — 2009-07-24 @ 5.16 am
----------------------------------------------------------------------------------Hi,
I have been playing with the plugin the whole day. Thanks for the great work!!
But there is a question that would be interesting to get an answer for.
Why is the Creative Commons License visible (not completely but) close to the centre of my maps? I have no problem to have the link to openstreetmap.org in the lower right corner and mention the project in the ABOUT section, but this is kinda annoying.
The license is not visible at all on your site MiKa, how do you do this?
best wishes,
Max
Comment by Max Lindemann — 2009-08-15 @ 11.14 pm
----------------------------------------------------------------------------------@Max
At the moment there is no way to modify the position or to disable the license-link. There will be OSM Vers. 0.8.6 within August – maybe I will add an option to set the position.
If you are planning a blog using OSM plugin intensivly send me an e-mail …
Comment by MiKa — 2009-08-17 @ 7.52 pm
----------------------------------------------------------------------------------Hi,
I need to set MULTIPLE markers + Text on the Map, but I can only set one.
How can I set more than one?
Thx
Comment by WpUser — 2009-09-08 @ 11.33 am
----------------------------------------------------------------------------------@WpUser
Thx – forgot to comment on this site, how to do it … will do it within the next days.
Just create a text-file with a list of your markers. For details have a look at:
http://wiki.openstreetmap.org/wiki/Wp-osm-plugin#Add_a_map_with_personal_markers
Comment by MiKa — 2009-09-08 @ 11.15 pm
----------------------------------------------------------------------------------Hi,
Thanks for this plugin!
I have a request for enhancement:
It would be great having the ScaleLine configurable either for the whole site or for each map individually.
I hacked it for me to have it on all maps:
— osm-openlayers.php_orig 2009-10-14 22:02:45.000000000 +0200
+++ osm-openlayers.php 2009-10-14 21:44:38.000000000 +0200
@@ -24,7 +24,8 @@
$Layer .= ‘ controls:[';
$Layer .= ' new OpenLayers.Control.Navigation(),';
$Layer .= ' new OpenLayers.Control.PanZoom(),';
- $Layer .= ' new OpenLayers.Control.Attribution()';
+ $Layer .= ' new OpenLayers.Control.Attribution(),';
+ $Layer .= ' new OpenLayers.Control.ScaleLine()';
$Layer .= ' ],’;
$Layer .= ‘ maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),’;
$Layer .= ‘ maxResolution: 156543.0399,’;
br,
bernhard
Comment by bernhard — 2009-10-14 @ 9.10 pm
----------------------------------------------------------------------------------@Bernhard
yeep – will be added in the next version which will be available at the beginning of November
Comment by MiKa — 2009-10-14 @ 11.07 pm
----------------------------------------------------------------------------------Integration of OpenRouteService would be very, very great!!!
For example: Show a button (any icon) on the map with the text “how to get there from where I am” or anything else. When pressing the icon you can enter you actual address an see the routing info. That would be great
Phantastic PlugIn !!!
Comment by Uwe — 2009-10-30 @ 3.52 pm
----------------------------------------------------------------------------------Thanks a lot for this great plugin. I am using it on http://www.radmelder.de/ubersichtskarte/open-cylcle-map/ to generate a dynamic map of postings.
If you are not already working on it, i’ll try to show different markers for different tag groups. But i think this will take a while
Comment by martin — 2009-12-01 @ 7.21 pm
----------------------------------------------------------------------------------I also have a small Request..
I’m missing the options to add the Lat&Lon Meta data under the Title, or else a function to display the Name of the city which is the nearst of the la&lon.
It would also be nice, if the osm map then just opens in a iframe like WP does it with Photos if you have Lightbox installed.
And of course.. a funtion to automatically add a standard lat&lon to the post if no other lat&lon is given.
Comment by Keichi — 2009-12-31 @ 3.39 pm
----------------------------------------------------------------------------------Hello Michael,
thanks a lot for this great plugin. It is much easier to bring a map on the screen compared to hacking the html code with all the openlayer stuff by hand .
One small feature request: Is it possible to show more than 1 gpx file on the map? I tried [osm_map ... gpx_file=".../file_1.gpx" gpx_file=".../file_2.gpx"] But in this case only the last file is used.
It would be also great if they can have individual colors and names (for the blue box in the upper right corner).
Greetings, Carsten
Comment by Carsten — 2010-01-23 @ 10.25 pm
----------------------------------------------------------------------------------Hi Carsten,
this was already planned for V0.8.7 but there was no time to complete it. I will publish a new version within first half of february including the feature to add several gpx files in different colours.
Gtx,Michael
Comment by MiKa — 2010-01-25 @ 9.26 pm
----------------------------------------------------------------------------------Hello,
my english isn’t well but I hope you can understand me.
in my newest Blog i have installed this great PlugIn but it doesn’t work right. I get the following message: “Error in loading GML file Error in loading GML file …”
So why I get this error and how can I repair it?
Thanks
Muckel
Hallo zusammen,
habe ein neues Blog aufgesetzt und bei jenem das PlugIn installiert. Leider bekomme ich folgende Fehlermeldung: “Error in loading GML file Error in loading GML file ….” und das obwohl die Test Datei hochgeladen ist.
Weiß jemand woran das liegt und vorallem wie ich jenes beheben kann?
Liebe Grüße und vielen Dank
Muckel
Comment by Muckel — 2010-02-03 @ 10.28 am
----------------------------------------------------------------------------------Hi Muckel,
the address of your GPX file is wrong. There are some tags (code) between “wp-content” and “/plugins” in your address. After correcting the address in the osm-shortcode it will work.
Beside this you should not place the GPX file in the OSM folder since this will be deleted at the OSM-plugin update. Copy all your private data (like GPX file) to the “upload” folder of your WordPress installation.
Gtx, MiKa
Comment by MiKa — 2010-02-03 @ 10.15 pm
----------------------------------------------------------------------------------Just curious if there has been any progress on implementing template tags…
Bernhard
Comment by Bernhard Reiter — 2010-02-14 @ 12.37 am
----------------------------------------------------------------------------------Hi Bernhard,
if you click a city/village of Fotomobil.at you will find a link “Map” at the top of the post. This is implemented with three template tags:
OSM_getCoordinateLat // lat of current post
OSM_getCoordinateLong // long of current post
OSM_getOpenStreetMapUrl // link to OpenStreetMap with geodata of current post
They were not documented up to now since I have not been asked for it. It is not just using the functions but you have to check whether the plugin is activated or not and to check whether there are geo data or not. And then you can trace the link.
Let me know if you are planning a blog using template tags – but consider showing maps on every post will slow down your blog …
Comment by MiKa — 2010-02-14 @ 6.09 pm
----------------------------------------------------------------------------------Hi MiKa,
and thanks for your reply. Unfortunately, I’m not quite sure if I’m getting you right. What I’d like to do is: If a post (or page) has geo metadata, I’d like my theme to display (not just link to) a map for it. I’m currently doing this using the geopress plugin — se eg here: http://kati.pregartner.net/2007/04/28/wein-und-kunst-2007/
– but I’m not too happy with it, as it’s practically unmaintained, loads the required javascripts also for posts without geodata, and has rather messy code I’m not really feeling comfortable hacking with.
Comment by Bernhard Reiter — 2010-02-17 @ 3.53 pm
----------------------------------------------------------------------------------Hi Bernhard,
up to now there is no interface to show maps with template tags – but the effort to implement it is not that big and could be considered in the next version within March. It would look like:
OSM_displayMap(width, hight, zoom, type)The geo data (lat/long) is taken by the customfield. If there is no customfield with geo data no map is shown.
Of course you could “hack” my plugin doing it by calling directly my functions, but I strongly dissuade from this, since your page would not work anymore if I change the internal stuff in later versions. Only the interfaces are kept compatible.
Let me know if this fits your idea. If so, I will send you a Beta-Version within the next three weeks and ask you for your feedback.
Comment by MiKa — 2010-02-18 @ 6.04 am
----------------------------------------------------------------------------------Hi MiKa,
that sounds pretty great!
Comment by Bernhard Reiter — 2010-02-18 @ 11.08 am
----------------------------------------------------------------------------------FYI: zoomlevel=18 is a well defined zoomlevel in osm but the plugin says 18 is not allowed (example: http://www.openstreetmap.org/?lat=38.71841&lon=34.846468&zoom=18&layers=B000FTF).
Comment by Roman — 2010-03-04 @ 6.58 pm
----------------------------------------------------------------------------------@Roman:
I am currently working on a version which will be released in March. I will consider your comment about the zoomlevel.
Thx for the feedback.
Comment by MiKa — 2010-03-05 @ 5.06 am
----------------------------------------------------------------------------------