Geotag for Wordpress

With this plugin for Wordpress you may geotag every of your posts or pages. You may also display maps with the coordinates of your posts, KML/KMZ files or the geotags of the photos displayed within your post. The plugin fits into the Wordpress admin panel, is easy to use and can be individually configured to suit your needs.

You can get a copy at the Wordpress plugins page. If you have used the plugin, I would be glad about some feedback – just leave a comment with a link to your page if you want.

News

5 August 2009
I created a new version with improved centering and zooming behavior and a few bugfixes. Hopefully more bugs were fixed than created :-) .
If you have updated the plugin, check the configuration and click save. This is important as the structure in which the settings are saved may have changed.

Features

Quick Demonstration

20080807_017 20080807_005 20090127_001

The markers display the position of every post I wrote during a Mexiko trip. If you zoom in to Campeche (the second one from the left side), you will see a tour which was recorded by a GPS logger and the position of the above photos. You may modify the maps in many different ways. For example, you may only display the position of the current post or you may also display an icon for every photo you publish within your post. You may also style the Google Maps info windows individually with some CSS. Multiple maps for one post are possible, too.

Have a look at the documentation if you want to learn more or check out some screenshots.


157 Kommentare

  1. holyolli

    Hallo!
    (ich bin mal so frei und schreib’ auf Deutsch ;) )

    Ich habe das Plugin soeben heruntergeladen und installiert. Nachdem ich den GoogleAPI-Key eingegeben habe, wollte ich auf “Einstellungen speichern” gehen, um alles zu speichern. Es kam dann die Meldung “Fehler! Einstellungsseite nicht gefunden.”, der API-Key war aber gespeichert. Ich benutze WordpressMU 2.7.1.

    Danke fuer deine Arbeit!

    /holyolli

  2. Boris Pulyer

    Hallo Holyolli,
    bislang konnte ich das Plugin noch nicht mit der Multiuser Version von Wordpress testen. Sobald ich dazu komme, werde ich das nachholen. Evtl. wurden in dieser Wordpress Version Änderungen an der Plugin-Schnittelle vorgenommen (das soll wohl häufiger vorkommen). Wenn es trotz Fehlermeldung funktioniert ist es ja immerhin etwas :-) .
    Vielen Dank aber für den Hinweis!
    Boris

  3. BaroqueW

    Hi!

    I have installed your plugin and it looks pretty good! thanks
    I have two comments though:

    - the pin/flag that should indicate the position on the map appears well in the admin pages but not in the posts (tested with FF3 and Safari 3.2.1 on MacosX), also, the hybrid mode with “labels enabled” only displays a gray background with the labels. You can check it out here for instance: http://www.baroquew.info/wordpress/archives/riga
    - I was wondering how to display a map with the locations of all the posts (from a category or simply all the posts of the blog)

    Thanks!

    /Baro

  4. BaroqueW

    Just tested also with IE7 on Windows XP Pro 64 bits: same thing. I am running WordPress 2.7.1.

  5. Boris Pulyer

    Hey Baro,
    thanks for the testing! I took a look at your site and found the problem: Within your page you use a stylesheet which sets the background color of all images of a post to grey. That’s why the marker icon of your map is set to grey, too. The concerned stylesheets is

    http://www.baroquew.info/wordpress/wp-content/themes/atahualpa/style.css

    Look for the following entry:

    .entry img {…
    background-color: #f3f3f3;
    …}

    To prevent that the background colors of your Google Map images are changed, insert the line

    .gmap img {background-color: transparent;}

    after the .entry img {…}-block.
    To display a icon for every post, e.g. every post of category number three, you should insert the following line into your post:

    [gmap marker_query="numberposts=-1&category=3"]

    You may have a look at the Wordpress Codex for a complete documentation of all the possible querys. Also take a look at the plugin documentation for other options.
    Hope I could help you!
    Boris

  6. holyolli

    Ok, maybe I’ll also switch over to English… ;)

    My last post was about problems saving the prefences of the geotag-plugin. Unfortunately, the display of the map itself also doesn’t work. (I set up a new blog with one posting and a simple “[gmap]” on the bottom.)

    I manually checked the db tables and the API Key was stored correctly. But
    Maybe it’s a problem with the API-Key? Is there any possibility to check, if the key itself is working?

    Which further information can I provide you with to find the solution for my problem?

  7. BaroqueW

    Hi,

    Thanks a lot for the quick reply!
    You nailed it, I added the css entry in the css style and now it displays like it should!
    I will play around with the marker queries a bit now!

    Thanks again,

    Keep up the good work!

    /Baro

  8. Boris Pulyer

    Hey Holyholli,
    usually you will receive a popup error message, if the Google Maps API key is not correct – so I assume it is the correct one. When you look at the sourcecode of your post, you see that the plugin added two meta tags with the position of the post. But it failed to add the Google Maps container and the JavaScript code. I assume this problems only occur with the multiuser version of Wordpress and is due to a different plugin API of this version. Unfortunately I currently don’t have the possibility to test the plugin with Wordpress MU. I’m sorry to have no other solution, but changing to the standard wordpress version…
    I also read, that you may install a plugin as a so called MU-Plugin if you put it to the folder /wp-content/mu-plugins. Hence, the plugin will be available for all blogs…perhaps this is worth a try.

  9. holyolli

    Hey Boris,

    thanks for the fast reply. I’ll check out some more of the differences and maybe I can find a solution to the problem – but anyway I’ll keep you informed!
    And also I’ll test the installation of the plugin as a sidewide plugin.

    Btw: Regarding your first photo on your page, many greetings from Guanghzou! :)

    /holyolli

  10. gijs

    Hi I tried [gmap file='http://www.example.com/example.kmz'] (with ‘example’ being my site/kmz-file) but wordpress displays a map of Africa instead of the route it should have displayed…

  11. Boris Pulyer

    Hi,
    you probably didn’t set any coordinates for the post. If you neither set a location for the post nor set a marker manually with [gmap marker_lat="..." marker_lon="..."], the map centers somewhere in the middle of the world. It will not center automatically to your kml file. If you don’t want to set a marker, you must at least tell the plugin with

    [gmap center_lat="..." center_lon="..." zoom="..." file="http://www.example.com/example.kmz"]

    where to center the map. Perhaps, I will add a “autocenter” feature for KML-files in a future release.

  12. holyolli

    Hi again,

    I tried to install the plugin as sidewide mu-plugin, but this leads to some more errors: The documentation page is shown on -every- page, the wordpress delivers to the user, even all blog pages. And the error itself just remain.

    If it helps, I can create a testblog for you in order to test the plugin furthermore. Just contact me via mail…

    /holyolli

  13. Boris Pulyer

    Hi,
    as reported by holyolli, running the Geotag plugin with Wordpress MU will produce some trouble. I tried to find out what went wrong and noticed, that only the procedure which saves the options is affected. Although I stick to the Wordpress Codex for creating options pages, you will always receive a failure notice if you try to save the options. To be honest, right now I don’t now how I can improve the plugin to avoid this error, but I compared the Worpdress MU with the standard version and found the difference which causes the trouble.
    Take a look at the /wp-admin/options.php file and search for the following code:

    case ‘update’:
    if ( isset($_POST[ 'option_page' ]) ) {
    $option_page = $_POST[ 'option_page' ];
    check_admin_referer( $option_page . ‘-options’ );
    }

    If you change this to

    case ‘update’:
    if ( isset($_POST[ 'option_page' ]) ) {
    $option_page = $_POST[ 'option_page' ];
    check_admin_referer( $option_page . ‘-options’ );
    } else {
    // This is for back compat and will eventually be removed.
    $option_page = ‘options’;
    check_admin_referer( ‘update-options’ );
    }

    you should be able to save the options for the plugin. This is the same way, the /wp-admin/options.php file looks like in the standard Wordpress version.
    For the lazy guys, I already prepared a hacked options.php. Just remove the “.txt” extension and replace the old /wp-admin/options.php file with the new one.
    Hope this will work :-)

  14. Anton

    Hi there,

    I take pictures with my Blackberry which are automatically Geotagged. I post these on my blog by e-mail. I think it would be great if I could add a map of the location where the picture is taken. I guess this should be possible with this Plug-in.

    I tried this but:
    - Automatic adding of maps does not result in anything (exif not read?)
    - Adding [gmap] in post results in a halt in processing of the page (from the point where [gmap] is added, nothing else is shown)

    where does this go wrong? Your help is much appreciated!

    Anton

  15. Boris Pulyer

    Hi Anton,
    auto maps will only appear, if you set some coordinates for the post. The plugin was originally designed for geotagging the posts. The feature with the geotagged photos should only be a add-on. But I see, that this is not very useful for your type of use.
    Nevertheless you can force the plugin to add a map to your post by adding [gmap]. This should definitely not cause a halt in the processing of the page. Perhaps you can create a sample post and send me the URL.
    When the map appears, you must configure Geotag to add an icon for every photo. You can do so by activating “Geotaged Photos” at the configuratiion page or by adding the shortcode [gmap display_photos="true"] to the post. Right now I’m not sure if the plugin is so clever to center on the photos if no position is set for the post (I assume it is not). This means, that you have to set the center fo the map by adding [gmap display_photos="true" center_lat="..." center_lon="..."]. I confess that this is not very convenient for your type of use – I should fix that in the future.
    Send me the URL with the example post and I will see what I can do.
    Boris

  16. Anton

    Hi Boris,

    Thanks for your quick reply.

    You mention as one of the features: “Read the geotags from the exif header of the photos of your post and display them.”. That’s exactly what I want. The Geotag is stored in the exif header.

    an example: http://www.brouwou.nl/?p=557

    Regards,
    Anton

  17. Julien

    Hi,

    I set up a new blog with one posting and a simple “[gmap]” on the bottom.
    The plugin write the div that contain the map in the post, but load the javascript to load the map.

    I use wordpress 2.7.1

    Julien

  18. Boris Pulyer

    Hi Anton,
    sorry, but your link seems to be broken…I get a “not found” error massage.
    If you don’t want to create a post, which is visible to every visitor of your weblog, you may also create a page and configure Geotag to show maps on pages (Configuration -> General Options -> Show Map -> Pages).
    Boris

  19. Boris Pulyer

    Hi Julien,
    I’m afraid, I don’t get you. I took a look at your Website and the map was properly shown at the bottom of your post. Both, the DIV container and the JavaScript code were put to the source code of your page.
    If you want Geotag to show maps on the main page, you should go to the configuration page -> General Options -> Show Map and activate “Home”.
    Let me know, if I this was not what you meant.
    Boris

  20. Anton

    Hi Boris,

    Don’t know what went wrong. I published the page again. It’s the last post on http://www.brouwou.nl

    It ruins my page for know, but that’s no problem

    Anton

  21. Anton

    small note. I removed the last entry. I’m now working with this post:
    http://www.brouwou.nl/?p=538

    I noticed in my apache log the following: Call to undefined function exif_read_data() in C:\\Web\\htdocs\\wp-content\\plugins\\geotag\\geotag.php on line 716, referer: http://www.brouwou.nl/

    Seems the php function is not defined. So I looked in my php.ini and noticed the extension=php_exif.dll was not enabled. So I enabled this, but the file php_exif.dll was not on my server… So I downloaded the DLL…

    Still no succes, so tried google again… The result:
    “did you enable php_mbstring.dll and php_exif.dll in php.ini ? php_mbstring.dll must be loaded before php_exif.dll”

    enabled mbstring, downloaded.dll, restarted apache…

    still no succes, but i hadn’t changed the order in php.ini. So I did that… And guess what! No error messages… Time to try the plug in again…

    The good news is the page now loads. The bad thing is… still no map

    The search continues…

  22. Anton

    don’t bother to look before a new message from me. I totally screwed up my site :-(

  23. Anton

    site should be working again… (but without maps :-)

  24. Boris Pulyer

    Hey Anton,

    this seems to be a though nut to crack :-) . Unfortunately I’m not very good at configuring Apache. But perhaps we should try the following:

    1. Disable the exif feature in the config menu (”Geotaged Photos”), set a postion for your post and insert a plain [gmap] shortcode to your post. If the map shows up then, the plugin basically seems to work properly. If not, the exif_read_data() function is not our only problem.

    2. Perhaps you could create a .php file with the following content

    ‹?php phpinfo(); ?›

    If we have a look at the file, perhaps we may see, if the exif functions are registred properly.

    Lets continue searching :-)

  25. thomas57

    Hallo,
    ich erlaube mir auf deutsch zu schreiben. Ich habe das Plugin heruntergeladen, installiert und es läuft super, nun werde ich mich noch etwas einlesen um die google blasen hinzubekommen. Aber schon einmal danke für das plugin. bei mir läuft es unter wp 2.7.1
    gruß thomas aus hannover

  26. Boris Pulyer

    Hallo Thomas,

    freut mich, dass es funktioniert…normalerweise bekomme ich immer Feedback, wenn etwas nicht klappt. Da ist man mal ganz froh, wenn man hört, dass es läuft :-)

    Viele Grüße
    Boris

  27. Anton

    Thanks for your tips.
    I completed the 1st assignment ;-) :
    - Result: http://www.brouwou.nl/?p=598
    - Page loads normally
    - No map visible, allthough there is in the page source.

    Will do the 2nd thing later this evening!

    Anton

  28. Anton

    Hi Boris,

    Result of 2 can be found at http://www.brouwou.nl/test.php

    I hope this helps!

  29. Anton

    Today I found out that the Javascript for gmaps is missing in the page source. So the reference is there (), but the Javascript is missing…

    How to solve this?

  30. Raik

    Servus Boris,
    ich bin anscheinend zu blöde dein PlugIn zu nutzen. Ich schaffe es nicht die Karte anderst zu zentrieren.
    Zentrum sollte eigentlich Mitte München sein. Folgenden ag gebe ich ein:

    [gmap center_lat="48.1399079" center_lon="11.6192213" file="__UPLOADS__/Heli_Spots.kml" zoom="7"]

    Zentriert ist die Karte dan irgendwo in Afrika :-(
    Hast du mir einen Tipp?

  31. Boris Pulyer

    Hi Anton,

    you’re right. The Javasript should be placed at the bottom of the page and I don’t know why it is missing. It seems that the programm is interrupted somwhere between these two commands but actually, there aren’t many programm steps in between. Probably there might be some kind of interaction with other plugins – but this is only a vague guess. The exif function on the other hand seems to be installed properly according to the phpinfo() page. I’m afraid it’s not possible to debug it without access to wordpress and the plugin code at your webserver. I’m sorry to have no better answer…

  32. Anton

    You can still help me. When is the code generated? Once at posting (or update the post), or dynamic at showing the post?

  33. Anton

    And another question: Which function in Geotag.php generates the code (i want to do some debugging)

  34. Boris Pulyer

    You are persistent :-) – hope I could help you:

    The code is created dynamically when the page loads. For the most important functions look for the comment “Display the posts” in the geotag.php. The parseShortcode() function is called everytime a [gmap] shortcode is detected within the post. It processes the given attributes and stores all relevant data in the $geotag_maps variable. This variable will be read by the hookWPFooter() function which is called, when the bottom of the page is reached. This function generates a JSON string from the data of the $geotag_maps variable and then creates the JavaScript code.

    At first, I think, you should check, if the hookWPFooter() function is exectued and the data from the $geotags_maps variable is available (e.g. by calling print_r($geotag_maps);)…

  35. Boris Pulyer

    Hey Raik,

    erwischt :-) . War ein kleiner Fehler im Code. Habe ihn mal schnell ausgebessert. Lade dir das Plugin nochmal herunter und versuche es nochmal. Jetzt müsste es klappen.

    Viele Grüße
    Boris

  36. Anton

    Hi Boris,

    I’m quite sure the hookWPFooter is not executed. What triggers this function? I think this should be something in the footer.php of the wordpress theme?

    Anton

  37. Boris Pulyer

    Hi Anton,

    the function is registered right at the top of geotag.php as a so called “Hook” by calling

    add_action(”wp_footer”, array(”Geotag”, “hookWPFooter”));

    Wordpress automatically loads the registered function, when the footer is displayed. You might find some useful information about the add_action() function in the Wordpress Codex:

    Plugin API (Some introduction)
    Function Reference/add action
    Plugin API/Action Reference

    Boris

  38. Anton

    yes! problem solved!!!
    In the footer.php of the theme i’m using the following code was missing:

    Therefor the hook wasn’t working and the javascript wasn’t added!
    Something for the FAQ I guess! :-)
    Thanks for the tips Boris!

  39. Boris Pulyer

    Hey Anton,

    congratulations :-) I’m glad the problem was not a sluttishly coded plugin :-)

    Have fun with the geotagging!

  40. Markus

    Morgen. Prima Plugin, so weit! Ich hab festgestellt, dass die Geokordinaten flöten gehen (zumindest mit Wordpress 2.8), wenn der Artikel automatisch gespeichert wird. Stell mal Koordinaten ein, speichere und lasse dann die Artikel ein paar Minuten offen.

  41. Markus

    Oh, noch was: Die Metatags werden auch auf der Startseite eingebettet, oder generell, auch wenn gar keine Koordinaten bekannt sind. Ich hab das jetzt in hookWPHeader() kurz gefixt, indem ich “if( !empty($lat) && !empty($lon) )” eingeschoben habe.

  42. Boris Pulyer

    Hey Markus,

    vielen Dank fürs Testen. Das mit den Metatags ist richtig. Ist mir auch schon aufgefallen und werde es in der nächsten Version beheben.

    Die Sache mit dem Speichern ist schon etwas schwieriger. Dabei ist das Plugin darauf angewiesen, dass Wordpress mittels eines sog. “Hooks” die entsprechende Funktion des Plugins aufruft. Tut Wordpress das nicht (so wie es offensichtlich beim automatischen Speichern der Fall ist), hat das Plugin keine Chance mitzubekommen, dass etwas abzuspeichern ist. Das gleiche Problem hast du beispielsweise auch, wenn du in den Spezialfeldern irgendwelche Werte einträgst. Andererseits ist veilleicht nicht schlecht, falls du aus versehen die Koordinaten gelöscht hast und Wordpress in der Zwischenzeit automatisch speichert – dann nämlich wären sie endgültig weg.

    Viele Grüße

    Boris

  43. Alex

    Is there a way for this plugin to generate a flat .kml file that I can load into a Google map? The features list says it can, but I cannot see where to find that file?

    Thank you.

  44. Boris Pulyer

    I’m not sure if I got you right. What do you mean with “generate a flat .kml file”? The plugin is able to display kml files in a map (see the example at the top of this page and zoom in to the second marker from the left side). It is not able to create kml files itself – this is the job for your GPS receiver :-) .

    If you have already created a kml file and want to reduce the amount of waypoints or smooth the track, I can send you a php file which can do so, but this feature is currently not implemented in the plugin (propably I will add this in an upcoming version).

    Boris

  45. Ivan

    i like your geotag plugin which allows the display of gmaps and tagging of photos in the map. however it doesn’t work with NextGEN Gallery plugin. If i upload photos and add it as a gallery in the post, geotag cannot detect the photos.

    I have since modified some codes in both geotag and nextgen so that geotag will be able to detect photos embed directly in the post as well as those from a nextgen gallery. please take a look here. http://lab4games.net/2009/05/22/testing-more-geo-tag/

    as long as photos have gps info in the exif, it will display it on the gmap even if uploaded as nextgen gallery.

  46. Nnyan

    Hello,

    What I’m looking to do is have users add an address (not LAT/LON) and then have the plugin show all the locations on a map that is displayed on a page (so there will be NO maps in the actual posts themselves).
    First the search function for addresses is not working. And I do not know what tag to use for pages.

    Thank you!

  47. Christian

    Hi, It seems that my wordpress installation cannot read the exif gps tags information in my images. I’ve tested it on my friends server, and he is able to read the exif info with gps tags. Is there something I need to enable in wordpress to get it to work?

    Thank you in advance!
    Christian

  48. Boris Pulyer

    Hey Ivan,

    thanks for the testing! As I don’t use NextGEN, I didn’t consider to make these two plugins compatible with each other. But it seems that you’ve done great work. If you don’t mind, I would suggest that you put a link to the source code of the modified files to your webpage, too. I will have a look at your Geotag modifications and will try to include them in the next release together with a link to the modified NextGEN files on your website and a documentation. Thus, your feature will remain in future Geotag releases, too.

    But you have to be a little bit patient with me, because in a week my exam is about to begin :-) .

    Greetings

    Boris

  49. Boris Pulyer

    Hello Nnyan,

    actually, the address search function should work properly. I never noticed any complications. Please be aware that you have to click on the search button next to the text field. If you hit the Enter button, the search will not work. I know, this is a little bit odd, but due to the design of the Wordpress composing page I don’t see a way to improve that.

    Currently it is not possible to store an address together with a post and search for all the positions on the map, when it is displayed. It is only possible to store the geogrphic coordinates. The address search function is just a gimmick to get these coordinates, but the address itself is never stored in any way.

    Last, if you create pages, the tag is the same as for posts – its alway [gmap].

    Hope I could help you nad let me know, if it works :-) !

    Boris

  50. Boris Pulyer

    Hi Christian,

    you must have enabled exif support in your PHP configuration to read the exif tags. If you are not sure about that, create a test.php file with the following content

    ‹?php phpinfo(); ?›

    and search for a module called “exif”. If you don’t have it installed, take a look at the short guide (above) of Anton, who had the same problem. Unfortunately I’m not very good at configuring a webserver, but perhaps you can ask Anton, if you still have problems with the exif module.

    Greetings

    Boris

  51. Christian

    Hi Boris,

    Thanks a lot for your response! I found the error, it was typical a little typo error in my code, after hours of searching for the error, I failed to see it. Now I’m able to see exif and geotag information!

    Have a nice weekend!

    Christian

  52. dave

    hi i have been trying to get this plugin to work on my blog for a while now an ive not got it working as it should yet. it seems if i add the short link [ gmap ] and set a position the map will appear with a nice icon which is correct. however i have photos in the post with geotag data in them and it does not pick these up and add them to the map. not sure if its something to do with resizing images and losing exif data or the way im adding them to the post.

    any information would be great

    cheers
    Dave

  53. Boris Pulyer

    Hi Dave,

    perhaps this little checklist might help:

    1. Make sure, that your photos contain geotags in their exif headers. For example, open the files with IrfanView (you need the IrfanView programm files and the plugins), open the properties and take a look at the exif header.
    2. You must have enabled exif support in your PHP configuration to read the exif tags. If you are not sure about that, create a test.php file with the following content ‹?php phpinfo(); ?› and search for a module called “exif”. If you don’t have it installed, take a look at the short guide (above) of Anton, who had the same problem.
    3. Insert the photos directly into your Wordpress post. You can use the Wordpress WYSIWYG editor or you can insert the HTML code.

    If you tried this and it still doesn’t work, leave another comment :-) !

    Greetings

    Boris

  54. dave

    ok im not running my own server and the server i am using has a page which i assume is the same as you suggested with the ‹?php phpinfo(); ?› which says the following :

    EXIF Support enabled
    EXIF Version 1.4 $Id: exif.c,v 1.118.2.37.2.8 2007/12/31 07:22:46 sebastian Exp $
    Supported EXIF Version 0220
    Supported filetypes JPEG,TIFF

    so i assume this is ok..
    my hosting allows me to switch between php4 and php5 so when switching to php4 i get the following error messages on the site now like this :

    Warning: exif_read_data() [function.exif-read-data]: unable to open file in /home/sites/placemarkers.co.uk/public_html/wp-content/plugins/geotag/geotag.php on line 716

    so im guessing the photos are correctly tagged and its haveing issues reading the data from the files. this seems the same problem as someone else had previously reading though the comments. although i cant follow how it was fixed really.

    not sure what to do now.

    Thank you for the help so far!!!

  55. Dave

    i have tried what you said and it seems as though exif is enabled, and the photos do have the correct gps information embedded. The hosting service i use allows me to switch between php5 and php4. When i switch to php4 i get the following error :

    Warning: exif_read_data() [function.exif-read-data]: unable to open file in /home/sites/placemarkers.co.uk/public_html/wp-content/plugins/geotag/geotag.php on line 718

    which i see someone else has had problems with before. However i hasnt able to follow how he fixed it. But it does prove its trying to get the data from the photos which is a good sign.

    I have also added another geotag plugin to the site to test and that seems to work fine. not sure if it uses the same exif stuff though.

    Thank you for the help so far!

    cheers

    Dave

  56. Boris Pulyer

    Hey Dave,

    sorry for the late response, but as I’m currently writing my exams I have to spend more time in front of my books than in front of the computer :-) .

    It seems, that the exif_read_data function is not able to open the image file. At first you should check, that you have set the absoulte URL in your image tag. Open your post, switch the editor to HTML mode and check, that within the ‹img› tag the src property is set to an absoulte path, like http://www.bobsp.de/image.jpg – not …/image.jpg.

    If that does not work, we should check what filname is given to the exif_read_function. Therefore you must search for this line

    $exif = exif_read_data($image, 0, true);

    within the geotag.php code (you may use the plugin editor of Wordpress). Before this line, enter the following line:

    echo $image;

    Now open the webpage and look for the filname. It should be the absolute URL to your image. If your are not sure, open it in your browser. If it does not, you might post the original src property of your post and the displayed URL.

    By the way, what does the plugin do if you switch to php5? Does it work or does just nothing happen? I use php4 for myself too, so it should work fine with it.

    Another problem may be, that according to the PHP manual, the exif_read_data does not support URLs as filenames, but I never had problems with that…

    Hope I could help a little.

    Boris

  57. Andy

    Hi,

    I love this plugin!

    What I am trying to do is have one page on my blog which contains a map that pulls in the geodata from all the posts and displays all points on one map.

    How do I do that? I’ve got my API key and can add the relevent data to each post but I don’t know the right code to add to my ‘Blog Map’ page that will display the map I want.

    Can you help?

    Cheers & Good luck with the exams!

    Andy

  58. Boris Pulyer

    Hi Andy,

    thanks a lot :-) !

    If you want to display an icon for the position of every post, e.g. every post of category number three, you should insert the following line into your page or post:

    [gmap marker_query="numberposts=-1&category=3"]

    You may have a look at the Wordpress Codex for a complete documentation of all the possible querys. Also take a look at the plugin documentation for another example.

    Hope I could help you!

    Boris

  59. Bruno

    Hi
    I’m using the plugin for the very first time (under WP 2.8) and I’m witnessing some strange behaviour with WP nuking the wp_meta database entries for latitude and longitude every now and then.

    I consistently managed to reproduce this by creating a new entry, setting the coordinates, saving it, checking the database for the existance of the fields. Some minutes later, with the “edit page” still open, the wp_meta info will be gone, to reappear when I save the entry again.

    Has anyone witnessed this?

  60. Ian Schaefer

    Great plugin, Boris!

    I recently created a geotagged post using a kmz file that includes embedded images, however the images do not appear on the map. All other tag information appears; but every image is black…the image path must be wrong. In the page source the img src attribute looks like this:

    src=”/mapsatt?id=http://www.ianschaefer.com/files/geotag/GPSLog.kmz&f=E3_1.jpg”

    If the images are embedded in the kmz, shouldn’t this work? I must be missing something.

  61. Boris Pulyer

    Hi Bruno,

    thanks for the hint. I’m currently still using the 2.7.1 version. As soon as I’m able to upgrade I will check this out and try to find a fix.

    Cheers!

    Boris

  62. Boris Pulyer

    Hi Ian,

    at first you should try to open your KMZ file with Google Maps (just insert the URL in the search field of Google Maps) to make sure that it is not just a problem of the Geotag plugin.

    But I am afraid that something with your KMZ file went wrong. Im not so familiar with these, but I think, that they are just a ZIP file containing your KML file and the photo files. Within the KML file, you should refer to the (relative) path of the photos. So, if you want to show photo_0001.jpg in the images subfolder, your Placemark-tag should contain a description-tag with something like this:

    < <![CDATA[<img src='images/img_0001.jpg' width='320' height='240'>]]>

    I found a simple KMZ on the web which might me quite useful as a template to create your own one. If you want to, I can send it to you.

    Hope I could help a little!

    Boris

  63. Mike

    Hi I have just installed the plugin I use my nokia n95 to post images to my blog if I enable automaticly add map to every post I do not see any map, if I untick that box and tick read edif from the image it shows a map but the pin is in the middle of the sea no where nr where I took the photo any sugestions I have discovered an erro in wordpress that seems to strip out the xdif info when uploading the image either from my phone or from my mobile? if I copy the image to my desktop and use picasa I can see the geo icon in the image and it shows the location in google earth but if I upload the image and then save it from my site to the desktop the geo info is gone ???

    thanks
    Mike

  64. Dave

    i found a solution in part to my problem which i thought id share for completeness. my hosting company does not allow local http loop back so the files could not be found with exif_read_data as the images were being blocked. so i did something like the following…

    $finalpath = str_replace( get_bloginfo(’wpurl’), $_SERVER["DOCUMENT_ROOT"], $image);

    $exif = exif_read_data( $finalpath, 0, true );

    this gives me the local path to the file which allows the exif_read_data to work correctly. This seems to work fine in php5. not tested it in php4.

    ive not been using this plugin in whole ive modified bits i wanted and made my own plugin. This allows me to find images in posts and check if they have exif data and then open a map in a thickbox when the image is clicked. example (http://www.placemarkers.co.uk)

    thank you for the help and the plugin. its been a great help.

    Dave

  65. David Ing

    I haven’t actually done any Geotagging, yet, but I had the Geotag plugin installed when I tried to activate the MediaRSS plugin, I got the following error in my feed:

    XML Parsing Error: not well-formed
    Location: http://daviding.com/blog/index.php/feed/
    Line Number 8, Column 45: xmlns:georss=’http://www.georss.org/georss’xmlns:media=”http://search.yahoo.com/mrss/”
    —————————————————^

    I’ve deactivated MediaRSS for now — I wanted it for the Friendfeed image feature — but will circle back to check on progress later. Thanks.

  66. David Ing

    Boris, I received a response from the author of MediaRSS, Andy Skelton. He said …

    Hi David,

    Thanks for reporting this. I updated the plugin to add whitespace before the xmlns. You should find the error corrected after you update your plugin. Could you also advise the author of the other plugin that it’s a good idea to put whitespace before and after the xmlns?

    Cheers,
    Andy

    So it looks like it’s a good suggestion for both plugins.

  67. Boris Pulyer

    Hi Dave,

    thanks for the good hint! I will try this and probably integrate it to the next version.

    Boris

  68. Boris Pulyer

    Hi David,

    thanks for the bugfix! I will put this into the next release of Geotag.

    Boris

  69. Boris Pulyer

    Hi Mike,

    I am not sure if I got you right. But in order to display a map with the image on every post automatically, you should activate the “Automap” feature and the “Read Exif” feature. If your post itself has not set any position, I guess the map will center at 0 N, 0 E. When I worte the plugin, I recognized this but found no solution so far to automatically center on the images when no position is set. I will have another look at it – perhaps I got some new ideas :-) .

    Boris

  70. Mark

    I really love your plugin. I sail and I can use it to let my family know where I am.

    I would really appreciate it if the map could auto-center on the position from a .kmz file. The .kmz file points to my most recent location sent from my cell phone. This makes it difficult to choose somewhere to permanently centre the map – I could be anywhere!

    Mark

  71. Boris Pulyer

    Hi Mark,

    thank you very much! I will try to improve the behavior of the map and where it centers when no position is set. Hope I will find a way :-) .

    Boris

  72. Island Richards

    Thanks for the plugin Boris!

    Just a few issues:

    1: I cannot get the marker_query to work on a page. I am using…
    [gmap zoom="3" center_lat="37.09024" center_lon="-95.712891" marker_query="numberposts=5&category=18"]
    …and depending on a couple variables, either the map doesn’t show at all, or it gives the “cannot show at this detail” error. If I remove all variables(and use just the [gmap] tag, and disable automap, the map will show with no markers. If I add the marker_query, I get the cannot show error (at any zoom). If I enable the automap, no map shows at all.

    2. I am using WP2.8.1, and seeing the something like Bruno did in comment 59. Any time I change a setting on the main configuration page it wipes out the lat/lon settings in all of the individual posts.

    3. I would recommend a checkbox on each post whether to include a map or not.

    Other than those two thing I love the plugin.

  73. David

    Thanks for the great work on the plugin. I’m trying to integrate it into my WP 2.8 installation. Taking a trip to England this summer and want to be able to post geotagged images to the blog. Unfortunately I can’t seem to get any of my test photos to show on the map. I have some using absolute URL, some with relative URL, some being loaded remotely from flickr (to confirm that gps data is valid). None show up on the map…

    You check out my test posts at http://www.ghostlightphotography.com -slash- blog.

    Any thoughts?

  74. Jesper Vels

    Hi

    I have install Geotag at my wordpress blog. I have create a post with a image geotaged photo:
    http://vels.dk/2009/07/160/

    But there is someting wrong… As you see the photo is in the sea (it should be place in Denmark)??

    I have used this EXIF reader at the pciture:
    http://regex.info/exif.cgi?url=http%3A%2F%2Fvels.dk%2Fwp-content%2Fuploads%2F2009%2F07%2Ftest.jpg

    As you see there photo is from Denmark and not from the sea… any ideas why the photo is placed wrong at the google map.

    /Jesper

  75. Boris Pulyer

    Hi Island Richards, David and Jasper,

    thanks for your replay. Unfortunately I’m currently abroad and so I’m afarid, that I will currently not be able to have a look at your issues. Probably someone else might have a clue… I will not be back home before September…

    Boris

  76. Twitted by dlnorman

    [...] This post was Twitted by dlnorman [...]

  77. Ivan

    Hi Boris,

    sorry for the late reply. this is regarding the geotag + nextgen plugin at http://lab4games.net/2009/05/22/testing-more-geo-tag/

    i have added the link to the download of the modified source code in the blog post. alternatively you could get it here http://tinyurl.com/m5l9jt

    in the package i have added readme file to indicate where are the changes. it is just a very coarse way of making the 2 plugins work… but it gets the job done. hope someone can do a better job to make it more foolproof and better.

  78. Theo van der Sluijs

    Schade, die 1.1 version geht nicht mehr. Ich sehe meine karten nicht mehr in meine posts. Und ich bekomme die Array printout unten meinem configuration.

    Auch die ducumention link gives an error (not autorised)

    Ich hoffe das wird bald gelöst.

  79. Boris Pulyer

    Hi Theo,

    thanks for your feedback. Concerning the array printout at the configuration page you are absolutely right – during development I used this for debugging and I forgot to disable this. I will catch up on this.

    The error you receive while trying to access the documentation page is a Wordpress 2.8.x issue. As I am currently not able to test the plugin with the latest Wordpress version, I cannot fix this. This is also the reason why the plugin is marked as compatible only up to Wordpress 2.7.1. I will work on this when I am back home in October. Until then, you may access the documentation at my website.

    Regarding the missing maps below your posts, please make sure, that – after the update process – you checked the configuration and saved the configuration once again. The structure in which the settings are saved has changed in the new version and thus it is necessary to re-save the settings (see also installation notes). Afterwards you might check the array printout; there should be an array called ["gmap_zoom"]["LEVEL"]. Please tell me, if this worked or if I have to look for further bugs.

    Boris

  80. geert baven

    HI Boris,
    This is a beautiful plugin! it works for me in safari 4 (mac) but not in firefox and IE7 on windows, do you have suggestions to fix this?
    Help very much appreciated here!

  81. Boris Pulyer

    Hi Geert,

    I should work on Firefox and IE as I primarily developed the plugin with these browsers. Perhaps you can create a post with a map and send me the link. I will have a look at it, but it may take some time as I am currently not able to get online everyday.

    Boris

  82. Robert

    Hi,

    Have you permanently included the support for Nextgen galleries?
    Thanks.

  83. Robert

    Looking at your latest sourcecode it does not appear that support for the nextgen plugin is available yet. Please consider to add Nextgen support, as this is one of the top 10 plugins of Wordpress. That and I use it ;-)

    Secondly, about the solution from Ivan. According to him, the default Nextgen Thumbnails do not contain exif information. He therefor changed the Nextgen Sources to change this.

    Would it be possible to not scan the thumbnails for exif information but to scan the actual linked images? This way the nextgen plugin won’t require any changes (for now) and your plugin would have Nextgen support right of of the box.

    If you need some help or support: I’d be happy to assist.

  84. Boris Pulyer

    Hey Robert,

    right now Geotag does not support nextgen. As mentioned above, I am currently abroad until end of September and I am afraid that I won’t have the time to have a look at the nextgen plugin until then. For the same reason I haven’t had a look at Ivans solution yet. But I will do so when I’m back home…so I have to ask you for some patience :-) .

    Cheers

    Boris

  85. Adam

    I had trouble for a time with my maps showing up grey with the standard embedded Google Maps message about there not being imagery available at the requested zoom level despite being at zoom level 8. It was also not centered on the coordinates I’d provided in my post. The map showed up and was centered correctly in the blog editing screen, but it wouldn’t show up in the blog. I could zoom out to level 6 or so and then the imagery would come back. I could then locate my marker, center the map, and then I could zoom back in like usual. This blank imagery and off-center problem went away when I added the [... center="markers"...] property to the gmap shortcode entry. I was surprised this did the trick, but it did. I’m wondering if the problem is how many things I have set in the geotag settings to be done automatically. I have the following questions for when you’re back from your trip (or for anyone else that has run into these things):

    1. Are there some aspects of the geotag settings that should be treated as mutually exclusive (i.e. radio buttons instead of check boxes)?

    2. Should the display map in the blog editing screen reflect the gmap shortcode properties or just the default settings from the settings page?

    3. Could an “Update” button be added to the blog edit screen next to the “Clear” button under the Lat/Lon entry boxes? It would be nice to have a quicker way to confirm that the coordinates entered are correct.

    Thanks!

  86. Boris Pulyer

    Hi Adam,

    sorry for the late replay; as soon as I am back, I will take a look at your website. In the meanwhile it would be helpful if you can provide a geotagged test post or page (perhaps you prefer the later one as it is not visible for your visitors), include a [gmap] tag and post the link over here.

    Basically, all the settings which are exclusive are implemented with radio buttons – but anyway, it would not say, that there is no chance any mistake happend :-) .

    The map in the editing screen, however, is not affected by the settings. It is not a kind of preview, but only to locate and visualise your position. An “Update” button over there is a good idea. I will try to integrate it into the next version.

    Cheers

    Boris

  87. Ryan Douthit

    Any suggestions or resources (or straight-up code) on how to display this plugin via PHP? I’d like to run it in a box above my left column (a fixed-size 270×200 box) when there is an active entry with a post. (so, outside the entry loop) and not be there when the dataset is empty.

    Thanks!

    Ryan

  88. carolyn

    Hi Boris

    You are probably still away from home, so won’t reply until you get back. I trust you are having fun.

    I am very excited about your plug in. Thank you.

    Wanted to let you know that at the moment if you have an ‘ in the tile of any of your posts the map system won’t read past it when using [gmap marker_query="numberposts=-1&category=13"]. This had me stumped for a while.

    Also it would be great if on map pages with multiple markers you were able to see all results for each location (if there are multiple). At the moment the shadow is darker indicating multiple posts but clicking on the marker only gives details of one post at that location.

    Thanks again
    Carolyn

  89. Boris Pulyer

    Hey Ryan,

    I don’t know if I got you right, but it is currently not possible to include a map into a template by calling a php function. A map will only appear, if you included the [gmap] tag in the post or if you activate the “auto map” feature. However, it would be possible, of course, but it would require some adjusments of the plugin source code. If you want to, you might have a look at the funtions in the section “Display the posts” which are responsible for the creation of the map and try to call them manually.

    If you make any progress, I would be interested in some feedback to include such features in future versions.

    Cheers

    Boris

  90. Boris Pulyer

    Hi Carolyn,

    thanks a lot for you feedback. Currently I’m back home again, but I have to do exams soon – so time is short again :-) .

    The ' issue is new to me and I will have a look at this and try to fix it…as soon as possible. The next issue is a little bit complicated, because the handling of the markers is done by the Google Maps API. Hence, it would be neccessary to filter such cases, in which multiple markers are nearby each other, create only a single marker and adjust the text in the balloon. But it seems to be possible. Perhaps I can fix this issue in the next version – but don’t expect this in the next couple of weeks…:-)

    Cheers

    Boris

  91. Mark G

    Hi Boris,
    Just starting to play around with your plugin – looks great! What’s even better is the way you implemented it in your photoblog. The globe icon revealing the map is very slick. I’d love to use something like that in a galley viewer. Any tips? Would you consider making a gallery plugin?
    Regards,
    Mark

  92. Jim

    hello, i am playing with your plugin. I have a page with 5 posts, all have maps showing on their page, but i can not get all the post markers to show on each map…
    i have the posts category as “store”
    so to show all stores i have [gmap marker_query="category=store"] and nothing shows
    [gmap marker] and the map with that post marker shows

    !!! – please help – thanks

  93. Jim

    hello i have posted above, i have been trying [gmap marker_query="numberposts=-1&category=3"] and no map shows? any ideas

    [gmap] and the map shows fine with a marker for that post

    I really need all post entries to be marked on the map

    cheers, jim

  94. Boris Pulyer

    Hi Mark,

    sorry, but the map of my photoblog is not made with this plugin. The whole photoblog is completly seperated from the wordpress installation and so it will not (easily) be possible to implement this kind of map into wordpress. I alredy received some demand for making the geotag plugin compatible with the nextgen gallery plguin, but right now I am a little bit short of time because of a ongoing exam… But I will come back to this, when times are becoming a bit mor relaxed :-) .

    Cheers,

    Boris

  95. Boris Pulyer

    Hi Jim,

    sorry, but I am not able to get to the internet every day, so sometimes it will take some time for the responses. The [gmap marker_query="category=store"] will probably not work, because the cateogries should be addressed by numbers. The second try ([gmap marker_query="numberposts=-1&category=3"]) looks perfectly fine to me – given that the category “store” has the id 3. Perhaps you can send me a link of your page and I will have a look at it.

    Cheers

    Boris

  96. David Ing

    Boris,

    Just to report on progress …. On http://daviding.com , I now have many blog posts, and a successful import from the blog feed to Google Maps.

    I haven’t been including a map at the bottom of my blog posts. I get the same error message as message #55 from Dave, i.e. the …

    Warning: exif_read_data() [function.exif-read-data]: unable to open file in …

    … and followed the directions in you message #56 to ensure that I’m using full URLs, and not relative addresses. I tried inserting the …

    echo $image;

    … but didn’t see anything different. I then tried the technique in message #64 …

    $finalpath = str_replace( get_bloginfo(’wpurl’), $_SERVER["DOCUMENT_ROOT"], $image);

    $exif = exif_read_data( $finalpath, 0, true );

    … which give me lots of error messages (I imagine one for each photograph in the blog post).

    I am currently up to date at Wordpress 2.8.4 , and the default by my hosting provider (site5.com) is PHP5.

    I would like to the Exif geotags from each photograph surface (particularly in the feed), but am currently happy to get the basics working. (I only figured out the Google Maps import today). If you have others reporting similar issues, you’ll now know that there’s a pattern.

  97. Jim

    Hello
    Thanks for looking at this, here is a link
    http://icadgo.com/pgo0852/?p=89

    here is the code i have used on this post
    [gmap marker_query="numberposts=5&offset=1&category=3"]

    the other posts just use the
    [gmap]

  98. Jim

    ok, got it working, but it will only show 5 of the last posts, i want it to show all post locations.
    If i remove that setting so it reads
    [gmap marker_query="offset=1&category=3"] nothing is displayed

  99. Boris Pulyer

    Hey Jim,

    I will try to have a look at your site at the weekend. in the meanwhile you may try to use the following tag:

    [gmap marker_query="numberposts=-1&offset=1&category=3"]

    If you set numberofposts to -1 it should remove the limit.

    Cheers!

  100. Jim

    nope, if i use this:
    [gmap marker_query="numberposts=-1&offset=1&category=3"]
    nothing shows…

  101. Michau

    Hej,
    i like your geotag plugin, but I have a little problem with description-tag in points or tracks included in map. If I want to put a link in description-tag I use <![CDATA[...]] in kml file. But I can’t open this link in the same window, always open it in a diffrent window.
    In your example the link in point description-tag open in the same window. Is there a simple way to do this.
    thaks.
    Michau

  102. Boris Pulyer

    Hey Michau,

    the example on my page doesn’t use a kml file to display links. The ballons for the different posts were created by the plugin and were placed using javascript. I also tried to create a kml file with a link which opens within the same window, but it seems to be a hard job. Basically, the kml documentation of Google says, that target="_self" will be used by default. According to the documentation the target attribute of the a-tag won’t be supported anyway. But although it doesn’t work. The only way I found out is to insert a link into the description as plain text. Google Maps will convert the text to a hyperlink and open it in the same window. But then the address itself will be visible and not a descriptive text…

  103. Michau

    Hey Boris,
    Thank you very much for help. I used to try target = “_self”, bat as you said it doesn’t work.
    I use link as a plain text as you advise. It is not the best, but good enough solution for me.
    Thanks a lot.
    Michau

  104. David

    Hi Boris!
    Tanks for this plugin! It’s great! But i’m with a problem: I have a map with markers of geotaged posts of an category, but when i click on the markers nothing happens.

    Here is the map: http://www.dobrarfronteiras.com/europa/monaco-principado-do/ and the code: [gmap marker_query="numberposts=-1&category=36" zoom="14"]

    I want to have a ballon with a link to the post, like in your example. How to do that?
    Thanks a lot
    David

  105. Lang

    Boris:

    How do I get a [gmap] to center in the content column rather than hug the left margin? I tried centering it as if were text, but that didn’t work. Any ideas?

  106. Boris Pulyer

    Hi David,

    well, basically, it seems to me that you ‘ve done everything fine. The plugin is placing the markers and all the rest should be handled by the Google Maps API. When you click on a marker, a JavaScript error occurs in the Maps API. Perhaps this has something to do with another error which occurs in the file http://www.dobrarfronteiras.com/wp-content/plugins/google-analytics-for-wordpress/custom_se.js just after loading the page. Why don’t you try to temporarily disable the other JavaScript files and see if the markers will work then…

    Regards
    Boris

  107. Boris Pulyer

    Hi Lang,

    what do you mean with “content column”? Is this a real table colum or just a div-container where you put your contents in? As the [gmap] is placed in a div-container, the “text-align: center;” thing will probably not work. Perhaps you can send me a link to a preview page and I can have a look at it.

    Regards
    Boris

  108. Geotag | Blue Orbs

    [...] Feedback If you tested the plugin, I would be glad about some feedback at my Geotag Website. [...]

  109. Lang

    Boris:

    Go to the address below and scroll down to the “GeoTag Test” post. I would like to be able to center the GeoTag map in the content column if at all possible:

    http://www.musicofnature.org/blog/blog/

    Note that we’re just testing right now. Our blog won’t actually launch for another month or two.

    Thanks,
    Lang
    please respond by e-mail if possible: langelliott@mac.com

  110. Boris Pulyer

    Hi Lang,

    just put the following line to your css:

    .gmap {margin-right: auto; margin-left: auto;}

    Boris

  111. chymera00

    Hello Boris,

    Thanks for making this plug-in, I love it! Though, the balloons on my gmap is not displaying correctly in Firefox 3.5.5 (it displays corrently in IE). I posted a map here: http://www.pueblophilippines.com/towns-and-cities

    Also, is there a way to change the content displayed in the baloon? Like display a summary of the post instead of the date?

  112. Thomas

    I have issues with firefox 3.5.5 (windows) too. The markers turn into white squares. The zoom controls are not transparent and get a white square behind them. And in the satellite style with labels the actual satellite image goes away (become transparent?).

    In IE it looks just fine.

    Otherwise, this seem to be exactly what I want. One thing on my wishlist though – it would be nice if the marker/icon for a photo in the map could be highlighted when the mouse is over the corresponding image in the post. But maybe that’s way to tricky?

  113. Thomas

    In addition to my previous comment, I seem to have the same issue in IE8 (while not in earliers versions). Example post at http://egrelius.se/2009/11/11/arets-worldcup-simning-i-stockholm/

    My guess is that this is CSS related, but I haven’t managed to find the code causing it yet.

  114. Thomas

    Just wanted to report that all is sorted now. .gmap img in style.css solved it as soon as I figured out the correct location ;)

  115. Paco Ojeda

    Greetings from Puerto Vallarta, Mexico!

    I have been using GeoPress, in my Puerto Vallarta blog, but would like to switch over to Geotag. The idea of being able to show several photos on the same map is very appealing to me. I’ve just posted a new entry here incorporating Geotag:

    http://paco-ojeda.com/blog/three-things-id-buy-at-angels-store/

    The good news: the map shows fine, including a marker that I set up when I was writing the blog entry.

    The bad news: icons for my photos don’t show up.

    In the configuration page I did NOT turn on Auto Map, but I did click on the Geotagged Photos option. So, to invoke the photo icon manually, I entered the following code at the bottom of my entry:

    [gmap lat='20.603492805100505' lon='-105.23577332496643' display_photos='true' photos_icon='CAMERA']

    Unfortunately, no photo icon… I am certain that the jpg’s are geotagged properly. Can you think of what might be missing?

    I thank you in advance for your help!

    Danke,

    Paco

  116. chewzer

    Hello Boris,
    i have just installed the plugin but not display the map in the post: the code is just an empty div

    I use wordpress 2.8.5 and automap setting.

    Thanks :)
    marco

  117. Simon Clear

    I am unfortunately a complete novice at the moment and am experimenting with various plugins. I have started using your plugin but cannot get it to display kml information. I have verified that the kml is not corrupted, inserted the code as instructed and edited the mime information to allow for kml file uploads. The kml file is centered on europe but does not display at all

    http://sarahandsimon.net/wp-content/uploads/2010/01/1.kml

    [gmap center="file" file="http://sarahandsimon.net/wp-content/uploads/2010/01/1.kml"]

    am I missing something glaringly obvious?

  118. Boris Pulyer

    Hey Simon,

    I tried to have a look at your kml file, but received a 403 error. If you change your server configuration to make this file accessible, I will have a look at it. Maybe this also might be the problem :-) .

    Cheers,

    Boris

  119. simon

    Sorry but still experimenting with wordpress and not quite sure how to share the file from my site, the kml was created from http://mapvivo.com/journey/4346 which exports to kml. It is exported as a polygon line which from looking at you site I’m sure is compatible, but does open in google earth. Thanks for your help anyway, I’ll keep experimenting with different kml files to see if I can get something to work by I would really like to show a journey rather than map points.

  120. simon

    The issue is definitely with my site, I used a kml with the basic placemark code from http://code.google.com/intl/de/apis/kml/documentation/kml_tut.html
    and still will not display.

    Si

  121. Boris Pulyer

    Hey Simon,

    at first, you should be sure, that your kml file is accessible by the webbrowser. If this is not possible, your file will definitely not be displayed in your map. This has nothing to do with yourkml file or with your Wordpress or Geotag configuration, but with the configuration of your webserver. Perhaps you should try to copy the kml file to your weblog directory (usually the root directory of your website). If it possible to access it there, try to point the path of your [gmap] tag to this location and see if its working then.

    Boris

  122. Nathan Liss

    http://ourexcellentadventure.ca/?p=9

    Hi Boris,

    I’ve read through your chain and was hoping you could help me out. I’ve added the [gmap] tag at the end to the post above; however, only a blank space is visible. The API Key I got from google seems to be working.

    Can you help point me in the right direction?

    Thanks in advance for your help.

    Nathan

  123. woll-knaeuel

    Hello Boris,
    I have successfully installed your geotag wordpress plugin. Works like a charm!
    Before I am going to style the Google Map bubbles with CSS I have the following question which seems not to be asked before. I have several posts with exact the same location. On my “global” map ([gmap marker_query="numberposts=-1"]) I only get one bubble for this location with the link to one post and not a bubble with a list of posts to select. Have I forget to set a option or is this just not implemented yet?
    Hope to hearing form you soon!!
    Kolja

  124. Boris Pulyer

    Hey Nathan,

    the map is not appearing, because the JavaScript code, which is neccessary, is missing on your page. This problem was reported once before and was caused by a faulty template (see comment no. 38). You should check, that at the end of your template file (usually the index.php, comment.php or footer.php) the PHP command wp_footer(); is executed. As the JavaScript code is executed within the footer, the map will not work, if the footer is not displayed correctly. Perhaps you might check the Wordpress Codex for some further information.

    Btw: traveling around the world for six month really makes me a little jealous :-) . Wish you a lot of fun and a great time!

    Boris

  125. Boris Pulyer

    Hey Kolja,

    thanks a lot! Unfortunately, there is no option how to handle different posts with the same location yet. To be honest, I never thought about it, but your are right – this might be very useful. Right now, for every post a single marker is created and placed within the map. As these markers are overlaying each other, only the topmost of them is clickable. I will definitely try to add such an option to the next version, but I’m afaraid this will take some time… Right now, I can only suggest to alternate each position a little so it is at least possible to distinguish the different markers if you zoom into the place. But I know, this is only a makeshift solution.

    Boris

  126. Nathan Liss

    Boris!

    You rule man.

    I added to the footer page and it works great!

    Thanks for the awesome plugin and for the good wishes on our adventure.

  127. woll-knaeuel

    Hello Boris,
    I just finished implementing my mod for your geotag plugin ;-) Probably not the best way (I am not a coder) to do it, but it works for me and meet my expectations.
    Here is a screenshot http://www.imagebanana.com/code/h8cgeya3/geotag_with_tabs.jpg.
    After I have finished the CSS styling and integrated the solution in my blog I can post a link to it, if someone is interested.
    Kolja

  128. Boris Pulyer

    @Kolja: Looks awsome! I would really like to have a look at your solution and try to integrate it into a future release.

    @Nathan: Thanks a lot :-) !

  129. Zac’s Attic Blog » Twitter and Flickr on Wordpress

    [...] 2.7+, lightbox2, Flickr Photo Album (Joe Tan), Geotag, and Twitter [...]

  130. Brian

    I’m successfully using your tagger to share post locations, but I’m having issues tagging photos. I did a successful test run before my trip, but now I can’t get photos to tag properly. I get various errors, saying things like:

    ===============

    Warning: exif_read_data(100110-1005s.jpg) [exif_read_data]: Illegal IFD offset in /home/bgphoto/public_html/packingacanon.info/wp-content/plugins/geotag/geotag.php on line 780

    ===============

    Clearly line 780 doesn’t like me. Have you seen this before? I shoot with a Canon 1D and a Canon G9. I see this issue with both models. I think the location is stored properly, because if I load the photos to Flickr, it knows where they were taken, as does Google Earth.

    Any ideas? I’d be happy to e-mail you files if that’s be useful.

    Thanks for your help!

  131. Boris Pulyer

    Hey Brian,

    the extraction of the exif data is done by PHP’s exif_read_data function. Hence, the Geotag plugin will only call this function, but has nothing to do with the reading process itself – so, at least, I can shift the blame :-) . However, it seems that the exif data of your photos is corrupt somehow. Maybe Flickr and Google Earth are a little bit more tolerant. I would recommend you to try another software for geotagging your pictures. For me, GPicSync and Geotag both works fine. In case you are uploading your photos via FTP you should be sure that you are using the binary transfer mode.

    If this won’t work, you may send me a link to one of your uploaded and geotagged photos and I will have a look at it.

  132. Brian

    I’ve used BreezeBrowser and GeoSetter to set the location data. Both work fine in other places. I can’t see anything corrupt, but maybe you’ll see something different.

    This one works fine.
    http://packingacanon.info/wp-content/uploads/2010/02/100121-1024s.jpg

    This one fails.
    http://packingacanon.info/wp-content/uploads/2010/02/100129-1005s_korea.jpg

    Thanks SO MUCH for your help!

  133. Marko

    hey,
    thanks for your plugin. But i got 2 Problems:

    1. At the beginning everything worked very well, but suddendly (i dont know why) the map in the admin area doesn’t appear. So now i cannot add the Position to the post. It’s very weird, because it just shows a grey background and the google logo in the left corner and the terms of use in the right corner, but no map. Why?

    2. My geotagged photos didn’t appear (at the beginnging when everything worked fine) on my maps. Why? My provider said, that the php function is active.

    thanks a lot :)
    regards
    Marko

  134. Sasha

    Hi, I’ve installed the geotag plugin and I am very happy with it. However, I’m not sure if what I want is possible. I would like to have on my wordpress website a map with multiple markers in it that refer to either foto’s, posts or both. (How) can I do this? I’ve already succeeded in adding a page with the map on it, with 1 marker, but after that I’m stuck. Could you help me please?

    Regards,
    Sasha

  135. Sasha

    Now that I’m looking at it, the example above with the map of Mexico is exactly what I need. How do I note the codes?

    Thanks in advance

  136. Jarno

    Hi!
    We are trying to get our blog work so that it would show all the posts(photos) posted to a certain category in a one map (we have succeed to do that! :D ). The idea of the blog is that users could (easily) post photos with geotag information and that these photos would be linked to one map.

    At the moment we are having problems with two things. First we don’t get geoinformation from pictures (we are using Nokia mobilephones for taking pictures). Do you have a cure for that? Our second problem is how to edit automap settings. We want that automap would show all markes which are included in one category. Is this possible to do?

    It would be nice if you contact us via email.

  137. Boris Pulyer

    OMG – so much problems :-)

    @Brian:
    I checked you photos with Irfanview and was not able to read the exif header from the second photo. I also tried to check it with Jeffrey’s Exif Viewer and it worked. Unfortunately I’m not an exif geek and I don’t have any detailed knowledge about the way the data should be stored and how to identify if it is corrupt. Hence, I also don’t know how to correct it in the latter case. So I can only suggest you to try another tool to geotag your images… I’m sorry to have no better hint.

    @Marko:
    I’m afraid your questions are a little bit vague. Concerning your first question, it depends on what you have done in the meanwhile, e.g. installed some other plugins, changed some stylesheets etc. Concerning your second question I need at least some example post to look at.

    @Sasha:
    It is possible to display the position of several posts within one map. It is also possible to display the photos of the current post within a map. But right now it is not possible to display the photos of all posts in one map. If you want to use one of the possible features, please have a look at the documentation to learn how to set it up.

    @Jarno:
    1. Unfortunately I can’t give you some help concerning your geotagging problem. I don’t have much experince with different geotaggin solutions as I’m only using the GPicSync geotagging software.

    2. The automap can be configured individually for each post by a [gmap] tag (see the documentation for details). But right now it is not possible to configure the marker_query for all posts from the options menu. So you have to add the specific [gmap] tag to every individual post. Maybe this could be a feature for a future release…

    Hope I could help a little…

    Cheers!

    Boris

  138. Sunng

    Thanks for the great plugin!
    It seems there is a bug in zoom level of static map, I find the url generated is:
    http://maps.google.com…&size=500×170&zoom=Array&cent…

    is the Array a strange value ?

    And I also suggest you to create a openstreetmap version, which is completely free and open.

  139. chymera00

    hello borris,

    The geomap at my site is displaying a blank div. I’ve read comments #124 and #38 and made sure that the wp_footer(); is in my footer.php but the map still won’t display. I’ve been banging my head on the wall for hours but I still haven’t found a solution. The “Google Analytics for WordPress” plugin seems to use the wp_footer(); properly but I’m confused why “georss” won’t use it.

    I hope you can help me.

    Thanks in advance.

  140. chymera00

    Nevermind my last comment. The map is now displaying fine.

  141. Boris Pulyer

    @Sunng: Thanks for the cue! This seems to be a kind of bug :-) . However, after the “zoom=” there should be a number indicating the zoom level. I will try to fix this.

    But unfortunately I’m not planning to create an openstreetmap version. The code is fitted to the the Google Maps API and creating an openstreetmap version means to recreate large parts of the plugin..

    @Chymera00: Perfect.

    Cheers!

    Boris

  142. Sasha

    @Boris

    Thanks for the feedback. I am not familiar with making websites or HTML coding, but I’m open minded and willing to learn. I have a website on which I want to allow people to follow me on a trip around the world. On this website I can create both ‘pages’ and ‘posts’. I have already installed the geotag plugin and created a new page and placed a [gmap] in the text box, which is replaced by a ‘google maps’ when someone opens the page to view it.

    Now if I have understood correctly, I can create ‘posts’ which can be displayed as a marker on the google maps that I have already created on a ‘page’, in such a way that when people view this page that I have created, they can click on the markers to go to a ‘post’.

    Is this correct? If not is there anyway to do something similar? And if yes, how do I do this. Where do I place what shortcode?

    Hope you can help me. Thanks in advance!

    Sasha

  143. Boris Pulyer

    Hi Sasha,

    this is correct. Please have a look at the example above to see how it would look like and at the documentation (marker_query=”…”) to see how to do this.

    Cheers

    Boris

  144. corin

    hello, i tried to read through this thread to find my answer, but was unsuccessful. i apologize if you’ve already addressed this.

    is it possible to pull in a post’s image as a thumbnail for the map without having geo/exif data embedded in the image? IE: using your interface for geotagging the post?

    If not, do you have any recommendations for geotagging images outside of wordpress? this is for a client and i know very little about geotagging.

    I have tried using photos directly from my iphone 3gs, but that does not appear to be working – although I can see the location data in my photo software, it doesn’t appear to be pulling it in when I upload them through wordpress.

    if you can help me at all, i’d really appreciate it. your plugin has already helped me immensely so far.

  145. corin

    well, i possibly got further – but now i’m experiencing this:

    Warning: parse_url() expects exactly 1 parameter, 2 given in /home/content/l/a/r/larraga/html/corinjoel/private/ga01/wp-content/plugins/geotag/geotag.php on line 779

    Fatal error: Call to undefined function: exif_read_data() in /home/content/l/a/r/larraga/html/corinjoel/private/ga01/wp-content/plugins/geotag/geotag.php on line 781

    i saw a similar problem posted in this thread, but i’m not exactly sure how to go about solving this. a normal [gmap] with no added properties works fine. once i try to add display_photos, i begin having trouble.

    any help would be appreciated.

  146. Michael

    Hi,

    thanks for this one geotagging-plugin that actually is in development and has a rather active community!

    I just wanted to inform you about something really curious: The sequence of the marker_query-attributes is of utmost importance!

    [gmap marker_query="numberposts=-1&category=123"] – does NOT work.
    [gmap marker_query="category=123&numberposts=-1"] – does work!

    Hope that this helps some of the people here…

  147. Michael

    Another thing: I have permalinks active on my website (3th.be), however, the links in my world map – see comment 144 – do not link to them but to some obscure DOMAIN/post/SOME_NUMBER-Urls. Any Idea what could cause this and how to make the articles link to the correct url?

  148. Boris Pulyer

    Hi

    @Corin:
    Right now it is not possible to change the Google Map default marker for a post and replace it with a thumbnail. This option is only available for geotaged photos and, however, I have to admit that it currently doesn’t look very well…

    If you want to start with geotagging, I can recommend you GPicSync (if you need a batch mode to geotag several photos at once on the basis of a tracklog) or Geotag (if you want to geotag only single photos and if you don’t have a tracklog). If you want to test your configuration with some photos you may also use the three photos at the top of this page which are already geotagged. Try this and see, if the error message still appears.

    @Michael:
    This is strange, beause I’m using a query like “numberposts=-1&category=123″ for the example above and it is working fine. However, the function which performs the marker query is a part of the Wordpress core and I’m just lending it – so, to be honest, I don’t know much about it. But thanks for the hint – maybe someone else is facing the same problem.

    The URI of the markers are taken from the Wordpress database and are the same which are used for your theme to link to a post (e.g. if you click the headline at your home-page). If you have a example-post, I might have a look at it.

    Boris

  149. Michael

    Hi,

    Most of my articles in the category “Reisen” do have geotag-information (by your plugin) – as you can see in the source (http://3th.be/kategorie/reisen/).

    I have created two pages for debugging-purposes:

    1. http://3th.be/geodaten-kat-numberposts/ calls the map with this shortcode:
    [gmap marker_query="category=123&numberposts=-1"].

    2. http://3th.be/geodaten-numberposts-kat/ calls the map with this shortcode:
    [gmap marker_query="numberposts=-1&category=123"].

    Page 1 shows no map, but the source suggests that at least it catches all those geotagged articles somehow. However, the URLs of the articles in the JS are definitely wrong and refer to numbers I have no clue what they are since my permalink-structure is domain/year/month/title/.

    Page 2 shows a map, but only with the 4 most recent posts. They are also not linked in my permalink-structure, but at least these links work since they reference the post-ID.

    If you could have a look at this, it would be great. And I appreciate any help, even in German ;-)

  150. Michael

    One more thing: I have just deactivated one plugin – Intypo (http://dossier.dunker.de/intypo) which changes english quotation marks (”") into german quotation marks („“). If deactivated there is no difference between the two marker_queries…

    However something strange happens: If you look at the source of one of those pages, the first 4 links are fine and then this strange number appears again in the urls. Is it possible that some Plugin interferes with your JS-code (and could I – to prevent this – somehow move the JS into a separate file)?

  151. abi

    Hi!

    Great plugin it’s just what i need, but I want to add a map outside of a post or page, how can I do it?

  152. Michael

    Any ideas on my points from comment 149 and 150?

  153. Michael

    Hm, I managed to get rid of the wrong uris (and change the displayed date to display in the right format in the chosen language), however, still not all markers are displayed. No matter what I try, only 4 markers are displayed…

    BTW, here is the changed section of your code. Aaround Line 530 you are building an array that I have changed with these parameters):

    “lat” => $lat,
    “lon” => $lon,
    “uri” => get_option(’siteurl’) . ‘/?p=’ . $val->ID, // originally this was $val->guid,
    “title” => $val->post_title,
    “date” => date_i18n(get_option(”date_format”), strtotime($val->post_date)) // originally this was just the date(…)-function (but it doesn’t respect my German-language formatting…)

    Going on trying…

  154. Boris Pulyer

    @ Abi:
    I don’t know what you exactly mean with “outside a post or page”… Right now it is possible to create maps for posts or pages by including the [gmap] tag. However, it is not possible to create a map by triggering a function within a template, for example. But this is a feature which I’m currently thinking about to add.

    @ Michael:
    The change for the date value is really cool. I didn’t care for the wrong date formattig, but this is quite a simple solution. I didn’t know that it can be done so easy and I’ll change this in a future release :-) .

  155. Michael

    One more vote for a function to display the map outside of the_content!

  156. Filip

    Hello
    I am unable to post the map on my pages (or posts – for the sake of not ruining the view of my blog I have made a TEST PAGE on top of the blog).

    Using GEOTAGPHOTO plugin I can post a EXIF-picture, post it, click it and the plugin shows a softbox googlemap. So my API Key works, my EXIF works in the picture and EXIF is enabled in my wordpress online installation. I am using wordpress version 2.9.2.

    So why doesn’t GEOTAG work? What used to happen, but not now on the page, is that a half map would appear, without picturetags…

    Any help for this?
    Yours
    Filip

  157. abi

    Hi Boris,
    That’s what I wanted, to call the map function within the template. For now i’ll have to do it with pages, but i’m looking forward to that feature.

    Michael, you solved my problem! I also got the date in english. Thanks!

Schreibe einen Kommentar