Plug ‘n’ Play Google Map

Oh god it’s starting already. Slowly you will start to feel my geek-related articles kill your mind from the inside out like some kind of terrifying, mutated form of syphilis that you contract with your eyes.

Google recently updated their Google Maps API to Version 2, making all kinds of promises such as faster downloads for the map script, increased map resolution, and that using the new API will increase the possibility of you getting LAID to near-possible levels. I thought I’d have me some of that for the Wordpress plugin I built, and in the process of upgrading the plugin to work with the new API I’ve also made some improvements to the plugin itself (most of which were achieved by reading the Wordpress API documentation properly this time).

Download

This plugin creates a google map on a Wordpress static page of your choice. Any post that you attach a latitude and longitude to will appear on the map as a marker, with a pop-up bubble and a link to the post. View an example.

DOWNLOAD Plug ‘n’ Play Google Map

New Features

  • Plug ‘n’ Play. No more template-hacking.
  • Uses Google Maps API Version 2 for higher resolution satellite imagery, a collapsible “overview map” in the bottom-right and much more.
  • Selectable default map display type.

Requirements

  • You need a Google Maps API Key.
  • This plugin works in conjunction with the Geo plugin, which you should download and install before this one.
  • Your Wordpress theme must support wp_footer(). How to check.

Installation

  • Upload the plug-n-play-google-map folder to your wp-content/plugins folder.
  • Activate the plugin from the Wordpress admin area.
  • Create a new page for your map. Go to Write > Write Page. Write whatever text you want in the page and put <div id="yf_map"></div> where you want the map to appear in the page.
  • Navigate to the admin panel in Options > Plug 'n' Play Google Map. All fields are mandatory with the exception of width and the thumbnails section.
  • That’s it! Go and marvel in awe at your map page and start attaching latitude and longitude data to your posts!

Optional Extras

This plugin features two extra bits of functionality - thumbnails and automagic map link buttons on posts.

Thumbnails: The problem with thumbnails is there is no standard way that everyone is doing them, so I’ve had to “decide” on one for you.

google map thumbnail example

What the Plug ‘n’ Play Google Map plugin does when it wants a thumbnail for the info bubble like above is, it will look in a folder you specify for an image with the same name as the post-slug of that post. So for example the info bubble for a post at www.myblog.com/2006/05/hello-world will look for an image called hello-world.jpg (sorry, jpg only!), in a folder you specify in the options panel. You can also style the content within the bubble any way you want, by adding optional CSS. The container in the bubble has the class name .infowindow-map.

Automagic Map Link Button: This is a button on your post that takes you to the relevant geographic location on your Google Map page and it will only show up on posts that have latitude and longitude data associated with them. To show this button, you will need to edit one of your templates. Navigate to Presentation > Theme Editor. On the right hand side, click on Single Post. Where you put the button is up to you, but as an example, lets make it so the button appears after the main content of your post. Somewhere in the code you will see a line like:


<?php the_content(); ?>

To add the button, simply past the line <?php yf_map_button(); ?> like so:


<?php the_content(); ?>
<?php yf_map_button(); ?>

That’s it - any posts that have latitude and longitude will now show a button that when pressed, takes you to the relevant geographic location on your Google Map page. View an example here.

Troubleshooting

What is “Map Page Slug”?
This is the name used in the url of your map page. For example if your map is at www.myblog.com/map-page/, then your map page slug is map-page.

The map doesn’t show up!
The map should work out-of-the-box in the Plug ‘n’ Play style that the name suggests. However, it relies on a certain hook of Wordpress that some theme authors may not have included in their templates. Your footer template must have a line that reads <?php wp_footer(); ?> to use this plugin. If it doesn’t, you can easily add it. To check, navigate to the theme editor at Presentation > Theme Editor. On the right hand side, click on Footer. In the middle where the code is, scroll to the bottom where the last things you see are:


</body>
</html>

If you don’t see <?php wp_footer(); ?> around, just add it, like this:


<?php wp_footer(); ?>
</body>
</html>

Enjoy the plugin! It’s still in development, so if you have any trouble please use the comments area below.

132 Responses to “Plug ‘n’ Play Google Map”

  1. […] Written by Jon. To all - this page is now deprecated. The latest version of the plugin - which uses the new Google Maps API Version 2 - can be found at: http://www.yongfook.com/2006/05/28/plug-n-play-google-map/ Thanks! […]

    PingMag - The Tokyo-based magazine about "Design and Making Things" » Archive » The Instant Googlemap Plugin! / May 28th, 2006
  2. It’s 7 am, been working for over 14 hours and is dead tired. Comes home and flips on the laptop and jumps into bed. Opens up the bookmarked folder called “Daily Crack - The Blogs” and out of 20 god damned blogs this one was the only “sane” one.

    You just won yourself a big bowl of candy Fook, spend it well!

    // MiLeS, Sweden

    MiLeS / May 28th, 2006
  3. where are the Jinx photos???????

    judge / May 28th, 2006
  4. Hahah! There are none! Not a one!

    Guig / May 28th, 2006
  5. […] I have updated the plugin to use Google Maps API Version 2. The new support page is here: http://www.yongfook.com/2006/05/28/plug-n-play-google-map/ […]

    Yongfook.com - The Japanese Food and Tech Blog » Blog Archive » Yongfook’s Instant Google World Map Plugin, for Wordpress / May 29th, 2006
  6. Hi Nice Plugin, i have installed it and all looks good, but i have a big Problem, i can`t see the Markers on the Map. Do you know thes prob? Here is on of my geotagged posts: http://www.frisbeeblog.de/2006/frisbee-freestyle/discraftskystyler-wm-2006-berlin/

    MP:Ole / May 30th, 2006
  7. MP:Ole > that’s a very strange problem. The map button is appearing so that means yes you have geotagged the post correctly, but that means it should definitely show up on the map page…

    hmm. This is why I need people to start using it - weird problems like this crop up. I’ll look into it.

    yongfook / May 30th, 2006
  8. […] Yongfook.com - The Japanese Food and Tech Blog […]

    WordPress Station » Blog Archive » Plug ‘n' Play Google Map / May 30th, 2006
  9. Hey, I love the idea, but…. The geo.php plugin doesn’t work with WP 2.02!!

    I drag the file over to the /plugins directory… and it doesn’t even appear in the options to activate the plugin.

    Now what??

    Thanks!

    hoboken411 / May 31st, 2006
  10. […] After a bit of digging I found two options: Youngfook’s Plug and Play Google Map and Cyberhobo’s Geo Mash-up. […]

    Veggie Friendly » Have you done something to your blog? / May 31st, 2006
  11. hoboken > very sorry about that. I’m using Wordpress 2.0 and it works fine. Unfortunately I have no control over the development of geo.php. I guess you’ll just have to wait for them to update?

    For the next version I might consider doing away with the need for geo.php and make the PnP GMap a self-contained plugin.

    yongfook / May 31st, 2006
  12. Awesome plugin. Worked like a charm (I had problems loading getting the earlier plugin to appear in the plugin screen). Saved me hours of anguish and the google map looked great. Thanks Yongfook. You are a star.

    KP / June 2nd, 2006
  13. This is great. Worked seamlessly. I have some questions though. Multiple events with the same location show only as one marker on the map. Is there a way to show more things in the balloon? Also when clicking on the map link button, is there way to not show the other markers? Note: This site is pretty good looking. Nice job.

    Dance / June 3rd, 2006
  14. hi, I can see on the status bar that the browser is connecting to Google, but I get a parse error: “Fatal error: Call to undefined function: getlat() in ../wp-content/plugins/plug-n-play-google-map/yfgooglemapthumbs.php on line 350″ which line is the begining of if(): ” if (getLat() && getLon()) { $lat = getLat(); $long = getLon(); $title =(getthetitle()); $link = getpermalink(); $date = thedate(”,”,”,FALSE); $thumb = $yfquery->post->postname; echo “var point = new GLatLng(”.$lat.”, “.$long.”);\n”; echo “var marker = yfcreateMarker(point, \”".$title.”\”, \”".$link.”\”, \”".$date.”\”, \”".$thumb.”\”);\n”; echo “map.addOverlay(marker);\n\n”; }
    ” and my latitude is: “16.962890625″ from http://www.infosports.com/m/map.htm

    the other thing is the API key, do I need to include mydomain.pl/pageslug/ in the address or simply the domain itself? sorry for such a long post 80(

    jakzamieszkac / June 3rd, 2006
  15. jakzamieszkac: You haven’t installed the geoplugin have you? Install that first: http://dev.wp-plugins.org/wiki/GeoPlugin

    Dance / June 3rd, 2006
  16. Dance > multiple posts on the same location is something I haven’t implemented yet. Right now - as you’ve probably realised - it just shows the latest one.

    yongfook / June 3rd, 2006
  17. I installed geoplugin into ../wp-content/plugins directory, but it was invisible in the admin plugins tab, now when I created a separate directory ../wp-content/plugins/geoplugin it works properly. thanks

    jakzamieszkac / June 3rd, 2006
  18. that first link died for some reason here the working example, it would be rather easy to implement http://www.mapki.com/wiki/GetLonLat

    teamsand / June 8th, 2006
  19. […] Plugin Site: http://www.yongfook.com/2006/05/28/plug-n-play-google-map/ […]

    WordPressæ?’件中文站 » Blog Archive » Plug ‘n’ Play Google Map / June 8th, 2006
  20. […] Maps plugins: Geo and Plug n Play Google Map […]

    Immortality · This blog runs on… / June 9th, 2006
  21. I keep getting an error saying line 272 char 98 erro:Expect ‘)’ code 0

    newyorknarrative.com/story/map-your-story/

    It looks like the java script is leaving out a ) after Getlng my code map.setCenter(new GLatLng(40.7909394098518, (-73.96133422851562), 2, GSATELLITEMAP);

    This is the script I have in my file googlemap_thumbs file.

            //
            map.setCenter(new GLatLng(, ), , );
    

    Any idea how to fix this?

    Thanks

    david / June 9th, 2006
  22. I can’t seem to post my code so please see the site and see that either the long or lat is missing ) after it. May this be why my map isn’t showing up?

    david / June 9th, 2006
  23. Sorry for this post. I figured it out. I had an extra ( within the options page for the default long and lat boxes. This is embarasing. Feel free to take down the two comments I posted. Please :(

    Thanks D

    david / June 9th, 2006
  24. the script hasn’t forgotten an extra bracket - it looks like you’ve added one in. The line :

    map.setCenter(new GLatLng(40.7909394098518, (-73.96133422851562), 2, GSATELLITEMAP);

    has an extra bracket before the longitude - I would check the post of that point to make sure you C&Ped the lat/long correctly.

    yongfook / June 9th, 2006
  25. Thanks Yongfook,

    It was working for a while, but now internet is giving me an error when I go to the map-your-story page. Can you check it out?

    david / June 9th, 2006
  26. I think there might be a problem with because wysiwg in WP2.0 automatically changes it to

    david / June 9th, 2006
  27. Looks like that was the problem. I went into my database and hardcoded into the page. It works now.

    david / June 9th, 2006
  28. I too have just installed your latest version. Everything works great except I also cannot see the markers on the map. Post contains coordinates and the “Map View” button, which is bigger and improved, appears. Clicking brings you to the map with correct location, just no marker. Main map page also does not show markers for posts. I’m using Geo 1.9.1 and your latest version. You can check the test post below. Anyone have any ideas? Thanks.

    http://www.plattsburghlakecity.com/uncategorized/test/

    D Yu / June 9th, 2006
  29. D Yu - did you upgrade from an older version? Check your footer template - if it still has that old function from the previous incarnation of this plugin you might need to remove it.

    yongfook / June 9th, 2006
  30. Nope, it was a “clean” theme install. I didn’t add anything to the footer. My other blog has the same theme, but old version which is working great still. ( www.adirondackbasecamp.com ) You think it has something to do with the footer? How exactly is the footer involved with this anyway? In a very minimalist way, not having the marker is kind of cool. Sort of makes the map page useless though. Thanks for any insight.

    I tried the new version initially with the Abstrakt3c theme and had no success. The map was somehow shifting the footer and sidebar; I plan on investigating that later.

    D Yu / June 9th, 2006
  31. Hi my post above got worked over and didnt display so here another.

    I love this plu-in and find it can be very useful for wordpress travel blogs, I currently don’t use wordpress but am considering moving back just for this plug-in.I have some questions/feature requests:

    Would it be possible to eliminate the dependancy of the geo plug-in and just incorporare it into the google one. Laso the addition of a goe-locator by address in well deocumented on the google api site and would be nice. How hard would it be to incorporate a point-click map to get the co-ordinates, this is already supported in the apv2 but would need to be put into the wordpress backend. Why? because it easier to just click on the map to save the lat/long especially when your somewhere without an address. Possibility to streamline the image support, right now the naming thing is wierd, maybe have a specific field or link for adding what image shows in the infowindow. Sorry for this long thread but I’d love to see this become fully featured and can point you to code samples of the above code but Im not familair enough with WP to get this in.

    thanks

    teamsand / June 10th, 2006
  32. I have a problem. WP keeps changing the
    to

    I even hard coded it into my database but somehow wp is chaning it back. WP changed it back after working for a whole day. Strange.

    david / June 10th, 2006
  33. the div tag is changing div id=”yfmap” /div (add brackets) to div id=”yfmap”/ (again add brackets) I can’t display code in this post

    david / June 10th, 2006
  34. […] Since the announcement of Version 2, I’ve been looking for a replacement for what I’ve been currently using. My initial choice was the Geo-mashup Plugin by cyberhobo, but for some reason settled on YongFook’s Instant Google Map Plugin. Worked as advertised and wasn’t difficult to implement. I’ve been getting another blog ready to launch and tried the updated Plug ‘n’ Play Google Map. Again installation was a breeze and even easier than before, but individual post markers aren’t showing up in the main map. Hmmm, I’m working on that. In the meantime, I’ve discovered Ditu (”map” in Chinese). Call me a dork (many do) but what a thrilling find. You can currently see that map also installed. Best thing about Ditu is the ability to tag, and eventual integration (according to the author) with Ultimate Tag Warrior. Very Web 2.0 and full of potential. […]

    Adirondack Base Camp » » Adirondack Google Maps / June 10th, 2006
  35. I faced a problem with Google Map API IE. After loading map IE popped up a message “Operation Aborted”. After searching the roots of the problem I have found out that I am not alone. Here http://www.bogglethemind.com/index.php?itemid=6 is an explanation and a fix.

    yongfook: if you consider it useful you may include the fix in you plug-in to save time of users hunting this problem. As you can see the fix if very simple. What do you think?

    Aliaksei / June 13th, 2006
  36. i’ve upgraded the old plugin version to the newer but it doesnt work. I’va also generated a new API key but i dont works i put wp_footer code in the footer tha was a littel bit different from your examlle (it doesnt shows tags but only some text amonf ‘cuse in the connections theme i use the foter is called in the index.php page and alla other templates with a function.

    sorry but i’m not a developer so i don’ know if my langugage is formally correct.

    i really appreciate yuor plugin and asked my fried to hack it adding a piece of string taken from the_excerpt (tag) . If he succeed in doingn this i’ll send you the code.

    thank oyu very much fot your help

    Fabio / June 13th, 2006
  37. Thanx alot for the plugin .How can add static info in the bubble .i like to add small text under date or substitute with the text

    somebody help !!!!1

    KRIS / June 15th, 2006
  38. Your plugin isn’t compatible with K2. The buttons show up, but I don’t see a map (well, there is a map, but it’s completely grey and without markers). When I switch themes (to Kubrick), it works fine: I get a nice map and markers too. Could you please make it compatible to K2? It’s an outstanding plugin :-)

    Jaap / June 15th, 2006
  39. I sent you an email with the login details of a test space for this plugin & K2. Something else: could it be possible to allow markers of future posts to be visible on the map? I use Event Calendar to handle posts with future dates as upcoming events, and I’d like to use this google maps plugin to show the location of each event on a roadmap. Is this perhaps possible?

    Jaap / June 16th, 2006
  40. One more thing: there is an error in the link to this page in the plugins section of the admin panel. In the url, it says 2005 instead of 2006.

    Jaap / June 17th, 2006
  41. Hi, thanks again for the plugin. It’s great and it works really well now. I have one request. Can you make it so that if the location is used twice two pins show up. For example I set a preset location of Brooklyn but only one post shows up if this location is used twice. Maybe it is something I can change on my own if you give me a tip. Thanks.

    david / June 23rd, 2006
  42. Great it works really fine. What I’m now looking for is a way to post by mail a list of gps coordinates so I get it on the map. I’m building this website for some friedns who are going to trave arounf the world by sailboat and the only have one sat. phone. They will keep a dairy of everything and will mail it by sat. phone to the Wordpress blog. So it must be all textbase and small.

    smartie / June 26th, 2006
  43. I have the same problem WP 2.0, that stupid Geo.php srews everyting up. Lets hope that in some update you can fix this so we won’t need GEO anymore!

    Roy / June 30th, 2006
  44. Finaly found a fixed version of GEO. BUT: Now it’s all working but I’m getting an internet explorer error: Internet explorer can not open http:// .. operation aborted. The page opens, I can see that everything’s working until that error appears.. Anywone??

    Roy / July 1st, 2006
  45. Yeah hi its me againt, not just complaining but also giving some support: I fexed my problems, so to avoid future frustrations I’ll explain something now: You can Download and install GEO paste the code in a text editor, and be aware, is has 850 lines not 852! (delete the 2 blank lines at the bottom). Download and install the Google plugin.. Be aware when you create a page, and enter the HTML code that there need to be “Paragraph” tags. Your code at least needs to look like this just the tag is not enough to let it work. This is a BUG in internet explorer, when creating a “DIV” tag in a “TABLE” an error wil appear. Oke friends good luck, great plugin finaly its working now!

    Roy / July 1st, 2006
  46. Hi,

    Thanks for this nice plugin.

    Just some info : I had a problem (no map displayed, no API scripts loaded, etc). In fact it was a problem with the Map Page Slug. As I have URL like “www.mydomain.com/?pageid=34″ I had to use “34″ as page slug (and not ?pageid=34 nor anything else). Now I works well.

    Maybe you can specify that in your doc.

    thanks. Jerome

    Jerome / July 4th, 2006
  47. […] (plugins used: Geo Plugin and yongfook’s Plug ‘n’ Play Google Map) […]

    gweeb | Blog Archive | hk flats / July 6th, 2006
  48. Hi, i’ve a problem with Internet Explorer. It show a popup window with an error messege. How can i fix this ? Can someone help me ?

    this is the url: http://www.reggionightnday.it/info/

    thanks in advance

    Anonymous / July 20th, 2006
  49. […] I have just added a new section called map which locates on a worldmap (googlemap) any post which refers to a specific location in the world. You can scroll around and see where lewsim has been, as I can include coordinates with any post automatically! It should be really useful for a blog that is mainly focused on Architecture like this one, I’m not sure why a few more architecture bloggers haven’t taken it up as yet (pingmag does this), so this may be a small first. Anyway there are a few posts there already and I will be going through my archives adding to this over the next couple of weeks. Asides from being able to graphically show and locate buildings or locations I talk about which will be useful for anyone who wants to visit these places, it is also a good way of adding to a purely date based archive system to one in which relevant posts always stay fresh and the posts of a blog can if you like unfold in a kind of journey like a tour round a new place or of the flâneur walking the city. Definitely a new way to consume a blog. Thanks to yongfook for his plug-n-play google map plugin and geo plugin by owen winkler which allow me to do this. Note I have been recently uploading kmz files for located posts but will stop doing this for the moment (It may return later in a slightly different form) as this method I like better. […]

    lewism | lewism worldmap / July 27th, 2006
  50. Hi,

    Plugin is great, I’ve also got that nagging error message in IE.

    Im not much of a programmer though!

    http://www.ryangrant.net/archives/internet-explorer-cannot-open-the-internet-site-operation-aborted-google-map-api/

    Has anyone implimented the above fix? Willing to share?!

    John / July 28th, 2006
  51. […] Op Voxintro.nl (nog niet geopend) komt een danig uit de kluiten gewassen weblog met leuke dingen als de integratie van audio, video en afbeeldingen van Flickr. Een leuk extraatje is de studentenagenda met Google Maps-integratie (dankzij deze Wordpress-plugin). Werkt eenvoudig: wanneer een agenda-item (zoals een studentenfeest) wordt geplaatst door een redacteur, kan de bijbehorende lokatie worden gekozen uit een rijtje voorgeprogrammeerde lokaties, of handmatig worden ingevuld met behulp van de Free Geocoder (de functie werkt met reguliere hoogte- en breedtecoördinaten). De websitebezoeker kan op de pagina van een agenda-item klikken op een icoontje dat hem naar een geïntegreerde Google Maps-kaartje voert. Even inzoomen, en je ziet waar je moet zijn. Zie ook onderstaande video; er is aan het begin een stukje geluid weggevallen, maar dat mag de pret niet drukken. Watch Now:      Podcast Video [01:53m]: Play Now | Play in Popup | Download document.getElementById(’podPressPlayerSpace204labelvideoPlayer2040′).innerHTML=’Hide Player’; document.getElementById(’podPressPlayerSpace204′).title = ‘videoPlayer2040′; Categorie: Interessant   |   Tags: No Tags. […]

    Preview: Vox-introductieweblog met Google Maps at Dit is Berry / July 29th, 2006
  52. Hi! Is there a way to atach lat/long if i send my entry via E-mail?

    thx Michael

    Michael / July 29th, 2006
  53. […] Ker sem naÅ¡el tudi dva plugina, ki znata položaje zapisov prikazovati na podlagi Geo Pluginovih oznak, sem Å¡el Å¡e enkrat pogledat, Ä?e morebiti obstaja kaka popravljena razliÄ?ica slednjega (kajpada sem to storil tudi takoj, ko so se zaÄ?ele težave, ampak sem takrat zakljuÄ?il, da ne). No, k sreÄ?i se je izkazalo, da res obstaja (in da sem prviÄ? pogledal slabo), tako da sem si jo namestil, poleg nje pa Å¡e Plug ‘n’ Play Google Map (drugi tovrsti plugin, Geo Mashup, mi je javljal nekakÅ¡no napako). Rezultat je tale zemljevid. […]

    Krofovanje » Blog Archive » WordPress 2.0.4 in geografski položaj / July 30th, 2006
  54. […] Además, aprovechando el paseo por la web de Wordpress me he mirado los plugins que tenían y he encontrado uno muy interesante: Plug ‘n’ Play Google Map […]

    Nuevo Look! | ( parentesis ) / July 31st, 2006
  55. Hi! small problem: can connect google but the map ist just grey ;-)

    any ideas?

    cu Michael

    Michael / July 31st, 2006
  56. hi, can your plugin be modified to work with a website that isn’t wordpress based ? I can’t quite get google maps2 to work on my directory listings site here - http://www.awarenessheals.com/listman/listings/l0001.html - which probably uses a different method than your plugin does. I’m not THAT savvy with it all, but if you maybe have a suggestion ( apart from making my entire 60 page site wordpress !! ) I’d really appreciate it. Thanks in advance, paul

    paul / August 1st, 2006
  57. hi, before all, nice work man! I have a question: How can i add markers to my map, i want to define a travel route for an expedition! thanks for your help

    alex / August 2nd, 2006
  58. Is there any way to make it so that users can enter an address and have Google convert that to latitude and longitude, instead of making them look it up via an external service? That would be a great feature to this otherwise amazing plugin.

    Robert / August 3rd, 2006
  59. Ok, I fixed the problem above by adding in an AJAX lookup to Google’s geocoding service.

    However, I’m stumped as to how to make an easy thumbnail uploading tool. I want to make it as easy as possible for my end users (I’m setting this blog up for a client). Any ideas?

    Robert / August 4th, 2006
  60. […] http://www.yongfook.com/2006/05/28/plug-n-play-google-map/ […]

    Volkers virtuelle Garage » Blog Archive » Google Maps / August 4th, 2006
  61. Hi, I’ve been playing around with your plugin for two days now. Today I got it working after I found out I didn’t understand how it works :-)

    I expected a map under my posts and wandered why there wasn’t one and my map page was at maximum zoom on my home without anything linked to it.

    Other than you, I put the “Map View” button in post.php just under the comment and edit buttons.

    Nice work, thank you very much for your plugin.

    Volker

    Volker / August 5th, 2006
  62. Thanks for the plugin! I messed with it last year at some point (or at least several months ago) and remember trying to get it to display something other than post title and date in the map bubble… Now I’m trying again, and not having much luck! I’ve tried replacing thedate with theexcerpt or getpostmeta, but I must be missing something… Any ideas on how to include something custom? (I’m wanting to ditch the date and instead show the address…)

    Rich Schmidt / August 7th, 2006
  63. Hrm… As of right now, I’m going with the GeoMashup plugin. I was able to hack it more easily…

    Rich Schmidt / August 7th, 2006
  64. I was having the same problem as others with IE - it would load the page- then abort. Roy had the solution above- but I couldn’t read it- since the code was blanked out- so I’m goint to try to spell it out for people- Put in the link that Yong Fook suggests- then follow it with a paragraph return- by using the HTML code view in your write page view- so you put in a “” and it should work- good luck! IE sucks.

    David Esrati / August 9th, 2006
  65. hi, thanks for all the comments here they all helped in some way while trying to get this to work. It’s a fasntastic Plugin but I still have a couple of issues with it. Has Wordpress been updated since this was first released as I don’t seem to have a Template ‘Single Post’…

    (Navigate to Presentation > Theme Editor. On the right hand side, click on Single Post.)

    …I keep getting the IE error when loading the page (although it works fine in FF) also I haven’t got the tags in the footer template as it’s called into the Main template at the bottom.

    I’m a bit confused now and think thewre may have been something updated while I was away…

    Cheers.

    ~ great work YongFook - Respect. :]=

    Virtualburn / August 10th, 2006
  66. Hi,

    for using the Thumbs option - I dont know how - I tried different “Thumbnail Folder URL”s. How I have to define it correctly? If my website is www.ollif.de and I create an “img” folder directly in the root - what would be the right definition for the “Thumbnail Folder URL”? I tried a lot of varieties but it doesn’t run.

    thx OlliF

    OlliF / August 12th, 2006
  67. […] I have absolutely no use for this rather cool plugin. But, there is a google maps api tutorial I have been thinking about doing for a while …. so maybe… […]

    midfield maestro » Google Map / Wordpress hack / August 13th, 2006
  68. Thanks for a great plugin.

    One Q though for it, does the plugin not support Zoom level when entered into the browser line, i.e.

    http://raftur.org/googlemaps/?lat=-2.811371193331128&long=40.078125&zoom=1

    Dadi / August 14th, 2006
  69. Hey folks, unfortunately I have some problems with the plugin. Uploaded, activated, everthing seemed to be ok, but when I insert

    into a page and save it, it still is not converted into a map. Still appears as text… http://orangeman.or.ohost.de/?page_id=52 Can anybody give me a hint?? THX orange

    orange / August 17th, 2006
  70. […] Noch ein weiteres coole Google Map Plugin bietet yongfook.com auf seiner Website. Ich habs in das Blog integriert und es funktioniert einwandfrei. Auf meiner Google Map werden nun die Standorte der einzelnen Posts dargestell. Diese Erweiterung ist sehr einfach zu installieren und benötigt keine Anpassung im Code. […]

    Webmeister Blog » Blog Archive » Google Map Plugin / August 18th, 2006
  71. Yeah I’m getting the same issue as orange..

    Running WP 2.0.4

    Bjorn / August 22nd, 2006
  72. Hey Guys,

    I’m having a serious problem figuring out the damn IE bug on this one. I’ve read almost everything I can find online and am still unable to remove the ‘Page Aborted’ error.

    The 2 posts on this page that mention fixes are hard to decipher, and I tried every variable I could think of, but to no avail.

    http://www.thefreshscent.com/thefreshscent-google-maps

    That is the URL, can someone figure out why in the hell IE is hating on it so much?

    Thanks, Alex

    Alex / August 22nd, 2006
  73. Excellent plugin.

    I’m having the same problem with markers that a couple of other people have had. Have you been able to solve this yet?

    Thanks for the hard work. Jake

    Jake / August 23rd, 2006
  74. […] ì?¼ë³¸ 웹진ì?´ë‹¤. ì¢?ê³  길어서 중간ì—?서 잘ë?¼ëƒˆë‹¤. 최근올ë?¼ì˜¨ê¸€ê³¼ 검색결과를 보여주는 화면 구글맵과 ì—°ë?™ ì?´ê²ƒì?€ WordPress 플러그ì?¸ìœ¼ë¡œ 쉽게 설치할 수 있다. ë°°í?¬ì‚¬ì?´íЏ, 플러그ì?¸ 페ì?´ì§€ 바로가기 ìš´ì˜?ìž?ì?˜ 프로ì ?트 앨범ì?„ 통해서 Pingmag 를 찾아올 수ë?„ 있다. […]

    my blog / August 26th, 2006
  75. […] Credits to: http://www.yongfook.com/2006/05/28/plug-n-play-google-map […]

    MEDIATRICKS - Interactive Solutions For An Internet World » First WordPress Plugin Ready To Go / August 28th, 2006
  76. Hi, great plugin! Maybe someone wants a text link to the map instead of the button:

    function yfmaplink($linktext=”Show Map”,$before=”",$after=”") { if (getLon() && getLat()) { echo $before.’‘.$linktext.’‘.$after; } }

    Just copy it to the plugin code.

    Haschek / September 1st, 2006
  77. Yongfook, it is also very important to have a wphead hook in your template. Otherwise this PlugIn doesn’t work. I just messed few hours with it trying to get it to work. I didn’t have a wpfooter or wphead tag in my template. I did as you said, added the wpfooter hook, but it still wouldn’t work. But luckily I found out. :-) Please mention it in your installation guide. Thanks for the Plugin!

    Eugê / September 8th, 2006
  78. I assume that most people have wp_head in their template otherwise a great deal of other plugins wouldn’t work - not just my one.

    yongfook / September 8th, 2006
  79. Yes, I hope so. :-) But surprisingly there is currently only one other plugin using wp_head on my site, only some CSS. So I didn’t notice before. And as this info is already in the comments you don’t have to add it anymore. Thank you again for this nifty plugin! Eugê! :-)

    Eugê / September 8th, 2006
  80. so i installed and everything works except that there is not map graphics.. my markers are there, but the map is just grey.. any ideas?

    seems like the API key, which i have tried 2 different ones.

    dboz / September 12th, 2006
  81. GREAT PLUGIN!!! Lovin’it.

    Joost / September 13th, 2006
  82. Hi, tried to install your plugin. But I cant get the geo.php to work in WP 2.0.4 :-(

    Remco / September 14th, 2006
  83. I have an odd problem… The map area shows up fine, but no actual map shows up. Just grey. It responds to all the clicks, but I never get any graphics.

    Any suggestions? http://walkingthepond.com/about/map/ is the URL.

    DStaal / September 20th, 2006
  84. DStaal> you have got it working, how did you do that? I had the same problem.

    greetings,

    Impulse

    impulse / October 6th, 2006
  85. Excellent plug-in. It work perfectly ok in Opera and Firefox. Yet, it seems that it has a problem in IE and the map never loads up.

    Does anyone has solution to fix that?

    Andy / October 6th, 2006
  86. I found a similar plug-in for wordpress mention similar issue http://www.macdiggs.com/index.php/2006/09/08/inline-google-maps-for-wordpress/

    looks very likely a IE -related issue

    Andy / October 6th, 2006
  87. I’m nbow using a theme that has the ’singlepost.php’ template and also has the reference in the footer.php… but

    I still have the error popping up when viewing in IE. This really needs to be sorted as 70% of visitors are using IE to view the site.

    Has anybody solved this issue yet?

    Virtualburn / October 6th, 2006
  88. The plugin is great. I have no idea on Java script. I read all your threads, but don’t know how to fix the IE problem. Can anyone teach me in details?

    @PICO@ / October 7th, 2006
  89. Just a couple of pointers that I came across that may help somebody out when installing this plugin.

    1.

      The post slug and the reference in the options have to be ‘exactly' the same. ie. world-map and World-map would cause the map not to display (case sensitive)
    

    2.

      The thumbnails have to be seperated by an underscore not a dash to display.
      post slug = my-images
      image name = my_images
    

    Check out TIm’s fix from www.mediatrix.com/blog/ for the IE issue, works like a charm.

    ~D

    Virtualburn / October 15th, 2006
  90. YF can you edit the above url for me please should http://www.mediatricks.biz/blog/google-map/

    This is for the IE error that I struggled with for ages, would be a good include for the next update.

    Thanks.

    Virtualburn / October 15th, 2006
  91. […] Plug-n-Play Google Map  […]

    flugsand » Blog Archive » Google Maps Plugin / October 19th, 2006
  92. i am editing my site in firefox on a mac, when i set it up i was able to set up a post no problem, but i cant add any more post now, the map link is also not showing up, does anyone know what i am doing wrong?

    courtland / October 30th, 2006
  93. Hi Yongfook,

    Great plugin, i’ve only got one problem, I think it might have something to do with my theme (visteredlittle 1.6) but If i check the map and click on the marker the textbox appears but the right side of the box is moved down a bit..

    You can check it out here: http://www.h3nk.nl/map-page/?lat=52.3725&long=4.8922

    Any idea to what it could be? or how i can solve the problem?

    Gr Hank

    Hank / November 10th, 2006
  94. […] Check it out! I’ve just updated my map page with the new plugin, and it’s all pretty and nice to use and stuff! God Bless the new version of WordPress and Yongfook for providing welcome distraction during exams! […]

    Will’s View » Blog Archive » The Little Things / November 11th, 2006
  95. I’ve been using this plugin for over a year and no problems… then after upgrading to WP 2.0.4 and then to 2.0.5 - the plugin doesn’t seem to work. The Google Map shows, but no markers. Any clues?

    Thanks, Tamra

    Dragonfly / December 6th, 2006
  96. For some reason, the Google map outline shows up, but there is no map inside it. I can’t figure it out. Here is what its doing: http://blog.rambledeep.com/where-i-be

    ryan / December 9th, 2006
  97. […] Verwendet wurde das Plug ‘n’ Play Google Map Plugin von Yongfook. Gratulation an den Autor. […]

    gros.de » Blog Archive » Google Maps Integration / December 14th, 2006
  98. Hi,

    I added your Google Plug-in to my Unsleepable template. It works fine in IE6 but in FireFox and IE7 I can see the elements of the map, but the actual map is all grey. Is this a known bug? Do you have a fix?

    N

    Nathan / December 23rd, 2006
  99. Hi,

    I just did an install of your plugin and there are no markers showing for me either. Fresh install of plugin on WP2.0.5. Everything else works - it takes me to the right spot on the map, but no markers.

    Any solution to this as I’d really love to make full use of it.

    Thanks.

    Graeme / December 24th, 2006
  100. Sorry, meant to say - example at http://www.bytor.co.uk/2006/12/08/my-first-foray-into-latex/

    I’ve also turned on thumbnails but can’t tell if I’ve done it right without markers.

    Thanks.

    Graeme / December 24th, 2006
  101. Just got it fixed. Deactivated the “Adhesive” plugin and bang, it works properly now. Looks like a clash of Java or something.

    Graeme / December 24th, 2006
  102. Hi, I am running WP2.0.4, installed the plug-in but just have an empty maps page… also: where can I insert coordinates in posts? There is no special field when I write a post. Many thanks for your help!

    Michiel / December 30th, 2006
  103. Found it: need to read better… it works WITH the geo plugin: http://dev.wp-plugins.org/wiki/GeoPlugin after I had installed this one all works really great!!!!

    Michiel / December 31st, 2006
  104. […] I have installed the Plug-n-play-google-map plugin on my site. I can now provide links on a fancy Google Map to relevant places. I’m off to Wales on Thursday so I’ll use that as a test. […]

    The Diary » Blog Archive » Test post with geo info / January 4th, 2007
  105. […] Dank dem tollen Plug-n-play-google-map-Plugin haben wir auf unserer Seite ganz neue eine […]

    Yves Straten » Blog Archive » Neues auf der Seite / January 5th, 2007
  106. Hehehe…..the IE bug ‘error:page aborted’ is so easy to fix - I was kicking myself after a friend showed me ;-)

    In the ‘yfgooglemapthumbs.php’ file edit the part

            //
            // you can check out www.roamingtheoceans.com for the map inculded on the ‘Where Are We?’ page…
    

    …Thank You Yongfook for this amazing plugin!!

    Andy

    Andy / January 16th, 2007
  107. Hmm… doesn’t look like my last post worked - I’ll try again to include the code:

    In ‘yfgooglemapthumbs.php’ Change the bit that says something like

    script type ‘equals’ ” text / javascript ”

    to:

    script type ‘equals’ ” text / javascript ” defer=”true”

    ie add the defer=”true” bit.

    enjoy

    Andy / January 16th, 2007
  108. […] Untuk peta nya silahkan lihat dengan mengklik button di bawah ini , credit to http://www.yongfook.com/2006/05/28/plug-n-play-google-map/ […]

    NgeBlog » Rumah saya di google earth / January 24th, 2007
  109. […] Plug nPlay Google Maps - Fügt eine Google Maps auf einer Wordpress Seite ein in der Beiträge die Breiten- und Längenangabe enthalten dargestellt werden. Benötigt zusätzlich das GeoPlugin. Ditu Google Maps Plugin - Hier können geokodierte Beiträge in einer Google Maps dargestellt und mit Stichworten (Tags) kategorisiert werden. WPhoogle - Google Maps mit Markern und Info-Fenster in einen Beitrag einfügen. ItHappenedHere - Geographische Infos einem Beitrag hinzufügen und in einer kleinen Google Maps auf der Startseite oder in einem Beitrag anzeigen. bsuite_geocode - Geocodes und Geotags generieren um Inhalte in einem Mapping Service anzeigen zu lassen. Geo Mashup - Wordpress Beiträge in einer Google Maps lokalisieren. Im Infofenster wird der Beitragsanreisser dargestellt und ein Link zum kompletten Beitrag. Benötigt ebenfalls das GeoPlugin. […]

    ogeeBloggin’ » Blog Archive » Google Maps Mashups für Wordpress / January 27th, 2007
  110. Hi, is this plug-in compatible with WordPress 2.1?

    Michiel / January 28th, 2007
  111. Great plug-in but I am confused about the automagic maplink.

    You say ‘any posts that have latitude and longitude will now show a button that when pressed, takes you to the relevant geographic location on your Google Map page’

    But in what context do I add latitude and longitude to the post?

    Many thanks Karl

    Karl Bedingfield / January 30th, 2007
  112. I also have the ‘no red marker’ showing also. Anyone know why that might be? Here is a test url: http://www.elyonline.co.uk/ely-city-map/?lat=52.39874980692933&long=0.259128212928772

    I also notice that it does not zoom in closer as I set up in my options for any automagic maplinks.

    Any help greatly appreciated.

    Karl

    Karl Bedingfield / January 30th, 2007
  113. Many thanks for this nice plugin.

    Since upgrading to WP 2.1 if have the same problem like Karl. There is no marker. :(

    Torsten / January 31st, 2007
  114. Hi, since WP2.1 my map is gone alltogether…. I reinstalled the plug-in (removing all entries in the databases) but did not help…. It is such a great plugin… would really like to get it working:-) Opened as well an entry on wordpress.org/support: http://wordpress.org/support/topic/103042?replies=1

    Michiel / January 31st, 2007
  115. Any new info on fixing these bugs? I’d love to be able to run this plugin!

    brad / January 31st, 2007
  116. HI all, actually this plug-in works great under wordpress 2.1: check your themes very carefully…. I had the code on wrong places. Wordpress 2.0.7 did not care about this but wordpress 2.1 does… it all works fine now.

    Michiel / February 4th, 2007
  117. I’m also having the problem with my map dissapearing after upgrading to 2.1 I’m using geo 1.9.1 and your plugin, everything was working great till the upgrade. Now all I get is a blank page. I tried creating a new one, but the map also doesn’t show up there. Is there anything that I can do to fix it?

    Adan / February 6th, 2007
  118. HeiHei, great plugin, lovin it!! …is there a possibility to connect a flag to links instead of posts?

    Aexl / February 9th, 2007
  119. Hi all,

    I have been using the plugin for about two month. The ‘Automatic Map Link Button’ never worked with my Theme (Regulus 2.2) bu the map and also the thumbs worked without any problem.

    When I upgraded to WP 2.1 the plug-in first worked without problems. After I disabled the plug-in one time and enabled it again only a empty frame is showing instead of the map.

    As I can see Michiel fixed the problem. Congratualtions! I am sorry, but I still have problems.

    Has anyone a tipp for me?

    Many thanks

    Marcus

    Marcus / February 11th, 2007
  120. […] In the process of recoding the site I’m taking the time to update the plugins. One of them is Yongfook’s most excellent Plug ‘n’ Play Google Map. He’s made a number of improvements that, if I weren’t so bloody lazy, I would implement. One that I did use, though, is that when an article has a link on the Cartography page you’ll see a nifty badge (like in the image) that will take you to the map and show you where I’m talking about (easiest spot to find it right now is the San Francisco category). […]

    douglas.nerad » Maps for the Blog / February 13th, 2007
  121. http://dev.wp-plugins.org/wiki/GeoPlugin is broken ! where I can download this plugin ?

    carmine / February 14th, 2007
  122. I installed the geo plugin and then this plugin on a clean 2.1 install.

    When i go to write a post, the code from the visual editor is broken and no map shown. If i deactivate the geo plugin, the editor loads fine, but there’s no map to mark a place.

    How to fix this? i downloaded the latest geo plugin from the link provided.

    tricky / February 26th, 2007
  123. Firstly, I like to say this is a great plugin.

    I do have a few questions regarding the infowindow.

    1) How can I change the content in the bubble of the marker?

    2) If I do not wish to have the title to be hyperlinked, what do i need to do?

    3) How do I remove the date and replace it with other text?

    I appreciate if anyone can provide some insights.

    Thanks!

    Henry

    Henry / February 27th, 2007
  124. Nice and easy to use. Just one suggestion that would make it stand out from ALL other map plugins for wordpress.

    I want to add locations that I dont have posts for. Cant there be a simple possibility to add coordinates for new markers without having any posts for them? No plugin seems to be able to do that……

    Denis / March 8th, 2007

Most Recent Posts May Archive »