Google Maps for Wordpress

Posted by Aaron D. Campbell | Monday, April 14th, 2008
, , ,

Warning: This plugin was affected by Trac ticket 6444, which was fixed in WordPress 2.5.1, so get 2.5.1!

The Google Maps for WordPress plugin allows you to easily insert Google maps into your blog, making use of the new shortCode system in WordPress 2.5. The maps can be configured to offer directions to or from the location, show or hide the zoom/pan controls, show/hide map type, activate zoom using mouse wheel, and more.

It requires a Google Maps API key, and then gives you a nice interface near your editor to help you build the map and send it to the editor.

Related Posts:

169 Responses to “Google Maps for Wordpress”

  1. Thies says:

    Helo,

    my wordpress installation throws an exception:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /ampelsprinter/mainsite/wordpress/wp-content/plugins/google-maps-for-wordpress/wp-google-maps.php on line 49

    Can you help?

    Regards

    Thies

  2. It looks like you don’t have PHP5, which is a requirement. I was pretty sure it was documented in the readme.txt, plugin description, etc, but it was not. I apologize for that. The documentation has been updated in the repository on wordpress.org, and will be available in about 15 minutes. Unfortunately, as you can see from the text under my navigation links on the left of this site, everything I write now requires PHP 5.2+ (some will work with PHP5+, but 5.2 is guaranteed).

    • strike says:

      is there anyway I can user under php5.2?
      I need this plugin desperately.
      can you help?

      • This plugin should work on PHP 5+ in most cases (on most server configurations), but PHP 5.2 is strongly recommended. If you are not using at least PHP 5, please upgrade or find a new host. Most hosts offer PHP 5, you just have to ask them to enable it for you.

  3. Soleh says:

    Greetings,

    Thank you for to writing this wonderful plugin. I love to use it but would like to ask you one thing. The map can be generated without ‘Balloon (Map name and information)’? It would be nice if I can make the map ’simple’ look as well as a single ‘Pointer’. Could you help me?

    Sincerely,

    Soleh

  4. It’s certainly possible, I’ve added it to my TODO list. Keep an eye on new releases!

  5. I’ve installed your Google Maps for WordPress plugin and have gotten an API key, but when I click to insert into editor, nothing happens. Do you have any idea what the problem could be? I’m using PHP5 and Wordpress 2.5.

  6. Bowin: The “insert into editor” functionality uses JavaScript, the same JavaScipt that the media manager uses (with some tweaks). Can you see if you are getting any JavaScript errors?

  7. alex says:

    Will Google Maps for Wordpress be planned to support Wordpress MU? If so, how long will it take? Thank you very much in advance!

  8. Thilo says:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in … error on install

    also with php 5.2.x !

  9. Alex: There are currently no plans for that, but I’ve added it to the todo list and will try to get to it when I can.

    Thilo: Are you absolutely sure that you are using PHP 5.2.x? That error comes from PHP4 trying to run PHP5 code that uses the keywords public, protected or private for visibility in it’s classes.

  10. john says:

    This is great, but I am getting a gray map box and the following error:

    “..error polling the google servers…”

    can you help?

  11. john says:

    It seems to be adding [amp;] (not including the brackets) to everything after an & character.

  12. As noted at the top of this page (and in the readme, setting the minimum WP version at 2.5.1), this plugin is dependent on a support ticket. If you follow the link at the top of the post, there are patches that can be applied to WordPress to fix it. The problems is that the Google code is run through WordPress’s formatting process, and should be exempt from it.

  13. Jared says:

    Are there any screen shots out there that I can check out? This sounds like a perfect addition to a site I’m building, but I’d like to learn a little more about it if possible.

  14. john says:

    Thanks, Aaron. Basically, for Joe WP Peasant like me, it sounds like the plugin is not quite ready for prime time? I am uncertain how to implement the patch you mention (nor am I certain really which patch you mean), and I am not sure how to proceed.

    The interesting thing to me is the very first test map I made with the plugin, I indeed saw the map in the post, although it was only a Preview. Then, when I published, I only see the gray box and of course everytime since then it has not worked.

    Any ideas before I cut you loose to do your work? I appreciate very much your response.

  15. My suggestion would be that 2.5.1 will be released soon, and the plugin will operate correctly with that version. The patches for that particular ticket are constantly changing, as we work out what the best solution is. However, whatever solution is chosen, it will definitely fix the problem for 2.5.1

  16. john says:

    perfect — I’ll wait. Thanks! It’s just what I’m looking for.

  17. Matt says:

    Just as an FYI, it’s not working for me either in my tests – I hit “send to editor” and nothing happens.

  18. Alex says:

    Aaron, thank you for your kindly reply. It’s great to know that is on your todo list. I will check this site periodically. Please let us know once you make a plan about it.

  19. Schulte says:

    Running 2.6-bleeding. As Matt indicated, nothing happened. Looking quickly at trac ticket 6444, it doesn’t look like it got rolled into 2.5.1 (which just got announced).

    Console produces only one error.

    wpGMapsAdmin is not defined.

    Bummer, was hoping to see this thing in action.

  20. Schulte: Last minute they applied a different patch than I had expected, but it did make it into 2.5.1. I just checked in version 1.0.1 to the wordpress.org repository, so it should be available in about 15 minutes. Please check it out and let me know.

    Make sure that there is one php file, and two JS files in the zip when you get it.

  21. Schulte says:

    Serves me right for being antsy. 1.0.1 works. Great work Aaron.

  22. Thank you, and I’m glad to hear it works for you.

  23. I just got an update from Bowin as well, looks like everything is working for him. For those that had a similar problem:

    Bowin Tichenor
    my problem was that I was still using WP 2.5. Once I upgraded that and then upgraded your plugin everything worked like a charm. Thanks for your work on this.

  24. Diwaker says:

    Hey, the plugin looks great. Unfortunately, it doesn’t run on my server. I get:
    Fatal error: Call to undefined function json_encode() in /users/home/diwaker/web/public/wedding/wp-content/plugins/google-maps-for-wordpress/wp-google-maps.php on line 344

    It seems this function is only available in PHP 5.2 or greater, and my server has 5.11. Is there any way around this?

    Thanks!

  25. Diwaker:
    Thank you for pointing out the problem. Something similar happened over on my Twitter Widget for WordPress with json_decode. I have taken and modified the ZendFramework json_encode alternative, and packaged it as an alternative. If json_encode does not exist, it should fall back to the other. The update is in version 1.0.2, which just went live on the repository.

  26. john says:

    Ok I’ve still got trouble. Here’s what I have done:

    I deleted the previous install of the maps plugin from the database.
    I am running: PHP v5.2x
    I upgraded to Wordpress 2.5.1
    I downloaded and installed the newest version of the plugin: v 1.0.2
    I activated the plugin
    I obtained and validated a Google Maps key
    I correctly (I think) entered map data into the Write Post, including a link to the map as provided by the googlemaps link function.
    I hit Save and Publish

    and still I get an error polling the google servers.

    Interestingly (but perhaps not surprisingly) I also have an error in the Write page, in that I cannot switch out of HTML Mode, even though it shows I am supposed to be in Visual Mode.

    Any thoughts at this point?

    Thanks!

  27. max says:

    hi,
    i installed everything, have wp 2.5.1, php 5.2.x, can send to the editor, but when i call a page with a google-map i get the following error:

    this.map[mapNum].mapInfo.get is not a function
    [Break on this error] var address = this.map[mapNum]['mapInfo'].get(’address’);
    wp-google-maps.js… (line 69)

    you can see it here:
    http://wissenbelastet.com/2007/05/03/crupi/
    (dont get confused becuase the page is german :) )

    what i am doing wrong?

    thanks

  28. Eastofwest says:

    Dear Aaron, first off, great plugin, makes inserting Google Maps a snap.

    I upgraded my Wordpress to 2.5.1. before installing the plug-in, and everything worked beautifully right out of the box.

    My only challenge and the reason I won’t be able to use it for my site, is that I live in Kota Kinabalu, Sabah. Where? My point exactly. The streets here hardy have addresses, certainly none which are recognised by Google Maps.

    Any possibility to make your plug-in work with Geocodes?

  29. Diwaker says:

    Hi Aaron,

    I actually found the json extension on my host, I just had to enable it. So
    that problem has gone away. However, my maps are not displaying correctly and
    I’m not sure what the problem is. For instance, if you go to:
    http://wedding.floatingsun.net/travel/

    you’ll see a blank map. I’ve added a debug line to print the co-ordinates, and
    those seem to be correct. In fact, clicking on the “Powered by Google” image
    on the bottom right of the map opens up the correct location in Google Maps.
    For some reason it is not showing up on the web page. If you have any ideas
    as to where the problem might be, do let me know.

    Thanks,
    Diwaker

  30. Ryan says:

    Aaron,

    With this plugin can there be more than one pinpoint? Also, is there a way to add more content to the bubble, like a link or images?

    Great plugin!

    Thanks,
    -Ryan

  31. Stefan says:

    Aaron,

    Is it possible to pre-select the initial “zoom”factor of the map yourself.?

    Thanks,
    Stefan.

  32. [LuY] says:

    I have an error trying to “pool” the Google servers. I think the error is related with this.

    When I paste the URL look like this.

    http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=102391542229008936850.00044c00b672e42a64c45&t=h&z=3

    But If I check the source code for the URL it is trying to get this.

    http:\/\/maps.google.com\/maps\/ms?ie=UTF8&hl=en&msa=0&msid=102391542229008936850.00044c00b672e42a64c45&t=h&z=3

    the #038 caracter gets introduced.

    Do you know why?

  33. Sebastian says:

    Hello,

    I have a problem too. I habe WP2.5.1, the version of the plugin is 1.0.2. I have an correct API Key and made a testpost with this code in it:

    [googleMap name="Testkarte" description="Hier" width="250" height="250"]Ottoplatz 1, Köln[/googleMap]

    Some code from the plugin is in the page http://www.archimag.de/?p=21 but I cannot see any map.

    Whats wrong?

  34. Greg says:

    Hi,

    I get the same problem as LuY above. I’ve tried messing with the URL, but nothing I’ve tried works.
    I have WP 2.5.1, and using latest 1.0.2 version of the plugin.

    I would really appreciate some pointers.

    Here’s the code as inserted in WP:
    [googleMap name="Test" width="100%" height="300"]http://maps.google.co.uk/maps/ms?ie=UTF8&hl=en&msa=0&msid=110872770045489580233.00044aa8bd9217fc02df9&z=13[/googleMap]

    Pasting that out into the address bar works fine. But when showing the page:
    http://familywhitfield.co.uk/wordpress/?p=58

    I get an error, and it looks like a mangled URL – extra characters.

    Any help much appreciated. This is potentially by far the best Google Map plugin I’ve found in terms of ease of use & setting up.

  35. Sorry that I haven’t been able to check in sooner. Hopefully I can answers everyones concerns here:

    Owen: You need to give the plugin the address, etc. It does not use a google map link.

    John: if you contact me through my contact page, I’ll see if we can work that out.

    Max & Sebastian: Is the plugin active? Are you running Wordpress 2.5.1? The shortcode is not being processed at all, and I haven’t seen that, nor can I duplicate it without disabling the plugin.

    Eastofwest: I added it to the TODO list, but I can’t promise any kind of timeframe..

    DiWalker: I visited the link, and it seems to be working great. Did you figure out the problem?

    Ryan: You can currently only do one location per map, but I added that to my list as a possible future feature. As for adding content to the bubble, the “Location Description” goes into that bubble, so you can put what you like in there.

    Stefan: No, you cannot set the zoom, Google Maps sets a default for you.

    Davide: I’m sorry, it took me a long time to get back here, and the map is no longer on your page.

    Greg and [LuY]: You are not supposed to paste the link of the Google map. You are actually supposed to put the address to the location (ie “123 Main St, San Diego, CA, 92101″). Please let me know if that fixes the problem for you.

  36. Sebastian says:

    Hello Aaron, thanks for your replay. I have tested serval other googlemapsplugins for wordpress, so I have deactivated yours. But your seams to be the best. It is now again active.

    Can you please check again?

    And yes, I run 2.5.1.

  37. Sebastian: It actually looks like you have some other JavaScript loading in your theme, which is throwing an exception, and keeping other javascript from running properly. Google Maps requires javascript to load the maps and it’s not able to.

  38. Greg says:

    Hi Aaron,
    Thanks for the info – that has got it working. But I was hoping I could use this plugins to show my own maps, which using the URL would allow.

    Are there any plans to enable such a feature? It’s what other GM plugins (which are otherwise nowhere near as good as this one) provide, and is my main use case.

    Thanks.

  39. AleDV says:

    Hi Aaron,
    first sorry for my english.
    I have a problem with your beautiful plug-in (google maps for wordpress) only if I visit my web-site using Internet Explore.
    When I visit the following page (only with IE) http://www.vetreriafalegnameriacuassese.it/?page_id=21
    shown me an error that is not possible load the page.

    there are some configuration, parameters for fixed this problem?

    thank you,
    Bye – Ale

  40. Wayne says:

    Thanks for this plugin. Small problem though. The marker isn’t displayed correctly on my map. And the address bubble has a shadow which covers a large part of the map. It is very difficult to see our location.

  41. Greg: There are currently no plans to support copying/pasting a Google Maps URL into the plugin. That’s not to say it will never happen, just that I don’t currently have plans for it. If you are really interested, feel free to contact me.

    AleDV: I just tried your site in Internet Explorer 7, and that page loaded fine.

    Wayne: It looks like you replaced my plugin with a map straight from Google, and the marker still doesn’t display right. I’m guessing that there is something in the CSS for your template that is interacting. Try testing it by switching to the default template. If that fixes it, look into the CSS or possibly even JavaScript of the template.

  42. AleDV says:

    Sorry Aaron, but I have yet the problem.
    the error shown me only with IE, with WinXP or VISTA …with FireFox no problem.

    If you go at http://www.vetreriafalegnameriacuassese.it and click on “come raggiungerci” you can see the error.

    I would use your plug-in because I think it is the best google maps plug-in for wordpress, but I have this error =(((

    I’m waiting for you answer.

    bye & goodWork

  43. AleDV: I’m sorry, I can still access it in IE7, and my IE 6 is on a Virtual Machine that I haven’t set up on my new Kubuntu install yet. Can you send me a screenshot or something so I can see what’s happening?

  44. Henry says:

    While the plugin generates nice maps, it makes excessive calls to the Google Maps API in the admin section. Every time you click “Write Post” or “Write Page” it connects to maps.google before it draws the screen. When you save a post or page, although you didn’t enter any data into the map parameter fields, it connects to maps.google again. This seriously degrades the performance of the wp-admin interface since maps.google responds slowly more often than not. I see this even on a virgin install of 2.5.1. I’m running 1.0.2 on WP 2.5.1 on an 8-core Xserve running 10.5.2 fully patched, so it certainly isn’t a CPU or software problem. Suggestions are welcome, although I can’t see what I could do to fix it.

  45. darren says:

    Get the following error when attempting to activate the plugin:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in wp-content/plugins/google-maps-for-wordpress/wp-google-maps.php on line 63

    I am running WP 2.5.1 and PHP 5.2.4

    Any ideas?

  46. darren: Are you absolutely sure that you are using PHP 5.2.x? That error comes from PHP4 trying to run PHP5 code that uses the keywords public, protected or private for visibility in it’s classes.

  47. sergey says:

    Thanks for this plugin !

  48. Hi Aaron,

    Superb plugin. We have used it on our site.

    You can view ‘em at http://www.jalaluddinservices.com/contact/location/

    It’s really simple. Download the plugin. Extract the zip file. Upload all folders to your plugin directory. Activate plugin. Insert Google Maps API key. Write a post or page with the details under Google Maps for Wordpress.

    We use 2.5.1 and have PHP 5.2.5

    Kudos again!

  49. Kakha says:

    Please tell me how I can do “satelite” by defoult?

    Regards,
    Kakha

  50. Dan says:

    I just installed (today) WordPress 2.5.1 and Google Maps for Word Press 1.0.2, (it’s active), I have a valid Google API Key, I’m using PHP5, Firefox, but when I click on the “Send Map to Editor” button, nothing happens. Am I missing something?

    Here’s what I’m putting in the box:
    Location Name: ACME Store (for example, I use the actual store name)
    Address: 123 Some Road, City, State, Zip
    Location Description: ACME Store

  51. Coop says:

    I am having the exact same issue as Dan. WP 2.5.1 (new install), 1.0.2 version of your plugin. Valid Google API key, PHP 5.2.6 but using IE 7. Everything is good except nothing happens when I click on “Send Map to Editor”.

  52. DaveBurns says:

    For those who get the error

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in wp-content/plugins/google-maps-for-wordpress/wp-google-maps.php on line 63

    but swear they’re running PHP5, you may have the problem I did. My hosting service supports PHP4 and 5 at the same time. Files that end in .php default to PHP4. Files that end in .php5 run PHP5 instead. To make PHP5 the default for files that end in .php, add the following line to the .htaccess file in the root directory of your blog:

    AddType x-mapp-php5 .php

    (Make sure you put this outside the Wordpress begin/end comments.)

    I made this change and I could then activate the plug-in just fine. The plug-in works very well!

  53. Rattler says:

    Hi!

    I installed your plugin (v1.0.2) on WP 2.5.1 (php 5.2.6) on theme seashore-10 (http://demo.wpthemeshop.com/), but I have run into a serious problem:

    Our site atm is a test site and we try to provide maps to certain places we feature, all of them in Spain on the Island of Mallorca, Province: Illes Balears.

    Now, if we enter (example) “Port d`Andratx” or (with zip code) “07157 Port d`Andratx”, or, to make it even clearer: “E-07157 Port d`Andratx” into the location field, and then (example) “Calle Garcia Morato 17″ into the address field, your plugin resolves this to a map that shows center Spain, somewhere about 500km away from the desired location.

    We tried all kind of modifications, like adding the province, changing the name to Castellano (Puerto de Andraitx), etc., but as result only once changed the map and then we ended up in Valladolid (800 km to our location), all the rest ended up the same.

    Interestingly, when we search for the above mentioned parameters (”Calle Garcia Morato 17 07157 Port d`Andratx”) = without the “E” and without commas in one phrase into the search field of http://maps.google.es we instantly get the right location.

    For the moment we used this solution linking the map that maps.google.es shows to our pages, but we would still prefer to use your plugin, mainly because of the more refined control options (see the linked map effect at http://mallorca-service.net/node/?p=16 and you will see, why) and the ease of use if it works.

    Any ideas?

    We have come up with the following idea:

    - Modify the search by adding “country” first and then assure its pulling from the right servers?

    Or would this have nothing to do with it?

    Thanks for your consideration,

    Kind regards,

    Rattler

  54. Mike B says:

    For those who get the error

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in wp-content/plugins/google-maps-for-wordpress/wp-google-maps.php on line 63

    but swear they’re running PHP5, you may have the problem I did. My hosting service supports PHP4 and 5 at the same time. Files that end in .php default to PHP4. Files that end in .php5 run PHP5 instead. To make PHP5 the default for files that end in .php, add the following line to the .htaccess file in the root directory of your blog:

    AddType x-mapp-php5 .php

    (Make sure you put this outside the Wordpress begin/end comments.)

    I made this change and I could then activate the plug-in just fine. The plug-in works very well!

    Thank you DaveBurns

    I also had to change one additional line:

    AddHandler application/x-httpd-php4 .php
    to
    AddHandler application/x-httpd-php5 .php

    I thought I would add this as it was necessary for me and if there are any other dummies out there we need all the help we can get.

    Thanks for the plugin!

  55. DaveBurns & Mike B: Thanks for pointing out how to change to PHP 5.

    However, you only need to do one of the two options, and there is actually a third choice as well. If you need to make your host use PHP 4, one of the following will probably work. Add one of the following lines to your .htaccess file (outside the WordPress area of that file). If unsure which to use, check with your hosting provider on which version works best for your configuration.

    AddType x-mapp-php5 .php
    AddHandler application/x-httpd-php5 .php
    AddHandler cgi-php5 .php

  56. Jason says:

    This plugin is exactly what I was looking for, and it works great; until I activate

    Not sure what is causing the problem, if ms-lightwindow is activated Google Maps for Wordpress will do everything it needs to but will not display the map, the post formats though a map is there but none is displayed.

    Any help would be greatly appreciated.

  57. Jason: It’s hard to tell for sure, might be easier with a link, but they are probably using JavaScript that is interfering with Google’s JavaScript.

  58. Hugo says:

    Hiya!

    thanks for the excellent work. Looks like this is the plugin I’m looking for.
    I just have on epb; nothing will show on the website; you can see the place has been left for the map but the map iteslf is not showing (no border, no nothing, boooo…)

    any idea?

    thanks,

    h.

  59. Steve Mills says:

    Love the plugin. Works great for me in Firefox.

    I know there was some discussion above about IE problems. I have it here:

    http://www.foxvalleycomputerservices.com/?page_id=7

    I have a screen capture if I knew where to send it. There was a similar issue with the Webassist Google maps Dreamweaver control which required moving the script below the tag. Of course that’s not an option here.

    Anyone else see this?

    Steve

  60. Jason says:

    Sorry I thought I pasted the link, here is the plugin that it does not work with.
    http://mockersubat.fr/2007/07/23/lightwindow-20-pour-wordpress/

  61. Jason Arend says:

    Great plugin but it’s not quite working for me yet.

    ANy images with transparencies in the map are not rendering right it is causing everything in my tabbed sidebar to show. I’ve tried disabling all my plugins but that made no difference. Any help would be greatly appreciated!

  62. Jason Arend: The problem is that the CSS from your site is conflicting with Google’s CSS. Specifically, around line 593 of your style.css file you will see:

    .entry img {
    background:#F8F8F4 none repeat scroll 0% 0%;

    The background line there is the problem. Remove it and your map works fine.

  63. Jason Arend says:

    fantastic! that worked great! Now It is still causing the side bar content to show everything.

    Here is how it look with the map

    Here is the way it suppose to look

    Something is conflicting or causing the layout to break I just don’t what or where.

  64. Jason Arend says:

    Sorry I inputed the links wrong above

    Here is the Page with the amp and the screwed up sidebar content:
    http://www.pfimagazine.com/2008/06/10/52nd-annual-pro-rodeo/

    And Here is the way it suppose to look:
    http://www.pfimagazine.com/2008/06/12/recipe-supercharged-spicy-shrimp/

  65. Jason Arend: I see that firebug shows a Javascript error on the page with problems. I’m guessing that the Google Maps JavaScript is interfering with your other Javascript (and you have a lot for it to interfere with). You are running Prototypejs and jQuery, as well as other libraries, along with Google. They just aren’t all playing nice together. You’ll probably need to simplify if you want to use Google Maps. Here is the error:

    this._each is not a function
    http://www.pfimagazine.com/wp-includes/js/prototype.js?ver=1.6
    Line 592

  66. Steven says:

    Do I have to write in Wysiwyg or HTML mode?

    Also can you put multiple maps in one Post/Page?

  67. [LuY] says:

    But if you can just enter the address that means you can’t add any custon map, like the one on my maps.. isn’t it?

  68. Steven: You can use either editor, and yes, you can put multiple maps on one post/page.

    [LuY]: Correct, this is for mapping a single address per map.

  69. Steven says:

    I have 2 problems:
    1. The map is not showing
    2. Google Analytics isn’t working anymore

    I run Php 5.2.3, mysql 5.0.15 and WP 2.5.1 on a Linux node1.c40 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686

    Php safe_mode is ON and php is working correct on the site.

    I run the Bloxpress2 theme (AJAX) with drag&drop sidebar items. Also I have this Lightbox plugin running: jquery-lightbox-balupton-edition

    Any suggestions?

  70. Daniel says:

    Hello AAron,

    The map is not showing

    Apache version 2.2.8 (Unix)
    PHP version 5.2.6
    MySQL version 5.0.45

  71. Steven: I checked your URL, but it looks like you might have the plugin disabled at this point, so it’s hard to tell. However, as I’ve stated before, and JavaScript errors in other JavaScript that loads will cause Google Maps not to work right. You have errors showing.

    There is also the possibility that your lightbox interferes. I’ve had quite a few users with that problem. Unfortunately, I only implement the maps and have no control over Google’s Javascript.

    Daniel: I don’t see any maps on your site. A link to one would help me see what’s going on.

  72. Daniel says:

    Sorry Aaron. I can see only Internet Explorer. But, I can´t see Firefox 2, and 3.
    Any suggestions?

  73. Michael says:

    Great plugin, now that I have figured out the real issue I thought I would just post up here. I was having an issue where the space for the map in the post would be there but no map, tried removing all my plugins etc, well on a hunch I changed my theme back to default and all is well. It appears that there is a issue with some of the themes conflicting with this plugin.

  74. Michael: That is actually pretty common. Some templates have sloppy CSS, rules that affect things that they don’t need to, etc. If you look up a little in the comments, Jason Arend was having problems and needed to remove a rule from his CSS:
    .entry img {
    background:#F8F8F4 none repeat scroll 0% 0%;
    }

    I get a lot of similar problems via E-Mail as well

    Daniel, the problem probably lies in your CSS from your theme.

  75. Rattler says:

    Hi!

    I am sorry to report major problems with your plugin:

    I had it used on my test website http://mallorca-service.net/node/ to supplement a map for all the restaurants and bars present (food and drink category). On my machine (mac g4, OSX 10.9.3 with Firefox 2) it worked well and without ever producing an error, but I got swamped with reports that others couldnt see anything on the maps or not even load the page.

    First I had not take this too seriously, but when the reports amassed I initiated a few test rounds with frineds of mine (see one test thread with screenshots here: http://www.airdisaster.info/forums/viewtopic.php?f=11&t=1004&start=0&st=0&sk=t&sd=a) and it turne out to be a problem the majority of users had.

    As you can see in this thread I concentrated testing on different angles (like conflicting java, polling issues on the google servers, etc), but in the end the only probable cause left was your plugin.

    Today we changed the maps provided by your plugin to custom made google maps, voila! problem solved, everybody can see the maps now.

    The problem occured when more than one entry with a map was to be displayed (e.g. a list of 3 restaurants with a map each), most brwoser refused to display the page under these circumstances.

    Any ideas?

    Kind regards,

    Rattler

  76. Rattler says:

    Refering to afore menitoned post I can add the following data (not sure whether this helps, but it might help you see whether the prob was with your plugin or with the WPtheme/Javascript) that I received from ppl that found the page working but checked their error console (using seashore10 theme), I cannot interpret them clearly:

    >There were also some additional warnings:
    >
    >”Resource interpreted as script but transferred with MIME type text/html. >http://www.mallorca-service.net/node/wp-content/themes/seashore-10/jquery.js”

    (Dont think the next is of relevance, but anyway):
    >”Resource interpreted as script but transferred with MIME type text/html. >http://instant-counter.phpwelt.net/js.php?id=38989&typ=z1&lang=&reload=3600″

    >Warning: Expected ‘:’ but found ‘=’. Declaration dropped.
    >Source File: http://mallorca-service.net/node/?cat=11
    >Line: 0

    some others like

    >Warning: Error in parsing value for property ‘font’. Declaration dropped.
    >Source File: http://mallorca-service.net/node/?cat=11
    >Line: 0

    A number of problems from maps.google.es:

    >Warning: Unknown property ‘resize’. Declaration dropped.
    >Source File: http://maps.google.es/intl/es_es/mapfiles/118/maps2.css
    >Line: 1

    >Warning: Expected ‘,’ or ‘{’ but found ‘*’. Ruleset ignored due to bad selector.
    >Source File: >http://maps.google.es/maps?f=q&hl=es&geocode=&q=Bar+Es+Moli,+Pla%C3%A7a+Mossen+Sebasti%C3%A0+Grau,+2,+07159+Sant+Elm&sll=39.585136,2.349873&sspn=0.007706,0.013175&ie=UTF8&cid=39582837,2349443,4714613081237544730&s=AARTsJpOJ10OZ_7APmtaIL83kb3rGsRFrg&ll=39.591734,2.353649&spn=0.02315,0.036478&z=14&iwloc=A&output=embed
    >Line: 1

    And a couple of errors:

    >Error: this._windows[aWindow.__SSi] has no properties
    >Source File: >file:///Applications/Firefox.app/Contents/MacOS/components/nsSessionStore.js
    >Line: 671

    >Error: uncaught exception: [Exception... "'[JavaScript Error: >"this._windows[aWindow.__SSi] has no properties” {file: >”file:///Applications/Firefox.app/Contents/MacOS/components/nsSessionStore.js” >line: 671}]’ when calling method: [nsISessionStore::getClosedTabCount]” nsresult: >”0×80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)” location: “JS >frame :: chrome://browser/content/browser.js :: PHM_toggleRecentlyClosedTabs :: >line 6580″ data: yes]

    The page(s), though, load the way its intended now with all browsers.

    Any ideas?

    Thanks for your consideration,

    Rattler

  77. Dan says:

    # May 28th, 2008 at 1:43 am
    Dan Says:

    I just installed (today) WordPress 2.5.1 and Google Maps for Word Press 1.0.2, (it’s active), I have a valid Google API Key, I’m using PHP5, Firefox, but when I click on the “Send Map to Editor” button, nothing happens. Am I missing something?

    Here’s what I’m putting in the box:
    Location Name: ACME Store (for example, I use the actual store name)
    Address: 123 Some Road, City, State, Zip
    Location Description: ACME Store
    # May 30th, 2008 at 2:07 pm
    Coop Says:

    I am having the exact same issue as Dan. WP 2.5.1 (new install), 1.0.2 version of your plugin. Valid Google API key, PHP 5.2.6 but using IE 7. Everything is good except nothing happens when I click on “Send Map to Editor”.

  78. Ricky Irvine says:

    Getting 500 Internal Server Errors on admin page-edit screens with this plugin installed under WP 2.6.

  79. Bandit says:

    I tried to use this plugin and everything looks good when I create the map and insert code in to the editor. However, when I try to view the page from the Blog no maps shows up. I do get the temperature and info in small type at the bottom. I am using PHP v5x and Wordpress 2.6.

    When I view the page an error box shows up in the bottom of the browser and states Object doesn’t support this property or method. Any ideas?

  80. Bandit: It’s probably some JavaScript or CSS you have that’s causing the problem. If you give me a link to a map that is having this problem, I will take a quick look.

  81. Bandit says:

    Check it out right here: http://banditvlog.com. First post.

  82. Bandit says:

    I went ahead and made a seperate page. It is listed as a test page. http://banditvlog.com.

  83. Bandit says:

    Sorry about so many messages. Go to my Blog and look under pages. Go for the test page and see the results. Sorry it took me so many tries to get this out.

  84. Hi!
    Just tested plugin with my wp 2.6 and so far worked well.
    Map appers on my blog at http://halvat-matkat.net/rooman-nahtavyydet/

  85. halvat lennot: Thanks. I fixed your link and removed you second comment. I appreciate your feedback.

  86. Daniel Tyack says:

    Aaron, I just downloaded this baby for a client site and it’s great! Thanks a bunch!!! (Also thanks for the MySQL help this morning :)

  87. neil says:

    works great! thanks for saving me a lot of time coding!!

  88. Peter says:

    I’m currently using WP 2.6.1 and I tried the install on 2 different sites, nothing shows up. It just takes up space… so I see nothing but white space..

  89. Peter says:

    This plugin conflicts with the flickr-tag plugin. Does anyone know how to fix this?

  90. Jaska K says:

    Hi,
    Your plugin is great! It’s the best Google Maps -plugin for the purposes of our family blog: you can get driving directions without login in to Google Maps.
    But, would it be possible to add “enableGoogleBar” into the map control options?

  91. Bandit says:

    I would love to get this plugin working but there must be something in my theme that it doesn’t like. I tried installing it again since I upgraded to Wordpress 2.62 but I either get an error and the blog won’t load at all or it loads and gives me half a map. Maybe the next version will fix it but for now it still desn’t fly wih my theme.

  92. Manuel says:

    It seems to be a great plug-in
    but i can’t get it to work…

    I get a “Error polling Google” javascript alert and an empty map.

    My config:
    Worpress 2.6.2
    Default Theme (Kubrick)
    No plug-ins (except Google Maps), no hacks
    PHP 5.1.25-rc

    My post’s HTML code is:
    [googleMap name="Alex" width="500" height="300" mousewheel="false" zoompancontrol="false" typecontrol="false" directions_to="false"]http://maps.google.com/maps?f=q&hl=en&q=Alexanderplatz+1,+Mitte+10178+Berlin,+Berlin,+Berlin,+Germany&sll=52.525439,13.368537&sspn=0.006632,0.022531&ie=UTF8&cd=1&geocode=FSNyIQMdVqnMAA&ll=52.523624,13.412697&spn=0.006632,0.022531&z=16&iwloc=addr[/googleMap]

    please help me, i would so much love to use this beautifully crafted piece of code :-(

  93. lang says:

    I also get a “Error polling Google” javascript alert and an empty map.

    Only when “Display option to get directions to this location.” is unchecked.

  94. lang says:

    Not getting the error now, but…

    #1) How can I remove the default label with the street address that covers up half of the map? I’m guessing I can edit something in wp-google-maps.php ?
    #2) The map is only showing in the Chrome browser. Other browsers are showing google text but no underlying map data.

    Take a look at…

    http://keywestconcierge.com/key-west-accomodations/key-west-hotels/reach-resort/

    Thank You!!! (once I get these issues resolved, This plugin is going to be very helpful!!!)

  95. Fred Greco says:

    I am having trouble putting more than one map on the same page. When I do, one of the two (it appears random on the reload) shows up blank white. All I am doing is repeating the same steps for including the map code twice and putting them both on the page.

    http://www.cckpca.org/worship/find-us/

    Any help?

  96. Nice plugin, but there’s one feature I’d really like: ability to set zoom level. The default is zoomed out too much for my usage.

    Or is it there and I’m missing it?

    Thanks,
    Rusty.

  97. marwin says:

    Aaron, could you please calrify this issue? I have troubles with my google map:

    Issue:
    There was an error polling the Google Servers for http://maps.google.com/maps?f=q&hl=en&geocode=&q=rts+plzen&ie=UTF8&ll=49.744533,13.333068&spn=0.019301,0.04549&z=15&iwloc=A.
    Please try again.

    Many thanks, Marwin.

  98. yordan says:

    Hi Aaron, Thank you for the great plugin. I installed it on WP 2.6.2 with PHP 5.x on (mt). The first few times it was working but now it just shows a white page – no error, grey screen or anything comes up. I have the correct API key and if you look at the source, the map s are in there but nothing’s showing up. Could you by any chance have a look or do you know what the issue might be? You’re probably super busy so I hope you’ll be able to give me a hint at least. Here’s the page with the map: http://havanaswing.com/dev/category/gigs/. The google code in the post is:
    [googleMap name="The Bar" description="The best" width="505" height="280"]Professor Mihaylov 10, Sofia[/googleMap]. I know the address isn’t super valid but it should give me the grey box as it used to at least.

    Thank you very very much for any help you can provide :) Cheers, Yordan

  99. Dakoon says:

    I’ve got exactly the same problem as yordan, was working but now I got a blank page. http://dakoon.ovh.org/?page_id=114

  100. I'm having the same problem as Fred (5th comment up). When I display a page with multiple posts with a map in each post, some of the maps do not show up, though the balloon text and controls are visible. Clicking on the map space makes the map appear. Anyone have a clue what is causing this?

  101. John McC says:

    Looks like powerful, easy to implement plugin.

    Latest install of xampp and wordpress and then this plugin. Tried local and offsite html and kml files. No luck. Key good as I can get map.html to work in browser.

    Error message with grey map:-

    "There was an error polling the Google Servers for http://localhost/wordpress/map.html. Please try again."

    I see Yordan got his going with same problem, any feedback would be appreciated?

  102. oZone says:

    I installed this plugin, have PHP 5.x, obtained the proper API key, but when I hit the "Send Map to Editor" button nothing happens? Why? This looks like a great plugin, and seems easy to use, but its not working… Help?

    • oZone says:

      Let me guess… this is just another one of a hundred million other posts that just goes unanswered?

      So far, without help, this is a useless plugin.

      • Wow, didn't exactly give me much time to respond now did you? You posted after work yesterday, and I'm replying at 7:25am.

        Anyway, usually when this happens it is dues to another plugin that is loading javascript on the edit page. Specifically when that javascript has an error in it.

        • oZone says:

          My appologies. I was very frustrated after spending 8 hours trying to use roughly 6 different google maps plugins, each with severe problems and basically gave up hope of ever getting this to work…

          How would I get this plugin working?

  103. oZone says:

    Send Map to Editor button not working… help please?

    • Did you try what I suggested (disable all other plugins and test)? If that doesn't fix it, then please specify what browser/OS you are using. Unfortunately, due to a heavy workload, we won't be doing any updates to our plugins for a little while. however, if it is indeed a problem with our plugin I'll add it to our TODO list.

      • oZone says:

        I didnt get that message about disabling all other plugins… This is the first I've seen you mention it. Regardless, I did just that and found a rogue plugin causing this and a few other plugins to stop working. I removed the problem plugin and it works great now.

  104. oZone says:

    Hello? support please….

  105. Steve says:

    Hi,
    Please can you tell me how to change the font for the Google info bubble – its using a header and default text – but i would like to change it to a different color. The default font on my website is white – which doesn't show in the map bubble.
    Great plugin btw – thanks in advance.

  106. LucentLogic says:

    Excellent code, love it, great job.

  107. Elaine says:

    I really like this plugin, found it very nice and easy to use. Thanks for your work :)

    I too have a suggestion regarding the info bubble. I'd like to have the "get directions to my location" enabled, but the bubble hidden by default, since it's fairly large and takes up a good part of the map. In other words, when it first shows up there's just the little red pointer, but when you click on that the "get directions" bubble pops up. Is this possible?

  108. Dan says:

    This seems to be the best Google Map Plugin. I only wish it would work for me. I got it installed, but when I try to add the API key, it takes to a page that says, "Are you sure you want to do this?" Please try again. And takes me back to the page where I enter the API key.

    I am running WPMU 2.6.5 – PHP v.5.2.8, MySQL 5.

    Any ideas?

  109. Andre says:

    Hi, The map is not showing up right.
    http://mountoliveadventist.org/?page_id=16

    It has a whole bunch of square black spots.

    • You have styles in your stylesheet that conflict with Google's. Specifically, you have a rule for "#whitewrap img" on line 517 of themes/office_10/style.css which sets "background:#3C3F36 none repeat scroll 0 0". You'll need to remove or rework that rule.

  110. Andre says:

    thanks.

  111. Megan says:

    Hi, when I enter my API, it takes me to an error page asking if I really want to do this… so I can't get the API entered, unfortunately. Do you have a suggestion on what I might be doing wrong, or is there a way to enter the key manually? I'm running 2.6.5, thought it is through MU (maybe that's the issue?). Thanks!

  112. Carlos C says:

    Aaron I am running Wordpress 2.7 and have PHP 5.2.8. When I load the page on my website I get an error message that reads:
    There was an error polling the Google servers for
    http://sitename.com
    Please try again.

    It loads the box of the map and the zoom lone on the left hand side but thats about it. Sorry to bother you but wondering what I am doing wrong. Any input would be appreciated.

  113. Mauro says:

    Hello! Thanks for this grat development!
    Question: How can I adjust the zoom level of the map when I post it in the entry?
    thakyou!
    Mauro

  114. Yordan says:

    Hello! I just noticed that in IE the plugin shows a grey area instead of map image on the right hand side. In Firefox there isn't such a problem. There's no CSS conflict to cause it as far as I see. Do you have an idea? http://havanaswing.com/dev/275/
    Also, how can the zoom level be adjusted? I see Mauro got it going but I just can't see your answer that explains it. Am I just missing it? Thanks! Yordan

  115. Yordan says:

    Sorry to be a nuissance but I'm really out of ideas here…Why is this gray area appearing and only in IE. Please help!

  116. I *can* tell you that it's a CSS problem. Specifically, a difference in how IE treats CSS vs every other browser. Unfortunately, I can't track it down right now, I just don't have the time. Sorry.

  117. John says:

    Hey Aaron,

    Thank you for a great plugin!

    I have a question, when I visit my site, http://www.johnsly.com I receive an IE error "Internet Explore can not open the internet site http://www.johnsly.com Operation aborted" The page loads fine in Firefox, but I want to also make sure IE is also working.

    The plugin is working fine on another site of mine, and I have the same plugins in both sites… Any help you could provide would be great!

    -John

  118. bnc says:

    I found out to have directions in my own language (Italian) I just have to change the url of google maps in php to maps.google.it but how can I translate the words "Directions: To here"? What do I have to edit?

  119. Ben Klinger says:

    Hi Aaron.
    I downloaded your plugin and installed. i ran into two problems:
    whenever i enter a location longer than two words, i get an error message that this location can't be found. i checked the code, and saw that it adds "u00a0".

    look at the attached screenshot, the area of the bubble is not transparent. what can cause that?
    http://dl.getdropbox.com/u/162870/googlemaps.png

    i am using WP2.7 with php 5.2.8

  120. Rene says:

    I tried the plug-in which created this entry: [googleMap name="Try " description="SAn" width="500" height="300" directions_to="false"]123 Main St, San Diego, CA, 92101[/googleMap].
    However, when the post is displayed, it only shows a Blank space… (see Genobeba II in the post list)
    What am I missing? THANKS!

  121. Alexa says:

    Hi – Is there a way to set this so the map is centered in my post instead of left aligned? Otherwise, it's working like a charm in 2.7.1 thanks!

    Alexa

  122. We are using your plugin at http://www.goalpost.tv/about and working very well!

  123. Genny says:

    Hi,

    I am running this plugin, and I am having similar issues to some other people in terms of the script not running in Firefox. I am on a MAC and my friend is on a PC and for both of us, the complex map (with several points) is not working in Firefox, but fine in Explorer and Safari.

    The error we are getting is that there is an unresponsive script, and that we can either stop the script or continue waiting (but risk hanging the app).

    Any suggestions? I’ve tried the Wordpress suggestion of making it wait longer to load the script via the about:config, i’ve tried disabling all plugins and add-ons, and to no avail…

    here is my url: http://www.shugraphics.com (click on FACS 1010 to view map)

  124. Genny: That’s not my plugin. It looks like you are using this plugin: http://avi.alkalay.net/2006/11/google-maps-plugin-for-wordpress.html

  125. hi Aaron, I am having trouble with getting this to work – in the address bar i take it that is the link for google or the actual street address ? Does this have to be formatted in a certain way (house no, street, town , post code) to get this working as i am just getting “there was an error polling the google servers for…” http://maps.google.co.uk/maps?f=q&source=s_q&hl=en&geocode=&q=BD21+1PT&sll=53.800651,-4.064941&sspn=19.406082,34.365234&ie=UTF8&z=16&iwloc=A

    What can i do to get this working – is there an issue with google or am i just doing something wrong?

  126. Madhu S says:

    i am just getting “there was an error polling error with Jammu and Kashmir, India Plz help.

    My URL is http://shreetravels.co.in/?page_id=101

    Kindly help

  127. Your plug-in is wonderful. Worked first time out! I was wondering if the information bubble can accept html code for displaying web hyperlinks so a viewer could click through. I inserted <a/href ” into the editor and it didn’t show?

  128. Simon Lau says:

    can this plugin work like auto detect the address line and point the map directly to the location?

    Thanks

  129. roelani says:

    Hi!

    I’d like to know if there’s any way to style the text that appears in the bubble in the map. I checked the source code, and there doesn’t seem to be any styling I can apply; the text is generated by some google javascript. The “name” however, is clearly bigger than the description, so something somewhere is styling it.

    Does anyone know if how to override this styling?

Leave a Reply

Pings/Trackbacks

  1. [...] Google mapsを記事に載せられるプラグイン(Google Maps for WordPress) [...]

  2. [...] Thanks for visiting! If you’re new here, you may want to subscribe to our RSS feed. This blog posts regular Wordpress news, updates of themes, plugins, ideas, hacks, quick fixes and everything about blogging, especially about Wordpress. Go ahead, subscribe to our feed! You can also receive updates from this blog via email.Google Maps [...]

  3. [...] Plugin: Google Maps for Wordpress Filed under: WP [...]

  4. [...] Google Maps for Wordpress Allows you to easily insert Google maps into your blog. The maps can be configured to offer directions to or from the location, show or hide the zoom/pan controls, show/hide map type, activate zoom using mouse wheel, and more. (tags: wordpress plugin) [...]

  5. [...] some interactive google maps. Embedding google maps into wordpress blog has become really easy with Google Maps Wordpress Plugin. However you need wordpress version 2.5.1 and php5 for this plugin to work [...]

  6. Leonaut.com says:

    Google Maps for Wordpress…

    The Google Maps plugin allows you to easily insert Google maps into your blog, making use of the new shortCode system in WordPress 2.5. The maps can be configured to offer directions to or from the location, show or hide the zoom/pan controls, show/hid…

  7. [...] Google Maps этот плагин вставляет Google maps в блог. В данном плагине используется механизм shortCode, который появился в WordPress 2.5. [...]

  8. [...] Google Maps for Wordpress- The Google Maps for WordPress plugin allows you to easily insert Google maps into your blog. Can [...]

  9. [...] (23rd May): The author – Aaron Campbell – said in this comment saying that at present he has no plans to update the plugin to take user specified maps. This is a [...]

  10. [...] Google Maps for Wordpress: de tremendísima valía ahora que Google Maps ha enriquecido sus funcionalidades, y con el cual podemos incrustar un trozo de mapa en un post o página de nuestro blog. [...]

  11. [...] Google Maps for Wordpress: de tremendísima valía ahora que Google Maps ha enriquecido sus funcionalidades, y con el cual podemos incrustar un trozo de mapa en un post o página de nuestro blog. [...]

  12. Extremisimo says:

    [...] Google Maps for Wordpress: plugin con el cual podés incrustar un trozo de mapa en un post o página de tu blog. [...]

  13. [...] 作者Aaron D. Campbell的部落格 [...]

  14. [...] Posted by fredtgreco Rich, What do you use to integrate maps into a WP blog? Google Maps for Wordpress

  15. [...] Google Maps for Wordpress ・・・ 日本語版もあります。Google Maps API Keyを取得しなければいけません。 [...]

  16. [...] Google Maps for Wordpress has been withdrawn following reports of problems registering the API [...]

  17. [...] Today I installed yet another Wordpress Maps plugin. [...]

  18. [...] Google Maps for Wordpress [...]