Inline Google Maps plugin for WordPress : version 2.1

Inline Google Maps Plugin v2.1 for WordPress

(download link is at the bottom of the page!)

Description:

Displays Google Maps anywhere in your blog page post by just "linking" selected text to a google map. Read on - you won't believe how easy it is!

This plugin IS compatible with Word Press 2.1 

Features:

  • easy, easy, easy to use
  • support for setting overlay maps, map types, etc..
  • unlimited number of maps on single page
  • one marker per map
  • per-map settings for controlling width, height, displaying controls and position marker
  • ability to instruct the plugin not to convert a link to Google Maps site into inline Google map on your site
  • support for English and Japanese map captions (on map buttons)
  • uses Google Maps API v.2

Important: the instructions in this post are related to version 2.0 of the plugin. Version 2.1 adds some new advanced settings which are not described in this entry. If you are new to the plugin, please read this blog entry's instructions completely before proceeding to advanced instructions for Inline Google Plugin version 2.1, available at this link.
How to use:

  • First, you have to type some text you want to appear inside google map's marker. You can use images inside the text.
    justtext.jpg
  • Now, go to Google Maps site, and find the location you want to show:
    place-select.jpg
  • Once the location is found, adjust the map to your liking. Set zoom level to the level you want. Set map type. If you want the map to be shown in Hybrid or Satellite mode, click to corresponding button before proceeding to the next step. Make sure the location you want to display is in the center of the map (if you have found the location by street address, you are all set). Once done, click the "Link to this page" link on top right corner of the map:
    linkto.jpg
  • Now, check the location bar of your browser. Copy the whole location URL string into clipboard….
    copyurl.jpg
  • In WordPress, select the text you want to appear inside the map's marker, and add a link to it, using the address from the previous step:
    textwithlink.jpg
  • You're done :)

    06-03-09_13-35.jpgIt would be cool this text to appear inside marker along with an image.

  • You can have several maps on the same page or in the same post.
  • Default map size is: 500×300 pixels. Currently, the size is global for all maps in the blog. You can change the default size in WordPress admin options panel for the plugin.
  • In case the height of the map is set to less than 300 pixels, a smaller version of zoom control will be shown.

Notice: your WordPress encoding must be UTF-8 for everything to work as it should.

Compatibility:

If you have older version of the plugin installed (1.0 thru 1.1), you don't need to uninstall it (in case you have pages which use old display code).

Download:

Click here to download Inline Google Maps plugin version 2.0

87 Responses to “Inline Google Maps plugin for WordPress : version 2.1”

  1. Z Says:

    "The Google Maps API key used on this web site was registered for a different web site. You can generate a new key for this web site at http://www.google.com/apis/maps/."

    I just got the key for my site and updated the plugin options. It keep giving me that error.

  2. mike Says:

    hey Z,
    thanks for the comment. There was a bug when google map key was not saved. I have fixed the code - just re-download and install the plugin to fix the problem.

  3. Jason Says:

    hey, this is really cool!! Worked for me, no problems encountered.

  4. Z Says:

    I am no longer getting the error. Still cant get it to work. When I write the post I insert the map address within a link with some text. When I view the post it shows up blank. No map not even the link. Thanks for your help.

  5. mike Says:

    Z,
    if you send me the raw html from your post containing the map which is not rendered (in wordpress editor, just click the "html" button and copy all the text inside), i will have a look and fix it if the problem is with the plugin. my email is: "mike @ this server".

    Also, in case you are using some custom theme, there are themes which are not compatible with the plugin (they overwrite the onload handler instead of appending their own functions to it, and my plugin uses the onload handler to initialize the map). But it seems this is not the problem in your case…
    anyway, could you send me the raw html for your post so I could look into the code?

  6. Les Says:

    Woo, and indeed, hoo! That works for me. Several thousand times easier than the way I had to do it before. Good work - thanks. :)

  7. mike Says:

    Thanks Les, I'm glad the plugin is working for you :) With all the bug reports it's feels kind of a miracle the plugin actually works for some people :D

  8. Gary O Says:

    Thanks for the update! I was using 1.0, how do I update maps created under 1.0 to 2.0. I know I can leave 1.0 installed, but I would like to just use 2.0 so that I don't need to keep both versions.

  9. mike Says:

    Gary,
    i'm afraid, the only thing you can do about it is to convert the old maps to the new ones by hand (from special tags to google maps links). Meaning you have to find the locations again on the google maps site, get a permalink to these maps, and replace the old [gmap...] stuff with the new href stuff.

    Shouldn't take much time if you don't have too many maps on your site. But if you're too lazy to do the migration, really the old version is not a resources eater at all, so having 2 versions running at the same time is really not a big problem at all.

  10. Steven Says:

    Hey Mike,

    What are the "maps marker" you're refering to ?

    Do I have to include the URL into a [gmap ...] marker ?

  11. mike Says:

    Steven,
    the marker is that red water-drop-shaped pointer in the middle of the map, pointing to the location you have set. As of version 2.0, you don't need to use [gmap...] stuff anymore, just follow the instructions in this blog entry and you're all set.

  12. Upekshapriya Says:

    Fabulously easy plugin. Thanks very much.

    One slight niggle though. Before your plugin appeared I used to link to Google Maps from the blog page and it offered the possibility of directions to and from the red marker. Now I just get the text I put into the link.

    Is there any code I can include in the link to get Google to offer directions, or is there any way I can override the plugin and put an external link (ie the same link) into a blog page to go to the standard Google Maps page for this link and hence get directions to and from my place?

  13. mike Says:

    Upekshapriya,
    I'm afraid the directions feature is not planned for the plugin as it is now. I might implement the feature sometime in the future, but not in the near one..

    Also, I haven't touched the Google Maps API to the point when you can actually add the directions stuff to a map, so can't help you on that because don't know myself how it all supposed to work yet :)

  14. tommy Says:

    Hellou,
    when I try to enter subpage for this plugin, only I can see is this massage:

    Fatal error: Cannot redeclare macdiggs_gmaps2_header() (previously declared in
    /blog/wp-content/plugins/gmaps_v2.php:66) in /blog/wp-content/plugins/gmaps_v2.php on line 64

    Any suggestion?

  15. Upekshapriya Says:

    I don't suppose there's a way I can have a plain link to Google maps without invoking your plugin, ie have the plain link and the map above it so people can get their directions by going the normal Google Maps route?

  16. Knut Says:

    This plugins has a collide with the popular theme K2. Has anyone found a fix/can tell me how to fix it?

  17. Gary O Says:

    Mike,

    My blog pages are taking some time to load. I see in my source that the javascript for the google maps plugin is in the section of every page.
    Is it possible for a future upgrade to only include the code in the posts and/or pages which call google maps.

    Gary O

  18. Gary O Says:

    My previous post stripped out the HEAD section as the area in which the code is included for every page.

    Gary O

  19. mike Says:

    Gary O,
    actually it might be possible to only load the script code on pages where a google map link is present, although I'm really not sure if and when I can possibly implement this feature.
    Also, at it is now, the script actually isn't a very big overhead at all for a page. What it basically does is processing all links on the page and searching for google map link patterns. And if found, replaces the pattern with actual google map. The operation is not CPU intensive at all unless you have hundreds of links on a page. Moreover, the loading time of your pages has nothing to do with the script because the script actually fires up _after_ the page was loaded.
    Also, you might want to remove the version 1.0 of the plugin from your activated plugins list if you are not using the old 1.x code to generate maps (or you can just sort of "migrate" old maps to new format and deactivate the 1.0 plugin after that). That will save you some (though very-very little) processing overhead and loading time of your pages.

  20. Avi Alkalay Says:

    Its great and works for me.

    But, sometimes I'd like to have plain text that is link to the GMaps site.
    The plugin won't let me do this because it will always convert the plain link to a Google Map.

    Is there any way to tell the plugin to convert only some links ?

    Thank you

  21. mike Says:

    Avi,
    yes I think it's possible to do. I'll have your idea in mind when updating the plugin next time. Thanks :)

  22. Avi Alkalay Says:

    I was thinking about this plugin.

    To be perfect for me, I would suggest this ideas:

    1. Only links that have title="gmap" (or something else) will be converted to a map. Otherwise they'll continue to be plain links to the Google Maps web site.

    2. It should be possible to manually edit the link tag to add class="myclass" and style="float: right; with: 300; height: 300;" (or something like that) and the JavaScript code will transfer these attributes to the div tag that surrounds the map. Otherwise the defaults should be used. This way who want to hack the HTML can have more control over the layout.

    Thanks !

  23. Avi Alkalay Says:

    OK, I couldn't wait, so I modified the plugin myself.

    The new version is here. I just included a few lines on function mapSearchReplace().

    Now the plugin will only convert to maps the links that have a title (3rd input in the link form of the WP editor) set to "googlemap". And style and class attributes manually set on the link will be transfered to the map object.

    I hope these changes will be accepted into next version.

    This is the most easy to use and useful Google Maps plugin for WordPress.

    Thank you !!

  24. mike Says:

    Avi,
    thanks for the input!
    it bloody sucks that I can not update the plugin myself right now, and I'm sure people will find your branch easier to use while I'm in stasis :)

  25. mike Says:

    OK. The new version is available at this page: http://macdiggs.com/index.php/2006/11/10/inline-google-maps-2-1/

  26. Matthew Says:

    Can anyone give me ideas , i might get free time in the future and want to give it for wordpress …
    any idea ?
    i want idea from simple thing to mid … 1-2 hours –> 8-10 hours .
    post your ideas…

  27. kenji mori Says:

    Hi,
    Though I think I've done everything fine, the map does not show up.
    -Installed plubin v2.1
    -Set Gmap API key
    -Wrote a post with a text link made to the specific google map link.
    - But the map would not show up in the post.

    Encoding UTF-8.
    Any idea?
    Thanks in advance.

  28. mike Says:

    kenji,

    what shows up in your post? just a link? or nothing at all? it it's ok, let me know the address to where you upped the non-working map, and i'll see what's could be possibly wrong with it :) me email is "mike" at this server.

  29. kenji mori Says:

    mike

    thanks a lot.
    please check out this post
    http://kenjimori.com/?p=199
    along with the photo in the comment showing how I wrote the post in the wordpress editor.

    As you see, it is only text and the link. (originally I placed flickr photo along but now I removed it.)

    I changed the lanuguage settings Japanese English, but didn't fix it.

    Thanks very much your help.

    Kenji

  30. David Says:

    Hi,

    i installed the plugin on my site but the javascript is put in the header of all pages.
    I registered the API at /google-earth. But alle page (even the homepage) have the script in the header and then the key is not accepted
    "The Google Maps API key used on this web site was registered for a different web site. You can generate a new key for this web site at http://www.google.com/apis/maps/"

    what can i do to solve this.

    David

  31. mike Says:

    David,
    did you enter the key in the plugin settings? It should be in Options > Inline Google Maps tab of WordPress admin panel. If you did, double-check the key (there should be no spaces aroung the key, etc..). Once you enter the correct key, everything will work.

  32. David Says:

    Mike,

    somehow it works now. I entered the key again. I think the difference is i applied for a new API-key for the mainpage. Before I applied it for the subpage. Thx for the prompt reply.

    David

  33. Javon Says:

    What I want to do on my blog, is every few hours take the oldest post and move it to the
    front of the queue, all automatically. Anyone know if there is a plugin that can do this or
    a simple way to set up another plugin to do this (use my own feed perhaps)?
    Thanks.

  34. Jan-Philippe Says:

    Hi!
    I can't understand why I got it to work on another site, but not mine… I'm in UTF-8, I re-applied for an API key and I see the script in code source of the page, but no map comes up… I'm using the Kubrick theme and tried with another one, but no luck it's not showing much more…

    Here's a link to a page where a map should be : http://www.jpbarbo.com/index2.php/?p=3

    Thanks

  35. mike Says:

    Jan-Philippe,

    i just checked your site and the link you are trying to feed to the plugin lacks the "ll" parameter (which is latitude/longitude stuff). Your google map links must contain this parameter in order for the plugin to work.
    As a possible solution, make sure you have clicked the "Link to this page", and THEN copied the link from the browser. If the "ll" parameter still doesn't appear in the URL, try dragging the map slightly (a pixel left, a pixel right) and copy the URL llink again. Should work.

  36. Jan-Philippe Says:

    Yup, it now works and it's a charm! Thanks for this great plugin!

  37. Paul Says:

    Hi

    All I get is a link, no map. Using UTF-8 but no luck!

    Any ideas……

  38. macdiggs.com » Blog Archive » WordPress 2.1 upgrade/plugins check Says:

    [...] the answer is short, and it is, YES, both Google Inline Maps 2.0 and Easy Inline SWF are compatible with WordPress [...]

  39. mike Says:

    Hey guys, I'm sorry about being silent lately! :( Way to much work so no time at all for hobby :)
    To everybody who is getting only link but no map. This is a problem with either a theme you are using or plugins on your page, which juggle with javascript.

    Technically, there could be 2 possible reasons for the problem to happen:
    1. some JavaScript on the page is throwing an error while the page is loading.
    2. some JavaScript overwrites the page's onload handler with its own function, instead of adding this function to a list of functions which will be called after the page is loaded (and that's when my plugin does its job.

    Solutions?
    - first of all, although it is defeinitely not an option for most, you can switch your blog's theme. Well, just try to do it temporarily. Of the problem is gone, write to a theme maker and ask to fix the problem since it is the problem with the theme, not the plugin.
    - second, if even setting WordPress to default theme doesn't help, you should try and check plugins. For example, disable everything except for Inline Google Maps plugin, and see if map is displayed. If it is, you can try to turn plugins one by one, checking if map is still visible on the page every time. Once it becomes "broken", you have the "winner" :) Write to that plugin's author for a fix (although I tend to think that it is theme writers who are most probably break the plugin, as the plugin writers are more proficient at JavaScript and all related programming stuff)

    And sure, your page must be in UTF-8 encoding for everything to work at all.

  40. someeda Says:

    Hi, thanks for your great work. but I was getting into truble using this plugin.
    The probrem is that there are two type of patterns of Google Maps URL.

    http://maps.google … works fine, but
    http://www.google … dosen't work.

    1.access http://www.google.com/
    2.click 'Maps'
    3.move map and click 'Link to this page'
    4.URL field is changed, but the URL is http://www.google…, this URL dose not work.

    I hope this plugin will get to allow http://www. type of URLs.

  41. Angel 3.Blue Station » Blog Archive » Wordpress with Google MAP - gmaps_v2 Says:

    [...] Wordpress with Google MAP - gmaps_v2 Plugin Homepage [...]

  42. statz Says:

    Hi,

    great plugin, but the markerposition is different to the position in Google Maps.
    When I put the link in a browser location, the marker is on the right position. When I copy the URL to my blog, the marker has moved to north a little bit.

    As an example try this location: Celler Strasse 124, Braunschweig

    Viele Grüße aus Braunschweig
    Statz

  43. John Keys Says:

    Is there a (new?) problem that the text and / or picture in the link for the marker doesn't show up in the marker's bubble?

    a) I don't see anything in the example above when I click on the marker for the Moscow map?

    b) at my own blog, I haven't been able to get the marker's text to display either :-(

    Using Firefox and Camino on a Mac - I don't know if that is part of the problem, but I have also looked at my page with MS IE6 on a PC and no text there either. Any ideas what's going wrong for me?

  44. John Keys Says:

    Sorry - it would probably help if I gave a link to the page I am having the problem with on my blog:
    http://www.keyscorner.com/contact-us/

  45. John Keys Says:

    For now, I switched my blog to use V1.1, which doesn't have this problem and works fine. I would be interested in using V2.1 if someone can fix the problem.

  46. mike Says:

    John,

    thanks for the comment. I'll check the code and will make a fix as soon as I have some free time, probably this weekend.

  47. cf Says:

    Hi Mike (think I calle dd you dan, sorry) - I just left a messageon the newer gmaps page you have as well - think i left out the link where i tried ot install the map - at http://www.sfsro.com/wordpress/?page_id=6
    You can see it just turns out a link and no map appears, but then, following these directions for what to put in post (no added image, just words for the pointer) - there appears no place for your 'code' "desc" if i use these examples. Maybe u will get both messages, thanks. claire

  48. mike Says:

    cf,
    i have just checked your page and it looks like you have an old version of the plugin installed. please deactivate the old plugin and install the new version (which is version 2.1)

    here's the link to the latest version:
    http://www.macdiggs.com/download/gmaps_v2.php.zip

    once you install and activate this new version of plugin your map should become visible.

  49. Darren Lovell Says:

    Hi,

    I am customising a wordpress site as part of a multimedia module and included a Plazes map. It worked for a while but now I ge the message about the API key being registered for a different website. I deleted my google maps plugin and installed the one on this site. I got a new API key but still it gives me the same message…

    does anyone have any ideas??

  50. The Bald Heretic » Inline Google Maps Says:

    [...] with the Inline Google Maps plugin for Wordpress. The application should be rather [...]

  51. Tyler Says:

    This does not work for Google's my maps? I cant seem to get it to work with my maps. It just does the city not all the points i put in.

  52. Ant Says:

    I'm getting an image through, but it seems to be corrupt? It's also telling me my API Key isn't valid for the site but it definitely is. I even got a new one off Google and put that in.

    I want to display my map here am i doing something wrong?!

    Thanks,
    Ant

  53. nepf Says:

    thank you for this great plugin!

    I am very interestet to work with "my maps", but the plugin doesn't display them - only usual google maps.

  54. Michael Says:

    Been trying for the past hour to use the plugin with K2 but it doesn't seem to work? Switched to the default theme and works just fine. Weird bug with K2 theme?

  55. Google MyMap / Meine Karten Wordpress Plugin | chrispie.de - tech / fun / berlin Says:

    [...] This tutorial is not for the inline google maps wordpress plugin [...]

  56. MetaLoop » WPプラグイン:Inline Google Maps plugin Says:

    [...] Inline Google Maps plugin for WordPress [...]

  57. LOOK AT COVENTRY » mapping Says:

    [...] plugin was for an older version of wordpress. I searched and found a newer version of the plugin at macdiggs.com. I installed this one and followed the instructions and this time it worked. This is going to be a [...]

  58. Daniel Says:

    I used this in a previous theme and it worked great. Neverrtheless, I downloaded recently the "highground theme" and for some reasons it does not display the map's marker properly (it shows a white square with some grey in it).

    Another problem I have is the "hybrid" mode. Although the "map" and "satellite" mode works fine in the hybrid mode it displays mostly a white background.

    Do you have any idea of why does that happend?

  59. Chad Says:

    I'm using the plugin, but instead of an inline map, all I get is a link to the map. Ideas?

  60. Daniel Says:

    Did you activate the plugin, Chad?

  61. Chad Says:

    Yeah it is activated. Oddly enough, I get an image now and controls, but no map. http://www.chadjennifer.com/maps-directions/

  62. Daniel Says:

    Chad, the map looks good. I am using Safari and I am able to view your map not only the controls, although the "map", "satellite", "hybrid" buttons seems to be larger than normal.

  63. Chad Says:

    What version of Safari are you using?

    I have tried Firefox, Safari 2 and Omniweb with the same results…a gray box, controls that don't work, and oversized buttons, as you noted.

  64. Jared Says:

    I am wondering if there are other options that I am not aware of? For instance, when I click on the balloon, no geo info comes up, but rather a blank box. Also, there is now way to get directions. Am I missing something?

  65. Daniel Says:

    I am using Safari 3 beta.

  66. Chad Says:

    Same here. That pretty much kills the plugin.

  67. Eric Says:

    My text marker is not showing up when I click on the marker. Also the map is not on the correct spot. when I put that same link into a browser it goes to the correct location. But inside the plugin it doesn't work. Any suggestions

  68. Lukino Says:

    I'm testing this plugin, but I was getting an empty box when I click on the marker, as other stated above. I was getting same problem from this site too, in avery browser both on windows and mac. It seems this happens because the javascript read as marker the google own link to the map. I don't know much of javascript, but managed to fix this:
    after line 149: if (thehref.title=="nomap") continue;
    add a new line: if (thehref.getAttribute("class")=="gmnoprint") continue;
    Everything is working for me now, and thanks for the great plugin that saves me ages of coding!

  69. Lukino Says:

    the fix I posted above doesn't work in ie6/win. I hate Javascript. Googling a bit I found a fix, it works at least in firefox and explorer, cannot deep-test now. So DO NOT USE getAttribte, but add the following line after 149:
    if (thehref.className=="gmnoprint") continue;
    I hope this works everywere…

  70. BatoR Says:

    hi thanx a lot for the plugin. I ve tried and its working. But I have a question!

    Do you know why I can not see other type kind icons of pins ?
    And information about the point also doesn't appear, just blank baloon of Gmap?

    Do you have any idea about it?

    Thanx

  71. Henny Says:

    Thanx !

    all the other google maps plugins were to difficult for me, and this one works just fine !

  72. oliver Says:

    Hi! Your plugin works great! Out of the box! The only issue I am having is that when I click on the Ballon the "bubble" pops up, but no content is displayed!

    Same thing happens, when I click on to the ballon on the top of this site?!

    Any Idea?

    Cheers mate and greetings from Antigua, Guatemala.

  73. Lukino Says:

    The fix for the empty bubble bug I've posted above seems to work well in any browser I've tested so far. I've seen that other people still having problems with it, so I will explain again for non tech-savvy:

    TO FIX THE BUG THAT CAUSE AN EMPTY BUBBLE TO SHOW UP WHEN THE BALLON IS CLICKED FOLLOW THIS STEPS (this fix is for 2.1 version):

    - open gmap_v2.php in a text editor

    - locate line 149, which contains: if (thehref.title=="nomap") continue;

    - AFTER line 149 add a new line (go after the "continue;" and press enter)

    - in the new line write:
    if (thehref.className=="gmnoprint") continue;

    - save the file and use the plugin, anything seems to work now.

    Thanks again to Mike for the plugins, the little time i've spent to fix it was nothing compared to how long would it take me to create the whole thing!

  74. Robert Says:

    The fix above didnt work for me - I use WP 2.2.3 and GoogleMaps where shown correctly in IE but not at all in FF (controlbox was there, but no map). To debug the error, I disabled all CSS-Files (with Firefox Addon Webdeveloper) and found out, that in order to show googlemaps in FF, I needed to comment out the following line in styles.css in my stylesheet:

    Step 1 - find the following line
    img {max-width: 100%;}

    Step 2 - replace with following line
    /* img {max-width: 100%;} */

    I am not sure what sideeffects there might be as I am not that good in CSS, but I don´t think there will be severe effects.

    Hope, this will help some of you!

  75. One Life » New Script Says:

    [...] where you can create Adresslists and show them in a Google-Map (Link). In the end I came along this one, till now its really easy to install and to post a map into a page or in a post. You only have go [...]

  76. Quixotic Extropicist » Blog Archive » Killed Plugin Says:

    [...] preferred browser.) Even though I was wrong about the browser, I was right about the culprit - my Inline Google Maps v2.1 plugin. I've noticed problems with it [...]

  77. Converse Says:

    thanks for this great tool!

  78. Tyler Says:

    Hi Mike,

    The plug-in works great in FF….. but I can't seem to get it working with IE6

    In FF everything work great and the map show up
    In IE6 only a link show up and no maps.. I've try using the default theme plus more others theme… it all the same result..

    please help….

    site with IE6 problem.
    http://www.lrwv.com/four-letter-deleted-domain-name/archives.html

    thanks you

    -tyler

  79. Tyler Says:

    Nevermind.. it works in IE6 on Windows XP, but not on Windows 2003 Web Edition Server IE6..

  80. Tyler Says:

    This plugin rock… is it possible to change the marker icon to a different set or use custom icons & color??

    Thank you so much…

  81. RealVision Says:

    I am having the same problem as Daniel below..
    Is there soem way to fix this please?

    Thanksa nd regards

    # Daniel Says:
    June 26th, 2007 at 5:01 am

    I used this in a previous theme and it worked great. Neverrtheless, I downloaded recently the "highground theme" and for some reasons it does not display the map's marker properly (it shows a white square with some grey in it).

    Another problem I have is the "hybrid" mode. Although the "map" and "satellite" mode works fine in the hybrid mode it displays mostly a white background.

    Do you have any idea of why does that happend?

  82. Mihai Says:

    It's weird how this is working for so many people and yet I get this error:

    ll is not defined

    which is normal since the plugin tries to read a 'll' parameter in the map url and there is no such parameter. There is 'sll' which means something else than longitude/latitude.

    Here's an example of how a map url looks when you click the 'Link to this page' link:
    http://maps.google.com/maps?f=q&hl=en&geocode=&q=bacau+ro&sll=37.0625,-95.677068&sspn=38.41771,83.144531&ie=UTF8&z=9&iwloc=addr&om=0

    Any ideas?
    Thank you.

  83. Mihai Says:

    oups.. didn't know that the plugin would parse the comments as well.
    anyway the link was
    http: //maps.google.com/maps?f=q&hl=en&geocode=&q=bacau+ro&sll=37.0625,-95.677068&sspn=38.41771,83.144531&ie=UTF8&z=9&iwloc=addr&om=0

    which is the map of Bacau, Romania and not Moskow

  84. Mihai Says:

    apparently the issue occurs when you *search* for a particular location… works if look for the location by going direct;y to maps.google.com and just use the maps pan,zoom etc..

    sorry for spamming who ever i spammed with these 3 in a row :)

  85. mike Says:

    Hi Mihai,

    yes, the "ll" parameter is not automatically added by Google Maps when you search for an address, and this will lead to problems with the map not being properly displayed using my plugin. The simplest solution is to :

    1. Search Google Maps by an address
    2. once you found the location, max zoom on it using zoom slider
    3. drag the map one pixel and back in order to let google "know" that you have adjusted the panning
    4. now, zoom out to the level at which you want the map to be displayed, and get a link for that page

    this way you're guaranteed to get the "ll"parameter set in your link and everything should work.
    Step 3 is the most important, step 2 is added in order to minimize possible error which can crawl in after you manually dragged the map (say, you dragged left 2 pixels and right 1 pixel - this way you have 1 pixel off from the original location).

    Mike.

  86. Peter Says:

    Great plug!

    I have the problem of the Info Balloon being too big. I have read on several other sites that the balloon is made "upstream" of any plug-in by the Google App based on the size of the displayed map.
    However, I need to display at 240px wide, and the correct map size is displayed by the plug-in, but the balloon is always too wide.

    As usual… any help would be much appreciated.

    Thank you.

  87. mike Says:

    Hi Peter,

    The width of the marker if hardcoded into the plugin, but you can change it yourself.

    There is the following line in gmaps_v2.php file (line: 111)

    var opts = { maxWidth : 300 };

    just change the 300 to any value you wish (the value if width of marker in pixels)

    Hope this helps,
    Mike.

Leave a Reply