Avi Alkalay Digital Awareness and Flying Spirit
Google Maps Plugin for WordPress 468 comments By AviPublished: Sun, 12 Nov 2006 00:27:53 -0200 Updated: Thu, 01 May 2008 10:03:51 -0300 Published: 12 Nov 2006 Updated: 1 May 2008 Published: 12:27 am Updated: 10:03 am Categories: Web 2.0 Tags:

This software will let you easily render Google Maps anywhere on your blog as a web service. It also includes code for easy integration with WordPress blogs, but what the code does best can actually be used with any other blog system or plain web page.

This plugin will let you easily create from simple maps with one marker and a text balloon, to complex multimarker maps with hypertext balloons as this page.

Installation on WordPress Blogs

Install it as any other plugin (unziping plugin files under [WORDPRESS_ROOT]/wp-content/plugins directory and activate it in WP Plugins admin tool). Then go to the Google Maps API key signup page, get an API key for your website, and install it in the plugin’s admin page under Options.

Google Maps WP admin page

Creating Simple Maps

This is the easy part.

  1. Go to Google Maps, find the spot you want to show, select Map, Satelite or Hybrid view buttons, double-click on the most important point on the map to centralized it, and define the zoom factor you want.
  2. On the left-top corner of the map, click on the “Link to this page” link, and copy your browser’s location to the clipboard. You can do the same for complex maps created on the My Maps section of Google Maps website.

    Link selection

  3. While creating the post, select the text that will be displayed on the map marker, and create a link with it.

    Select text for the map's mrker

  4. Paste the map URL on the Link URL field, and on Title write “googlemap“.

    Link creation dialog

  5. Continue editing your post and publish.

You are done. This example will render a map like this (don’t forget to click on the marker to see the balloon):

TuxThis will be a map’s marker text with an image.

Passing Parameters

You may have noticed that on the Title field above we used other commands. In fact you can use the following switches, separated by “;” to control the way the map will appear in your site.

googlemap
Instructs the plugin to transform this link into a Google Map area. If not used, the plugin will not work on the link and you’ll get a plain link to the Google Maps site.
nocontrol or nocontrols
Renders a map without the zoom and scale controls
nomarker or nomarkers
Renders a map without the marker with the information balloon.
w:SIZE_IN_PIXELS and h:SIZE_IN_PIXELS
Defines the size of the map area in pixels.
w:PERCENT% and h:PERCENT%
Defines the size of the map area relative to full width and height.

Since other plugins may use the title attribute, you can also put these commands in the rel attribute and activate this functionality in the plugin configuration dialog.

Some examples for the Title (or rel) field:

googlemap
Renders a map with controls, marker an default sizes, as specified in the plugin’s admin page, under WP Options.
googlemap;nocontrols;w:300;h:200
Renders a 300×200 map with marker but no zoom controls.
googlemap;nomarker;nocontrols;w:100;h:100
Renders a small 100×100 map without marker and zoom controls.
googlemap;nomarker;nocontrols;w:100%;h:300
Renders a maps that fills the full width available with a 300 pixels height, without markers and zoom controls.

Creating Complex Maps

This procedure requires some HTML knowledge, but will let you create maps with multiple markers, and results as good as on this post.

The proccess consists of creating a definition list (<dl> XHTML element) of a center point and markers with their text balloons.

Learn by example. Pay attention to the following complex map, and select all its markers to see the text inside their balloons:

Center of map
map
Center of São Paulo
map
Flea market
map
Traditional market
balloonless marker
map
Japanese town

It was generated by this (X)HTML code:

<dl title=”googlemap;w:100%;h:400″>
	<dt><a href=”http://maps.google.com/?z=15&ll=-23.550887,-46.631985&om=1″>Center of map</a></dt>

	<dt><a href=”http://maps.google.com/?ll=-23.550592,-46.633122″>map</a></dt>
	<dd><strong>Center of São Paulo</strong></dd>

	<dt><a href=”http://maps.google.com/?ll=-23.547563,-46.631041″>map</a></dt>
	<dd>Flea market</dd>

	<dt><a href=”http://maps.google.com/?ll=-23.54535,-46.627693″ title=”marker”>map</a></dt>
	<dd>Traditional market</dd>

	<dt><a href=”http://maps.google.com/?ll=-23.54715,-46.637263″>balloonless marker</a></dt>

	<dt><a href=”http://maps.google.com/?ll=-23.555195,-46.635547″ title=”marker”>map</a></dt>
	<dd>Japanese town</dd>
</dl>

So the structure must folow these rules:

  1. Create a definition list (<dl>) and put map-related commands and parameters on title= attribute as specified above.
  2. First definition term (<dt>, first green line) must contain only a link to Google Maps site, to define its center and other map parameters. The text for the link is ignored when a map is generated, so use a text like “Center of Map” so people accessing your posts outside your blog (for exemple, through feed readers) will have a clue what is this link for.
  3. The rest is a pair of terms and definitions (<dt> and <dd>) with the marker position (as a Google Maps URL) and the text on the balloon respectivelly.
  4. You can create a balloonless markers specifying only a <dt> without a <dd>.
  5. Whatever you put inside the <dd> block will appear inside the balloon. Put links, images, lists, tables, etc.

Using Google My Maps or KML and GeoRSS maps

You can use Google My Maps service to create and manage colorfull markers, paths, regions and the text inside the balloon, and simply use the “Link To This Page” link to embed the map in your page as described above.

The plugin will use the KML-exported version of your map to create the balloons, markers, regions and paths. Simply exaplained, KML is XML dialect that contains all meta information of your maps: markers positions and images, line colors, balloon texts, etc. You can create KMLs with tools like Google Earth, Goole Maps or even using a plain text editor. GeoRSS format is also supported but can’t be used for paths, regions and markers colors, only plain geographical positions.

The good news is that you can embed KML-maps from any source, and not only from Google My Maps. You can upload a KML file to your web server and pass it to the plugin to render it. Here is an example on how to do it in a more advanced way:

<dl title="googlemap;w:100%;h:400" id="my-wonderful-map-with-kml">

	<dt><a href="http://maps.google.com/?z=7&ll=-23.550887,-46.631985&om=1">Center of map</a></dt>

	<dt><a title=”kml” href=”http://my.server.com/spots-on-the-farm.kml“>markers</a></dt>

	<dt><a title=”kml” href=”http://my.server.com/spots-on-the-beach.kml“>more markers</a></dt>

</dl>

This example will render a map centralized on geo position -23.550887 -46.631985 and overlay it with two KML specifications: spots-on-the-farm.kml and spots-on-the-beach.kml. Note the required title=”kml” parameter that indicates to the plugin that this is KML or GeoRSS overlay and not a plain marker position.

Positioning and Style Possibilities

To have better control over the map positioning and overall look, you can manually edit the HTML code while posting, including style and class attributes. Find the <a> or <dl> tag for your link and use this examples to get some clues:

  • <a style=”float:left; width:300px; height:300px;” title=”googlemap”
    Renders a 300×300 map floating on left of the paragraph. See example.
  • <a class=”photo” style=”float:right;” title=”googlemap”
    Renders a map with default dimensions floating on the right of the paragraph, with style class photo, that in my theme defines some margins and borders.
  • <dl style=”visibility: hidden;” title=”googlemap”
    Using style=”visibility: hidden” will make the browser hide the map definititon text while loading the page. Seconds later, when the plugin renders the maps on your page, the hidden blocks will finaly appear as maps.

The HTML attributes id=, style= and class= you specify will be inherited by the generated map.

In addition, a CSS class called map will be added to all maps, and to all balloons a CSS class named balloon will be assigned. This way you can define your own style for these elements.

Troubleshooting

Some common problems people have, and solutions.

  • Map does not appears or appears on a different geo location

    Make sure the Google Maps URL you are pasting is correct and complete. A correct URL must have the following parameters: ll= required to define latitude and longitude for center of the map or a marker, om= option to show or not the overview map on bottom-right, z= required to define the initial zoom factor, t= option to define if map is plain, satellite or hybrid, msid= required if you are pasting My Maps from Goole Maps website.

  • Problems with &

    You should not have problems with & chars being modified by the WordPress editor. If so, it means you are working with complex maps. Yes, WordPress WYSIWYG editor sucks a little bit. So if you are working with complex maps, you should switch to the plain text editor. You can’t just open the post editor in WYSIWYG and select the plain text editor after that. The mess was already done. You will have to edit your profile under Users->Your Profile and deselect the “Use the visual editor when writing” options when you edit that post. Once it is saved you can reselect it again.

  • Grey area instead of markers, or simply don’t have markers

    Google Maps API uses a lot of CSS style to render its maps on your page. This problem is caused by a conflict between CSS needed by Google Maps and your page or theme defined style. Use Firefox’ DOM inspector to drill down into your document structure until you find the markers XHTML nodes. Then switch to CSS Style Rules mode on the inspector, then select a rule that was defined by your theme, on the top-right box, then delete “background-” related properties on the bottom-right box, one by one, until the marker appears. This will indicate you which property you have to delete from your theme’s or own style.css file.

  • Problems displaying the map on IE7
  • I still don’t know what is the problem here. I rarely use Windows nor IE, so I can’t reproduce it. This is probably caused by the same CSS conflict above. If you can correctly see the map on this page with IE7, indicates that the problem is specific to your page and related stylesheets. You must debug your CSS styles.

No WordPress ?

If you use other blogging systems, or just want a simple way to create maps on your pages you can still take advantage of this plugin.

Download the plugin, unzip, install its content somewhere on your server accessible from the web. Then edit the HTML source of the pages you want to render maps, find the <head> block, and include the following code inside of it:

<!-- Google Maps Plugin (begin) -->
<!-- http://avi.alkalay.net/2006/11/google-maps-plugin-for-wordpress.html -->

<!-- Google Maps API -->
<script src="http://maps.google.com/maps?file=api&v=2.x&key=MY_API_KEY” type=”text/javascript”>
</script>

<!– Google Maps Plugin logic –>
<script src=”http://my.site.com/path/to/plugin/googlemapsPlugin.js” type=”text/javascript”></script>

<!– Google Maps Plugin initialization –>
<script type=”text/javascript”>
	//<![CDATA[

	MapPluginInit(
		/* Default maps width  */          500,
		/* Default maps height */          300,
		/* Use rel instad of title? */     false);
	//]]>
</script>

<!– Google Maps Plugin (end) –>

Change the red parts to fit your needs. Every page containing the above block will be able to render simple and complex maps as described.

About

This plugin was inspired on Macdiggs Google Maps plugin, but was completely redesigned, rewritten, has much more functionality, made more user friendly, has cleaner code and is more standards oriented. The former Macdiggs’ plugin will not receive updates anymore so this is the plugin you should be using.

  468 Responses to “Google Maps Plugin for WordPress”

#1

Awesome!! ’nuff said.

#2

[...] Avi is on a roll! He’s just released an Inline Google Maps plugin. [...]

#3

Google Maps Plugin…

#4

If I save my blog in UTF-8, the “&” will become “&” and the plugin fails…

#5

[...] 剛剛在「ijliao

#6

[...] Inline Google Maps è un plugin per WordPress che consente di inserire una mappa di Google tramite un link in un post come questo. [...]

#7

This plugin do not compatible with FancyToolTip,
because FancyToolTip will parse “title” attribute to “fancytooltip” attribute, so this plugin will not work.

So, I modify the code to use “rel” attribute of link:
http://www.goston.net/2006/11/13/647/

#8

Goston, I understand. But the link creation dialog on the post editor won’t give you an easy way to put controls. Using the rel attribute you’ll have to manually edit the HTML.

To have a single strong plugin, I propose to add an option to the admin dialog to let the user choose wether to use title or rel attribute.

I’ll accept a patch from you to implement it, or I can do it in a few days.

Thank you.

#9

ijliao, how it exactly fails ?

#10

Hi, Avi:
If user can choose title or rel attribute will be great!

In fact, I add a button in quicktag.js called GMaps. Give it a url (like link button), it will generate
<a href="url" rel="googlemap">xxxx</a> for the user.
but i don’t know how to do this via plugin… :)

#11

Goston, check the plugin code.
Look for a function called googlemaps_optionsSubpanel().
Change the HTML code there to include a checkbox, and follow the examples there to see how to save the option on the DB.

If you can send me an update, I’ll review it and release a new version.

Tell me more about this quicktag.js file. Did you change it directly on WP source code, or is it possible to make in a more modular way, in a plugin level ?

#13

Hi, Avi:
I have had send a update version to you.
I add a button on post editor named “Google Maps”, press the button give it url and location description then all code will be generate.
Review it, please.

#14

Hi Avi

It doesn’t appear to be working either on this page, or on my test site - I was using macdiggs version 2.0 earlier today and upgraded to 2.1 when it didn’t seem to be working (map not showing on his page either) and now I am using your version 3.1. Maybe Google have changed their API without notice?

Thanks for neatening it up. Cool.

#15

Upekshapriya, did you use the correct API key for your site ?

Do you have a post with a map on your blog so I can see it failing ?

#16

Hi Avi

What a weird combination of circumstances!

I wasn’t seeing the map on your page because I have NoScripts
extension installed in Firefox and had forgotten to enable your site!

However I have found that there seems to be a conflict with WP-UserOnline 2.05 from
http://www.lesterchan.net/portfolio/programming.php

which was the last plugin I remember installing - I deactivate it and hey presto the inline Google Map appears again!

Well that is interesting to find out.

Thanks for getting back to me.

#17

Does anyone know the name of the wordpress plugin that creates a list of your posts in a category instead of just displaying them one after the other? I want it so that when someone clicks on a category they just get a list of posts from that category.

I'm sure Ive seen one…and sifting through the WP site is a nightmare

#18

Hey, thanks, and it works great! Is there any easy way to get the default “Directiond to here / from here” behavior in the bubble?

#19

Holmes, I’m sure there is, but I’m affraid not with this simple plugin.

#20

Hi Avi,

unfortunately this does not seem to work with my blog.
Could you please have a short look?
http://www.hartmutkremer.de/2006/11/18/bettmeralp-were-going-skiing/

Thanks a lot,
Hartmut

#21

I can’t seem to get mine to work at all. I signed up for the google key, and aren’t sure what i’m doing wrong…

http://marylandcycling.com/?page_id=9

#22

Nick, you are using rel=”googlemap” buth have disabled the use of the rel attribute. Either enable it in the admin interface or make your link have a title=”googlemap”.

Hartmut, everything seems correct in your page. Don’t know why its not working.

#23

Thanks for your help. I finally figured it out - I did not upload the folder googlemaps into the plugin directory, just the two files. So when it was calling on the javascript it wasn’t loading it!

http://marylandcycling.com/?page_id=9

thanks!

#24

I think a cool feature would be to select or somehow only have the code show up on certain pages, that way everyime every single page loads its not waiting for the google maps server to respond.

Works great though!

#25

I retested it with an US link (instead of Switzerland) and it worked!?

#26

抓 3.1 版以後的就

#27

[...] 之

#28

Is anyone else having a problem with the google maps being shown in Firefox? It looks great in IE, but won’t show up in Firefox. Am I missing something?

#29

[...] Google Maps Plugin for WordPress Plugin interessante para quem precisa indicar locais. Seria uma boa para o Goitacá. (tags: ajax Google Maps plugin WordPress GoogleMaps) [...]

#30

[...] Avi Alkalay has updated his plug-in to add inline Google maps to WordPress posts. [...]

#31

[...] Google Maps Plugin for WordPress - Coloca o Google Maps em qualquer lugar do seu Blog. [...]

#33

hi avi

i’m stumped… have been unable to get plugin to display maps at all. tried regenerating api key several times, turned off all plugins, reverted to classic wordpress template, set utf-8 encoding, default permalink structure, without effect. could you possibly take a look and see if you can determine what i have clearly missed here

thanks much!

– joyce

#34

Joyce, interesting. I just discovered a bug in the plugin, but you can work around it easily.

The plugin will not work with the defult map that appears when you just enters the Google Maps website - and this is the map you re using for testing. I’ll try to fix that in near future.

Just go to Google Maps website, move the map a little bit, or go to a specific location you want and copy the link as described by the instructions.

I debugged your page. Everything else is OK. It will work.

Regards,

#35

Hi Avi,
I’m trying to use your plugin and not having success. I’ve looked at the problems that others have had and tried to solve it myself, but I still seem to be doing something wrong.
I’d love any input. Thanks,
Test post: Baseball Cities Tour

#36

[...] Avi Alkalay :: Google Maps Plugin for WordPress Excelente plugin para WordPress que permite inserir um Google Maps de maneira nunca antes tão facilmente conseguida (tags: goglemaps maps google plugins ajax wordpress plugin) [...]

#37

測試Google Map Plugin:新竹交通大學浩然圖書館…

這是從Google所

#38

xaevrzlsijo…

lkuzuvbeqo nrumpjmsee hsfpquhcb oljayhhplk …

#39

One thing that stopped it working for me which I fixed is not having in my header template.

must always appear before the tag for this plugin to work.

#40

Avi, this looks like a great plugin, and I am impressed how it works when it works, but I am having the same problem as some of your other users below: it’s just not working! Please take a look at my test page and let me know if you see what I may be doing wrong.

#41

Hi Avi,

This plugin looks great, but I am having trouble getting it to work. I’ve been through all the comments and suggestions here and not been able to get it. Could you take a look please at this test post and let me know what I’m doing wrong: http://designninjas.com/2006/12/06/google-maps-api/

#42

Sean, I debugged your page but couldn’t see anything wrong.

Maybe your API key is bad ?
Maybe you use some other plugin that also manipulates link attributes? Try to deactivte them for a while.
Maybe you should try using the rel attribute instead of the title. Check the page for details.

#43

Misty, your problem is the Snap plugin.
Google Maps and Snap both manipulate links attributes.

Try to not deactivate Snap but configure Google Maps plugin to use the “rel” attribute instead of the “title” attrib. Instructions on the page.

Otherwise you’ll have to deactivate Snap to see maps being rendered.

#44

Hi Avi,

Thanks so much for the quick response. I tried using the rel command and that didn’t seem to work either. It must be the Snap plugin like you said, but now I have to decide which one I want more. Thanks again for your help with this.

#45

Avi — Thanks for writing. I’ve tried everything you suggested. I used the rel attribute, generated a new API key, deactivated *all* of my other plugins, even switched themes, but the results are the same. The map simply doesn’t display. I appreciate the attention that you’ve already paid to this. I will just keep an eye on your site and watch for future updates. It looks *really* good when it works, so I look forward to resolving this in the future.

#46

Ok I have found a problem which will cause the map to show or not to show.

When you click create link sometimes the link Google maps differ. One link will cause the map to show while another link will not.

Here’s query one.

Here’s query two.

Both of these are the exact same street address. One shows and one doesn’t.

#47

Hone, I checked both links out and indeed I couldn’t see a difference.

You should use Firefox, use the error console, clear it, and reload the page to see if you get some errors.

#48

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.

#49

[...] Have been playing around with some wordpress plugins for google maps, so that when we go away I can have a map style blog to show where we have been etc. This is just a test post for one of the Plugins (http://avi.alkalay.net/2006/11/google-maps-plugin-for-wordpress.html) [...]

#50

Hi again,
I had given up on this plugin working at one point, but spent some time with it and I got it working. Let me explain what I did so that it may help solve other problems.
I followed the instructions as written, but would always end up with a link in the post and NO map. I edited the html code for the link and replaced the beginning of the link all the way up to the “?”.
I changed it FROM: “http://www.google.com/maps?” TO: “http://maps.google.com/maps/geo?”. Then I saved the post. The next time I looked at the page, the link was replaced by the map.

hope it helps.

#51

[...] For my own use, I’m combining the new Google Maps Plugin with the excellent WP-AddQuicktag plugin. This lets me have a button to click that adds the options I most commonly use for maps, and makes it easy to change them when I need to. If, like me, you never use the WordPress rich text editor, I’d recommend this method, as otherwise you’ll have to edit the link the plugin creates.[2] [...]

#52

i am a student

#54

Thanks Sethr. I was unable to get working and used your url changes and now it works great. Not sure how you discovered that but saved me lots of time. I changed it FROM: “http://www.google.com/maps?

#55

Hi! Great tool. Yet it kills my javascript menu - it does no longer expand/collapse (like slashdot menu). Would you be so kind to have a look: http://service.miejsca.org/

#56

I guess it must be ‘onload’ function conflict…

#57

Is it possible to make the plug-in work with a google map link looking like this

http://maps.google.com/maps?q=xx.xxxxxx+xx.xxxxxxx

Where the X’s is the coordinates. When i try it now, it jusnt show anything…?

#58

Sweepe, no.

By default the plugin will look for “ll=lat,long” in the URL.
A “q=…” attribute may have any kind of text (e.g. a city name), so the plugin can’t proccess both attributes, ll and q.

Anyway, this request went into my wishlist for next versions. So I’ll review it in the future.

#59

Well… Ok, Thanks for that reply.

Its because im going to a place where i only can use e-mail to update my blog, so i am not able to go to googlemaps.com to get the URL. Do you know any way i can get your great plug-in to work then, when the only thing i have is the longitude and latitude…

Thank you in advance!

#60

Use URLs like this:

http://maps.google.com/?z=12&ll=12.34,-20.52

z= sets the zoom factor.
ll= sets the latitude and longitude.

Using “ll=xx.xxxx,yy.yyy” is the same as using “q=”.

I want to see your site when it will be working.

#61

Dont know why mine is not working properly. Can you take a look please?
http://www.syracuseacacia.org/get-directions/

Thanks

#62

Is there a way to put a link inside the information balloon?

#63

Dean, I guess so, but you’ll have to manually edit your post and put an < a > tag inside the original < a title="googlemap" >.

#64

Thanks for the quick reply but could give me an example of how to do that. I have been trying and it breaks. I was using the original plugin (Macdiggs v1.1) and it had that option of putting links in the balloon.

Thanks I appreciate your help

#65

[...] 找到一個 Google Maps Plugin for Wordpress [...]

#66

[...] Hier wohne ich! Diesen Beitrag habe ich auch mal in der Kategorie “Spielereien” veröffentlicht. Dort wird es dann in Zukunft ein bisschen was Technisches, aber auch Kurioses aus dem Internet geben. Für die Blogger: Das Plugin könnt ihr hier finden. [...]

#69

Hi! Why I can’t fill my info in profile? Can somebody help me?
My login is Kisakookoo!

#70

G’day Avi,

http://pano.com.au/blog/2007/01/20/testing-google-map-plugin/

Thanks for the fantastic plugin. I love the way it’s working on your site. I’m trying to implement the plugin to show place for virtual tours I’ve shot. I can get it (sort of) working in IE, but nothing in FF. The map & text labels are distorted vertically so something is messing with it.

I’ve tried ‘rel’ and ‘title’, I’ve disabled basically all plugins, disabled all ajax front end stuff etc, but nothing changes. I’ve used the ‘maps’ & ‘maps/geo’ urls etc. Here is the code I’m using at the moment:

Here’s the hill with the sculptures.

Another quick question: I don’t know how you’ve got your maps to display with no controls at all. I’ve been trying to do the same thing, but no luck. I’ve looked at your map code & it appears the same. Any ideas on that front? I don’t want all the controls on the small window I’m showing, they cover everything up.

Any help would be much appreciated.

Thanks,

Aaron.

#71

Aaron, your blog is unavailable right now, so I can’t analyze it.

To remove controls you just have to do <a title=”googlemap;nocontrols“… as described in the page.

Let me know when your blog is OK again. I want to have a look.

#72

Thanks Avi,

I had ‘nocontrol’ instead of ‘nocontrols’ which is stoopid of me. I’ve also tracked down the other problem (mentioned by a couple of others in the comments) the K2 theme. Google maps doesn’t work properly with K2. Clashing .css means you get no images, just a grey background in FF + a 13px offset here & there, and in IE you just get the 13px offset. There is a work around though, you can find it here:

http://code.google.com/p/kaytwo/issues/detail?id=179&can=2&q= - last 3 threads.

Thanks again,

Aaron.

#73

[...] I got the plugin from Avi Alkalay. You can download the plugin here and follow the very easy onscreen instructions of how to install this brilliant feature. It does involve signing up to Google but altogether thie whole process took me about 10 minutes. [...]

#74

Shit happens, is it?

#75

Hi Avi,
Is it possible, with your plugin, to set multiple maps markers on a single map?

Thank you!

Marco

#76

Hi Marco

With the simplicity described in the post, no.
But, using the plugin, plus simple JavaScript calls, you can do that.

I have to update the documentation to teach users how to do that. But I can’t do it in the next month.

#77

Hoorah - after an early hiccup I got this working a treat. The hiccup was that you DO need to use a maps.google.com address (it failed with the same map using maps.google.uk and I read below someone had the same problem with a swiss map)

THANKS

#78

I would like to display my hiking tracks in a map on my site. My GPS device (Garmin) and MapSource can produce .gpx files. Would it be possible to refer to a .gpx file on my server to generate the map ? How can I do this ?


Jaap

#79

[...] Grazie al plugin GoogleMaps per Wordpress è possibile inserire nel proprio blog visualizzazioni interattive di Google Maps, impostando anche la posizione, lo zoom e il livello di interazione permesso all’utente. Download e istruzioni in questo post: Google Maps Plugin for WordPress [...]

#80

Hi there!

Man, your plugin is awesome! It’s very easy to use, and I really like it.

But I have a little problem, and I was hoping you may help me. In IE, my maps I’ve set up in my blog, do now show up. In Firefox everything is ok! I can’t explain that, maybe you can. Thank you!

Here’s the blog:
http://www.csvd.ro/panoblog/

#81

Jaap, I don’t know.
I don’t think the Google Maps API support GPX files.

#82

it does not work for me… :-(
http://www.dozarte.com/buongusto/veneto/ristorante-xviii-secolo/
(the link is “mappa”)

#83

ok, I got it: it works only with links from the international version of G.maps!
bye

#84

I use a domain like buongusto.dozarte.com and I get an error message when I visit the site because the API key is registered fot http://www.dozarte.com; is there a way to remove the code from some pages to avoid this error?

#85

[...] But if anyone reading is interested it was done with Avi Alkalay’s Google Maps Plugin for Wordpress. [...]

#86

Hi The above looks great but I can’t find the link to the download and the link on wordpress plugin database is broken.

#87

Version 4.0 is out, completely redesigned and rewritten, more efficient, and with new capabilities.

New version can render complex maps, with multiple markers and hypertext balloons.

#88

Having problems with this plugin with Firefox. For example this map appears OK in IE but in Firefox the Google maps controls show but there is nothing but grey where the map should be. There are no js errors. Can you help?

#89

Thanks for this excellent plugin!

To me it seems there is a little bug: if your Wordpress article starts with the link to the map, your map will only be shown on the full view mode of the article. Only if the first word of the article is not the link to the map, I got it to show the map even on the homepage.

All best - Peter

#90

Version 4.1 was just released. Updates:

- Consolidation of complex maps with <dl>
- Support to balloonless markers
- Added scale control to maps
- Correct inheritance of HTML attributes as id=, class= and style=
- Maps are now generated with somee standard CSS classes: “map” and “balloon”

#91

[...] doch prima! Man muss nur das Wordpress-Plugin Inline-Google-Map runterladen, installieren und die Google-API eingeben. Danach reicht ein normaler Link im Artikel [...]

#92

Bodenseepeter, it works for me.

#93

Great plugin, just what I needed to help illustrate my forthcoming travels.
Have managed to get the simple map working in a few minutes: http://cjw.me.uk/?page_id=29
But no matter what I try I just cannot get the complex map working: http://cjw.me.uk/?page_id=53
I am running version 4.1 of your excellent script, and WP2.1.
I have checked the syntax again and again but to no avail, any help much appreciate.
Kind regards
Christopher

#94

Chris, I can see maps on both links you provided.

Works for me.

#95

this plugin is exactly what i was loking for. it’s great that you’ve made it public and it’s very nice from you giving free support.
i am trying to publish a complex map on this website http://openserver.cccb.org/blockboosters/?page_id=5
the map looks good, but i haven’t been able to make the marks appear. maybe you can check what’s wrong?

#96

Ignacio, thats because you copied my example that had some problem with WordPress and its handling of the ” ” char.

You can try fixing the ” ” on the code you copied.

#97

I can make the complex maps work fine in my post on my home page: http://www.globaljourney.net/index.php/2007/02/28/our-upcoming-sailing-trip/

But i cannot make it work on one of my more static pages:

http://www.globaljourney.net/index.php/last-known-location/

This is the code, I am using:


Last Reported Location
February 23st, 2007 10:30AM EST

Any ideas?

#98

Matt, try to edit the Google Maps URL, replacing “& amp ;” by “&”.

The WordPress editor thinks he is too smart and use to make changes on what we edit.

#99

Avi-

Thanks for the reply. I actually tried that already :(

I’ve deleted the old page and created a new page and that didn’t resolve the issue.

Are there any relevant DB entries other than the Page itself? What about cacheing?

Here’s the new page:

http://www.globaljourney.net/index.php/last-reported-location/

It’s crazy, b/c it seems to render the map, but google’s images aren’t displaying.

I tried switching from title to rel, but that didn’t work.

Also, I had a previous version of 3.0 or 3.1 installed prior to 4.1 and it worked properly, but I couldn’t get the complex map to work on 3x

#100

Here is the map with your URL:

Center point

I don’t know why its not working for you.

Complex maps will only work on version 4.0 or newer.

#101

hi
your tool is exactly the one i was lookin for.

just one thing - is it possible to change the marker - like
http://www.google.com/mapfiles/dd-start.png for the beginning of my route
and
http://www.google.com/mapfiles/dd-start.png at the end of my route

so people can follow my hollyday trip and see where my start and end point was.
where do i have to change it - is it possible?

thx niko

#102

Is there a way to colour the markers as per gmapez2?

Thanks.