post a photo
about
home

Fotomobil.at

OpenStreetMap wordpress plugin

feedback & discussion

This site is used to

96 Comments »

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

    ----------------------------------------------------------------------------------
  2. @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

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

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

    ----------------------------------------------------------------------------------
  5. @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

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

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

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

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

    ----------------------------------------------------------------------------------
  10. @ 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

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

    ----------------------------------------------------------------------------------
  12. @ 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

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

    ----------------------------------------------------------------------------------
  14. @Colegota:

    Opening your GPX-file in a texteditor I’ve seen strange comments like this:
    < ![CDATA[,,,]]>
    which confuse the GPX-parser. I replaced them to:
    Test
    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

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

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

    ----------------------------------------------------------------------------------
  17. @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

    ----------------------------------------------------------------------------------
  18. … 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

    ----------------------------------------------------------------------------------
  19. @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

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

    ----------------------------------------------------------------------------------
  21. @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

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

    ----------------------------------------------------------------------------------
  23. @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

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

    ----------------------------------------------------------------------------------
  25. @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

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

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

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

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

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

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

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

    ----------------------------------------------------------------------------------
  33. Just curious if there has been any progress on implementing template tags…

    Bernhard

    Comment by Bernhard Reiter — 2010-02-14 @ 12.37 am

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

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

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

    ----------------------------------------------------------------------------------
  37. Hi MiKa,

    that sounds pretty great!

    Comment by Bernhard Reiter — 2010-02-18 @ 11.08 am

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

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

    ----------------------------------------------------------------------------------
  40. Hi,
    After installing the plugin, when I click on osm in settings, i do not get a screen like – it is just blank…
    http://www.faktor.cc/Fotomobil/wp-content/screenshot-1.png
    Any idea?
    Best wishes,
    Chris

    Comment by Chris — 2010-04-08 @ 4.12 pm

    ----------------------------------------------------------------------------------
  41. @Chris

    Some more infomration is needed – you are using the Atahualpa Theme which was tested with the OSM plugin.
    But since this is a very powerful theme there are also some ways to “interact” with plugins.

    * Did try to change the theme temporary to check whether the plugin is working with anohter one?
    * Which plugins do you use – could you disable them step by step to see if there is an influence?
    * Which browser do you use – did you try another?

    It is not that easy without any detailled information, once the reason is found a workaround / bugfix can be implemented.

    Sorry, there are some steps to find a solution …

    gtx, michael

    Comment by MiKa — 2010-04-08 @ 9.11 pm

    ----------------------------------------------------------------------------------
  42. Hi Michael,

    it is not the theme. I tested another one
    it is not the browser (Firefox 3.5.9)
    I did not yet test all plugins. Don’t dare to disable qtranslate as it is a little – hm – say complicated…
    Do you have experience whether this plugin could be an issue?
    greetings,
    Chris

    Comment by Chris — 2010-04-09 @ 1.48 pm

    ----------------------------------------------------------------------------------
  43. Hi!

    As far as I understand, the feature to show all blog posts on the map, only shows small dots.
    What I want is to add a “marker” for every post that offers a popup with title of the post and link to the post?

    Is that possible, or do I have to create a marker-textfile that contains all posts manually?

    Comment by Ian — 2010-04-12 @ 4.09 pm

    ----------------------------------------------------------------------------------
  44. Hi Ian,

    your right, currently a marker text file is the only way to link to all your posts within one map. The way it is implemented now is only marking it wihtout any information to the post.
    Since several people asked for this feature to implement their travelogues and it is also an idead for fotomobil.at for a long time I will consider it in a version that is planned for the end of may.
    Let me now if you are interrested in getting a Beta-version in advance.

    Comment by MiKa — 2010-04-13 @ 5.23 am

    ----------------------------------------------------------------------------------
  45. Hi!

    When can you provide the beta version? I’ll starting my trip on May 6h, so after that date, I’ll not be able to test.

    If you can provide the version to test earlier, I can test it.

    Just write me an mail.

    Comment by Ian — 2010-04-13 @ 3.15 pm

    ----------------------------------------------------------------------------------
  46. @ Chris:
    Sorry, for any reason your comment was in the spam-folder so I did not answere yet. I do not have any experience (good or bad) with qtranslate. I will do some work on the OSM-plugin in may and I will consider some tests with qtranslate, too. I will post about the experience here.

    @ Ian:
    I am not sure whether there is a beta-version ready before may 6th. Anyway I recommend you to use the customfields to geotag your posts since the osm-plugin is also adding the geo-information to your post according to the standard. Up to now there is only a dot in the map, but the next version will be downward compatible – means no changes in the posts will be needed.

    Comment by MiKa — 2010-04-15 @ 6.58 am

    ----------------------------------------------------------------------------------
  47. Hey,
    at first thank you for this plugin. I have an unattractive problem. Around the controls in the map I have a grey border and I have a horizontal space between the tiles. What can I do? You can look here please: http://blog.adelberg-online.de/?p=166

    The map in wordpress osm settings looks fine.

    Greetings,
    Björn

    Comment by BJörn — 2010-04-15 @ 10.38 pm

    ----------------------------------------------------------------------------------
  48. Hi Björn,

    the OSM-plugin uses the CSS of your WP-theme. Your WP-theme may have some padding and border settings for images which lead to this strange behavior. Some WP-themes allow a configuration of these settings (set them to zero). I will have a look if there is a way to ignore all theme-specific settings for the next version to fix it with the next update.

    Comment by MiKa — 2010-04-16 @ 5.57 pm

    ----------------------------------------------------------------------------------
  49. Thank you for this plug in.

    I have just used the OSM Word Press plugin at:
    http://blog.j12.org/2010/04/some-ordnance-survey-royal-mail-data-is-freed/

    I changed example to instead use The Ordnance Survey ‘Street View’ tiles served up from OSM servers.
    I did it with this code in my post:

    [*osm_map long="-1.51" lat="53.82" control="scaleline,scale" zoom="15" width="500" height="450" extmap_type="OSM" extmap_name="UK_OS_StreetView_Map" extmap_address="http://c.os.openstreetmap.org/sv/${z}/${x}/${y}.png" extmap_init="numZoomLevels: 17, transitionEffect: 'resize', sphericalMercator: true" type="ext"]

    I have put ‘Contains Ordnance Survey data © Crown copyright and database right 2010′ with link to license underneath map but I would like to replace ‘Data by CC By-CC by OpenStreetMap’ within map itself. Is there anyway within the code to be posted in blog post to do that.

    Also where can I find more info about what the value ‘extmap_type=”OSM”‘for does? Or if not what does it do?

    Comment by Micah Bunny — 2010-04-17 @ 11.46 am

    ----------------------------------------------------------------------------------
  50. Hi Micah,

    your post looks advanced! Only a few people include “non-standard-osm-maps” into their pages. That’s the reason why it’s not documented in all details up to now. But it’s working nice on your site.
    The “extmap_type” is the class-information for the OpenLayers library.
    Changing the code is a short-time solution to get rid of the link in the map, as the change is lost with the next plugin update. Since some people even avoid a link to value others work, there won’t be a way to turn it off generally, but at least modify it. Give some to do it with the next plugin version.
    Let me know if you miss anything to include other maps, there will be a new version in may – documentation will follow on the osm-plugin-page.
    Gtx, MiKa

    Comment by MiKa — 2010-04-19 @ 7.03 am

    ----------------------------------------------------------------------------------
  51. Hey MiKa,
    thank you for your reply. I have changed your plugin and add the following line to osm/osm.php:

    $output .= ‘#’.$MapName.’ img {padding: 0; margin: 0; border: none; }’;

    Here a set of lines include the new line from me:
    Osm::traceText(DEBUG_INFO, “MapCounter = “.$MapCounter);

    // if we came up to here, let’s load the map
    $output = ”;
    $output .= ”;
    $output .= ‘#’.$MapName.’ {padding: 0; margin: 0;}’;
    $output .= ‘#’.$MapName.’ img {padding: 0; margin: 0; border: none; }’;
    $output .= ”;

    Bye Björn

    Comment by Björn — 2010-04-26 @ 8.18 pm

    ----------------------------------------------------------------------------------
  52. Hi Björn,

    of course this kind of technical feedback is most welcomed – thx.
    This topic will be considered in the next OSM-plugin version (may). You will be able to update without getting the border again ;-)

    Gtx,
    MiKa

    Comment by MiKa — 2010-04-27 @ 6.02 am

    ----------------------------------------------------------------------------------
  53. Hi
    I installed the plugin, which mostly works, but there is an error on all pages:

    Warning: split() expects parameter 2 to be string, array given in /home2/debb2748/public_html/wp-content/plugins/osm/osm.php on line 242

    (you can just see it at the top of any page) – my site is:
    http://moratallatownhouses.com/about/maps/

    I’m not very technical, so if anyone can help me I would really appreciate it.
    Thanks
    Debs

    Comment by Debs Jenkins — 2010-05-03 @ 3.55 pm

    ----------------------------------------------------------------------------------
  54. Hi Debs,

    there might be a problem with the customfield to set the geodata of your page/post. Could you post here these informations:

    * WordPress-Backend=>settings=>OSM=>Custom Field Name:
    * in your post/page the name and the value of your customfield

    gtx, mika

    PS: The grid in the map will be corrected in the next version.

    Comment by MiKa — 2010-05-03 @ 11.17 pm

    ----------------------------------------------------------------------------------
  55. Hi Mika
    thanks for responding so quickly – I didn’t make a custom field name – the code I put on the page is:
    [osm_map lat="38.192" long="-1.893" zoom="18" width="600" height="450" marker="38.192,-1.8932" marker_name="guest_house.png"]

    So I thought I’d add a custom field name to see what happens… When I added a custom field name and clicked save options I got the following error on the settings page (at the top in red):

    [OSM-Plugin-Error]:e_zoomlevel_range
    [OSM-Plugin-Error]:e_options_not_updated

    And the map zoomed back out to the starting point.

    AND the error on all pages has disappeared!

    So, hope that helps a bit. Going to try and do some more fancy maps later today! Thanks a bunch for this great plugin – much happier using this than google ;-)
    Debs

    Comment by Debs Jenkins — 2010-05-04 @ 9.04 am

    ----------------------------------------------------------------------------------
  56. Hi Debs,

    for any reason there was a problem with the customfield at your blog, I can not reproduce it and I do not know which information is needed. Maybe I will contact you again if another persons reports this kind of problem.
    Within May the WordPress Version 3.0 will be released, afterwards I will do some tests and publish OSM-plugin V 0.9.1 which will solve the problem with the grid/white lines in the map on your side.
    Thanks for the link on your side – instead of faktor.cc the plugin site: http://www.Fotomobil.at/wp-osm-plugin would be nice to guide people directly here :-)

    gtx, MiKa

    Comment by MiKa — 2010-05-05 @ 2.14 am

    ----------------------------------------------------------------------------------
  57. thanks Mika, if you need more info let me know, and I’ve updated the link
    Debs

    Comment by Debs Jenkins — 2010-05-06 @ 9.02 am

    ----------------------------------------------------------------------------------
  58. Multiple Maps not working

    I use WP2.9.2 and the OSM-plugin 0.9 on a my private closed family blog. (therefore I can give no example here)
    The faq says, but the plugin does not support, multiple maps on my blog. If there is more than one map on a WP-generated html-page – no matter if in one post or in different posts – only the first map is displayed,
    I guess it is jQuery(document).ready(..). In my tests I had a html-page including two maps. When I changed the first “jQuery(document).ready(..)” to “window.onload = (…)” both maps were displayed. But patching window.onload = (…) into osm.php did not do the trick.
    Now I am stuck, since I am a programmer, but not a web-programmer.

    Thanks for the Plug-in, I am looking forward to your answer.

    Comment by ruena — 2010-05-18 @ 8.52 am

    ----------------------------------------------------------------------------------
  59. Multiple Maps now working by hack

    I removed the “jQuery(document).ready(function($) {” and “})” from osm.php and now it seem to work fopr my blog. But I guess this is just a bad hack. You must have had a reason for doing the osm stuff after the document has been loaded. Can you explain why?

    I look forward to your answer.

    Ruena

    P.S. here is the patch

    diff -r b8d514fb70bd wp-content/plugins/osm/osm.php
    — a/wp-content/plugins/osm/osm.php Thu May 13 20:45:56 2010 +0200
    +++ b/wp-content/plugins/osm/osm.php Tue May 18 10:04:05 2010 +0200
    @@ -563,8 +563,8 @@
    }
    $output .= ”;
    $output .= ‘/* */’;
    $output .= ‘ ‘;
    $output .= ”;

    Comment by ruena — 2010-05-18 @ 9.07 am

    ----------------------------------------------------------------------------------
  60. Hi Ruena,

    thank’s for your detailled technical feedback/analysis!

    You’re right – loading the map at the very end is not required for the current implementation, I did it just to be on the safe side ;-)

    I could reproduce your feedback and this feature was not covered anymore with the current version. I will add this test to the standard test before releasing a new version.

    The solution is found – like all the time – in the documention and I fixed it like this:
    jQuery(document).ready(function(){” becomes “jQuery(function($) {
    })” becomes “})(jQuery)
    The test was Ok.
    The fix will be part of OSM-plugin V0.9.1 which will be released within the next view days as soon as WordPress 3.0 is released. I try to avoid too many updates within a short time and I want to include the WP 3.0 tests with OSM-plugin version 0.9.1.
    Meanwhile you could modify it by yourself and continue with the update as soon the next version is released – it will show several maps within on post/page.

    Thx!
    MiKa

    Comment by MiKa — 2010-05-18 @ 7.10 pm

    ----------------------------------------------------------------------------------
  61. Hi,

    Thanks for this nice plugin. I am using your plugin with “Picture Perfect” theme. I am seeing an horizontal space in the map on my post (maps look fine on the settings page so I guess it is a styling issue as you had mentioned before). I saw comment # 51 by Björn but that code seems to be there already in osm.php. Is there any other file I would need to modify? I tried the suggestion you had given for another theme but I am still seeing the horizontal space.

    Also the overlays on the map (Like the zoom and movement buttons are visible even when the map is in the background. E.g, I have a photo in the post and when a user click on it it will enlarge the photo. At this point the map is behind the photo and not visible but the markers and zoom buttons are visible on this photo. How can I send the overlays to background layer?

    Thanks,
    - Balaji.

    Comment by Balaji — 2010-06-07 @ 6.30 pm

    ----------------------------------------------------------------------------------
  62. Hi Balaji,

    the issue of Björn was solved within OSM-plugin version 0.9.1. If the map is shown in the correct way in the settings-page some styling settings are the reason for lines/spaces in the map.
    Analyses without any link to the problem is difficult. If you are using Firefox you get the style info with Firebug.

    Gtx,
    MiKa

    Comment by MiKa — 2010-06-07 @ 7.03 pm

    ----------------------------------------------------------------------------------
  63. Hi MiKa,

    Thanks for the firebug pointer (The post style was being applied last hence I think this issue). I have resolved it on my site. The change I made (Basically I made the top margin to be 0) is given below (in case it will be of use to someone.)

    Theme used: Picture Perfect
    File: style.css

    [code]
    #content .post img {
    margin-bottom: 10px;
    /* Modified the line below to be 0 from 10 so that the OSM plugin map will display without the horizontal space */
    margin-top: 0px;
    }
    [code]

    Thanks again,
    - Balaji.

    Comment by Balaji — 2010-06-07 @ 8.05 pm

    ----------------------------------------------------------------------------------
  64. Hi Balaji,

    thank you for sharing this information!
    There is also a way to do this within the OSM-plugin. I will add this style settings in the next osm-plugin version, so the “Picture Perfect” WP-theme will work without any modifications.

    Thx, MiKa

    Comment by MiKa — 2010-06-08 @ 6.27 am

    ----------------------------------------------------------------------------------
  65. Hi, is there way to integrate Googlemaps-layers, too? I know how to integrate them in Openlayers, but not shure how to handle the php of the plugin.
    Thx,
    CC

    Comment by Cornacap — 2010-06-30 @ 10.20 am

    ----------------------------------------------------------------------------------
  66. Hi Cornacap,
    up to now there is no way to display googlemap-layers with the OpenStreetMap plugin. There are many google-map plugins, if you prefere including it via openlayers you could do it via a php plugin as well.
    gtx, mika

    Comment by MiKa — 2010-06-30 @ 7.17 pm

    ----------------------------------------------------------------------------------
  67. Thank you, Mika!
    I’m quite happy with this plugin. The only reason switching to Googlemaps would have been using the satellitemap.

    I have a more nooblike question:
    On the plugin site is a description of using template tags. I’m not to familiar with wordpress by now. I tried to figure it out with codex.wordpress-site. But still did not succeed with the question:

    Where exactly do I place the code of the given template tag?

    I would appreciate a hint :)

    Thx,
    CC

    Comment by Cornacap — 2010-07-01 @ 10.35 am

    ----------------------------------------------------------------------------------
  68. Hi Cornacap,

    it depends which WP-theme you are using. It is in:
    wp-content/themes/YourTheme

    At Fotomobil.at I put it in the index.php dirctly after:
    < ?php the_content(__('(more...)')); ?>

    If you leave a link to your page it is easier …

    Comment by MiKa — 2010-07-01 @ 7.16 pm

    ----------------------------------------------------------------------------------
  69. Hi Mika,
    thank you for responding!

    For understanding the principle, I just tried the default theme that comes with Wordpress. Later on I will integrate it in an own theme.

    Maybe this example will help other noobs like me ;)

    Best regards,
    CC

    Comment by Cornacap — 2010-07-02 @ 9.52 am

    ----------------------------------------------------------------------------------
  70. hi,
    great plugin!
    is there a way to filter certaint categories of posts?
    on my site i have posts containing old maps and pictures of places.
    i’d like to generate different maps showing only the pictures or only the maps. maybe one map, but with different markers.
    is it possible to do this using your plugin?
    thanks so much in advance!

    Comment by Old-Map-Blog — 2010-07-02 @ 2.54 pm

    ----------------------------------------------------------------------------------
  71. Hi Cornacap,

    using template tags is not something themespecific but works in the same way in all themes – if you are not familiar with it I suggest to start with simple php-commands just to echo one line in any WP-theme.

    To get an osm-map with geolocation needs a:

    * customfield definition in your osm-plugin-settings
    * geolocation in your post
    * modification of your WP-theme to show the map

    If it does not work, one of these three steps are not done well.
    Gtx, MiKa

    Comment by MiKa — 2010-07-03 @ 9.25 am

    ----------------------------------------------------------------------------------
  72. Hi Old-Map-Blog,

    you have got a nice blog with a nice topic.

    Your are talking about a map with all geotagged posts, aren’t you? Something like:
    Display a map with markers for all posts of category “photography” with the marker the “photo.png”.
    Which could look like:
    [ osm_map ... marker_name="..\...\uploads\photo.png" import="osm, photography"]
    Is it right?

    This is not implemented yet but could be considered within the next version.
    Gtx,
    Michael

    gtx, michael

    Comment by MiKa — 2010-07-03 @ 9.40 am

    ----------------------------------------------------------------------------------
  73. hi,
    yes, this is exactely what i meant.
    so in the meantime i’ll have to stick to textfiles for the different markers. maybe i’ll have a go at programming wordpress plugins. seems a little intimidating.
    all the best

    Comment by Old-Map-Blog — 2010-07-03 @ 10.49 pm

    ----------------------------------------------------------------------------------
  74. Hi,
    your are right, at the moment you have to use a text file and add the markers manually.
    I will release another OSM-plugin version within July – including this feature to show a map with markers just for a specified category. So you can start already to geotag your posts.

    Gtx, MiKa

    Comment by MiKa — 2010-07-04 @ 6.05 am

    ----------------------------------------------------------------------------------
  75. Is there a way to make the photo popup bigger? With a title longer than just a few characters, there no room for an image of any size. I’d really like to be able to have an image around 640×480 along with the title.

    Otherwise, I really like your plugin – thanks!

    Comment by scruss — 2010-07-04 @ 2.38 pm

    ----------------------------------------------------------------------------------
  76. Hi Scruss,

    yes, the size of popup-marker is fixed up to now. I will add a way to set them by your own within the next version in July.

    Gtx,
    MiKa

    Comment by MiKa — 2010-07-04 @ 3.10 pm

    ----------------------------------------------------------------------------------
  77. Thanks – I kind of fudged a solution. It might break, but in the marker file I made the images links to the full-sized image attachment page: http://glaikit.org/2010/07/04/my-neighbourhood-canada-day-2010/

    (here’s my marker file for reference: http://glaikit.org/wp-content/uploads/2010/07/canadaday2010marker.txt )

    Comment by scruss — 2010-07-05 @ 3.57 am

    ----------------------------------------------------------------------------------
  78. Hi Mika,
    I solved my problem now. It was based of a misunderstanding of your explanation. The whole time I was focused on the question ‘Where do I have to insert the function?’. Today I realized: the function has always still been integrated in the osm.php – nothing to concern about …
    Now the rest was easy to implemet (only to mention to delete the line ” as it is a unique part of your own theme…).
    I tried it out with several themes. No problem (not to mention the geo-preparation – that was really easy from the start…).
    Good thing you have done!

    CC

    Comment by Cornacap — 2010-07-06 @ 9.44 pm

    ----------------------------------------------------------------------------------
  79. Hi scruss,
    that does not break but is a well made solution for a nice track :-)

    Hi Cornacap,
    nice to read about your success. What do you mean with “onlyto mention …”?

    happy mapping, MiKa

    Comment by MiKa — 2010-07-07 @ 4.45 am

    ----------------------------------------------------------------------------------
  80. @mika:
    Sorry, the code I wanted to mention was hidden. I wanted to point out the line:

    < ?php the_content(__('(more...)')); ?>

    – this is something themspecific as I experienced and understand logically now.

    Comment by Cornacap — 2010-07-07 @ 7.26 am

    ----------------------------------------------------------------------------------
  81. @cornacap:
    This is part of the WP-classic-theme. After your comment I recognized that this WP-theme is not even available for download anymore.
    I will change this to a sample for twenty-ten theme

    Comment by MiKa — 2010-07-08 @ 5.00 am

    ----------------------------------------------------------------------------------
  82. Hi,
    I wrote on the wrong forum:
    http://wordpress.org/support/topic/423014?replies=1
    It sound so silly, but why using @Long instead of @Lon?

    Comment by Juan Jose Pablos — 2010-07-13 @ 7.54 pm

    ----------------------------------------------------------------------------------
  83. Hi Juan Jose Pablos,

    thank you for your feedback!
    To be honest: I do not know it anymore. Maybe the decision was influenced by a glas of whitewine, maybe it was just a bottle of wheatbeer.
    Your are right, to be consistent with other applications it should be limited to three letters. If you are posting a reason to change it, I will support both in future releases.
    Gtx, MiKa

    Comment by MiKa — 2010-07-13 @ 8.24 pm

    ----------------------------------------------------------------------------------
  84. Since updating the OSM Plugin I’ve encountered an intersting bug/problem. I’ve an article with four maps. Each map should show a single track.

    Here’s the code of the four maps:
    [ osm_map lat="50.6" long="10.782" zoom="13" width="600" height="450" gpx_file="/tracks/20100227_vesser1.gpx"
    [ osm_map lat="50.6" long="10.8" zoom="14.99" width="600" height="450" gpx_file="/tracks/20100227_vesser2.gpx"]
    [ osm_map lat="50.597" long="10.8" zoom="14" width="600" height="450" gpx_file="/tracks/20100228_vesser3.gpx"]
    [ osm_map lat="50.605" long="10.79" zoom="14" width="600" height="450" gpx_file="/tracks/20100228_vesser4.gpx" ]

    Since the last update there is always one empty map and one map showing two tracks different tracks at the same time.

    Take a look: http://www.orangeorb.de/blog/2010/03/126

    I also already tried a different theme. But as the maps worked with an older version of the osm plugin I think there might be a bug?!

    Regards,
    Timo

    Comment by Timo — 2010-07-19 @ 10.45 am

    ----------------------------------------------------------------------------------
  85. Hi Timo,

    sorry for the late reply – I was busy these days and I did not reproduce your report yet – but I would like to do it at weekend if you put your page online again (the posted link does not work).
    There was no major change in the last release, which OSM-plugin version did you use before updating?

    Gtx,
    MiKa

    Comment by MiKa — 2010-07-28 @ 6.19 am

    ----------------------------------------------------------------------------------
  86. It takes quite a lot of time to find all the place where I would like to add a marker. So when travelling it would be very nice just typing in the name of the destination and with another click adding a marker at that position.
    Is that possible to do that? And how?
    Thanks

    Comment by max — 2010-08-04 @ 12.45 am

    ----------------------------------------------------------------------------------
  87. Hi Mika,

    in post 53 Deb described a problem which you had not seen before. I have just experienced something very similiar. At the top of every page I get the following error message:

    “Warning: split() expects parameter 2 to be string, array given in C:\xampp\xampp\htdocs\wordpress\wp-content\plugins\osm\osm.php on line 212″

    As you can see I’m developing the site offline so I can’t give you a link to have a look.

    Debs error referred to line 242 while mine refers to line 212. I haven’t edited the osm.php file at all and have tried deactivating, deleting and then reinstalling the plugin, but the problem remains.

    If you can think of any other information that would be helpful please let me know!

    Many thanks,

    Simon

    Comment by Simon — 2010-08-09 @ 9.33 pm

    ----------------------------------------------------------------------------------
  88. @max:
    A good place to get lat and long data is:
    http://www.getlatlon.com/

    @Simon:
    Last time this was solved by setting and saving the zoomlevel and customfield name explained here:
    http://www.Fotomobil.at/wp-osm-how-to-add-geo-meta-data-to-posts

    Gtx,
    MiKa

    Comment by MiKa — 2010-08-10 @ 8.10 pm

    ----------------------------------------------------------------------------------
  89. Cheers Mika, I’ll give that a run through :-)

    Comment by Simon — 2010-08-12 @ 1.09 pm

    ----------------------------------------------------------------------------------
  90. Hi,

    I was trying to figure out how to add routes – both single and multiple using different colors. Is there a way you can do that using this plugin? Also, does OSM plugin allow the default settings for a hybrid view?

    Thank you,

    Sagun

    Comment by Sagun — 2010-08-31 @ 6.54 am

    ----------------------------------------------------------------------------------
  91. Hi Sagun,
    1.) Yes, you can add routes and define a different colour for each route within one map. Have a look at: OSM-plugin-Wiki for gpx_file_list and gpx_file_colour.
    2.) No, there is no hybrid view available up to now.
    Gtx, MiKa

    Comment by MiKa — 2010-08-31 @ 7.17 am

    ----------------------------------------------------------------------------------
  92. Thank you so much for your prompt response. I was searching for documentation how the hyrbrid view can be achieved and this is the closest I came up with – http://wiki.openstreetmap.org/wiki/Google_Maps_Example.

    Is this a possibility with the plugin? I am trying to create hiking routes using the plugin and trying best how to display the routes using the plugin but in a terrain and/or hybrid option.

    Thank you again,

    Sagun

    Comment by Sagun — 2010-08-31 @ 5.39 pm

    ----------------------------------------------------------------------------------
  93. HiSagun,

    the basic idea of the OSM-plugin was to support the OSM-idea. After some time it was extented to be used for other maps as well.
    After checking your link I thought it might be usefull to extend the extmap codes to enable hybrid maps since this kind of map is not covered by OSM but several people were asking for it.
    But this may take some time and you have to wait for the next OSM-plugin version.
    Up to now theCycleMap (type=”CycleMap”) is the most usefull for hiking.

    Gtx, MiKa

    Comment by MiKa — 2010-09-01 @ 6.24 am

    ----------------------------------------------------------------------------------
  94. Hi Mika,

    Thank you for the response.

    I was thinking adding a layer would server the purpose of what I am trying achieve. The objective is to use the OSM plugin as is but also provide an option to view the map using the google options.

    http://openlayers.org/dev/examples/google-v3.html

    I am assuming the rules need to be defined in the osm/osm-openlayers.php but I don’t think it’s as simple as adding the following lines in the code:

    $Layer .= ‘var layerCycle = new OpenLayers.Layer.OSM.Google(”Google Hybrid”);’;

    else if ($a_Type == ‘Google Hybrid’){
    $Layer .= ‘var lmap = new OpenLayers.Layer.Google(”Google Hybrid”);’;
    }

    How can this be incorporated with the plugin? I think this is more of a openlayer question than the plugin itself but any insight to how this can be a possibility is greatly appreciated.

    Thank you,

    Sagun

    Comment by Sagun — 2010-09-01 @ 6.06 pm

    ----------------------------------------------------------------------------------
  95. Problem with more than two maps showing tracks on one page

    Hi,
    nice work. But I discovered a problem, when having more than two maps on a page. In case of three maps with different tracks, the first map shows the correct track. The second one shows the track for a short time, then it disappears (probably until the third map is fully loaded). The third map contains the third track and the second track, while the position of the second track on the map is the position the second track would have on the second map. Since my blog isnt online yet I cant give you a link. Maybe any other people are having the same problem. I read the message of Timo, but there wasnt any solution posted…
    Thanks in advance.

    arne

    Comment by arne — 2010-09-02 @ 2.27 pm

    ----------------------------------------------------------------------------------
  96. @ Sagun: Basically it’s like this – adding a google-Layer – to make it general some lines more are needed.

    @ Arne: I will consider this issue in the next version. Just let me know as soon as your blog is online.

    Comment by MiKa — 2010-09-02 @ 7.26 pm

    ----------------------------------------------------------------------------------

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by faktor, based on free software, using OpenStreetMap data, included by WordPress OSM Plugin.