Google Maps Plugin

Name Google Maps Plugin
Vendor Atlassian Software Systems (Website)
Authors Mike Cannon-Brookes, Agnes Ro, Simon Mittag, Keith Brophy, Richard Wallace, Nathan Dwyer
Homepage http://confluence.atlassian.com/display/CONFEXT/Google+Maps+Plugin
Issue Management http://developer.atlassian.com/jira/browse/GMAP
Continuous Integration n/a
Categories Content Macros
Most Recent Version 0.7.1
Availability Confluence v2.8.0 to v3.0.0_01
State Stable
Support Unsupported Plugins
License Freeware / Open Source (BSD)
Price Free
Release Docs http://confluence.atlassian.com/display/CONFEXT/Google+Maps+Plugin
Java API Docs n/a
Download Source http://svn.atlassian.com/fisheye/browse/public/contrib/confluence/gmaps-plugin/
Download JAR gmaps-confluence-plugin-0.7.1.jar

Compatibility With Confluence

Plugin Versions 2.8 2.9 2.10 3.0
0.7.1

Description

A macro for including Google Maps of particular addresses within a page.

Installation

Upload this macro using the Plugin Manager.

This plugin now accessable through the Confluence Repository Client.
Upgrading

You must disable the plugin before uninstalling, and enable it after reinstalling - not doing so will result in an exception when registering the component.

Macro parameters

Parameter Name Required Possible Values Default
name   any valid DOM id  
width  
700
height  
500
style   any valid class name
zoom  
13
maptype   (map, satellite, hybrid, terrain)+ map,satellite,hybrid
displaymap   map | satellite | hybrid | terrain map
controls   none | auto | large | medium | small auto (size calculated from width and height)
mapscale   true | false true
maptypecontrol   true | false true
overview   true | false false
drag   true | false true
doubleclickzoom   true | false true (only has an effect if drag is enabled)
wheelzoom   true | false false
marker   true | false true
macro body yes the address to map

Macro body

The macros body can have any number of lines with these formats:

[place:] ([location=]<address>|<latlon> [| info=<info>]

directions: from= | to=

Examples

Map centered on a marker for San Francisco:

{gmap}
San Francisco
{gmap}

Map centered on San Jose with no marker

{gmap}
37.269135,-121.873398
{gmap}

Equivalent to the last one:

{gmap}
place:address=37.269135,-121.873398
{gmap}

With a info box if you click on the marker

{gmap}
San Francisco
{gmap}

Some cities:

{gmap:zoom=3}
Chicago
San Francisco
New York
Seattle
{gmap}

Alternately (centered on Nebraska, but with no marker):

{gmap:zoom=3|marker=false}
Nebraska
place:San Francisco|info=The City
place:address=New York|info=The big apple
place:address=Seattle|info=Cold, dark place
Chicago|info=Someplace in the middle
{gmap}

Some directions:

{gmap}
directions:from=24th and Mission SF CA|to=Geary and 20th SF CA
{gmap}

And...

{gmap}
16th and Mission SF CA|info=The heart of the mission
Alcatraz
18th and Missouri SF CA
directions:from=San Francisco|to=Napa, CA
1 Embarcadero San Francisco, CA|info=Slanted Door restaurant
{gmap}

Version History

Version Date State License Price
Show description 0.7.1 (#7) 30 Oct 2008 Stable Freeware / Open Source (BSD) Free

Release Notes
Rewritten to provide better access to the Google Map API.

Contributors

  • Nathan Dwyer — Developer

Show description 0.5 (#6) 16 Oct 2007 Stable Freeware / Open Source (BSD) Free

Release Notes
Added ability to configure multiple API keys for use with different hosts. When the macro is loaded, the approriate key to use is determined from the browser window rendering the macro.

Contributors

  • Richard Wallace — Developer

Show description 0.4.1 (#5) 29 Jul 2007 Stable Freeware / Open Source (BSD) Free

Release Notes
Rebuilt Keith's fix for GMAP-5

Contributors

  • Keith Brophy — Developer
  • Simon Mittag — Developer

Show description 0.4 (#4) 18 Mar 2007 Stable Freeware / Open Source (BSD) Free

Release Notes
Updated to google maps API 2.0. Added additional attributes to format maps (zoom, controls, marker, maptype)

Contributors

  • Simon Mittag — Developer

Show description 0.3 (#3) 13 Mar 2007 Stable Freeware / Open Source (BSD) Free

Release Notes
Workaround for confluence 2.3 error described in (CONF-7748). This plugin now also supports non US addresses that are geocoded by google maps - this fixes (GMAP-4)

Contributors

  • Simon Mittag — Developer

Show description 0.2 (#2) 06 Jul 2006 Stable Freeware / Open Source (BSD) Free

Release Notes
Fixed IE errors. (CONF-6519).

Contributors

  • Agnes Ro — Developer

Show description 0.1 (#1) 27 Feb 2006 Stable Freeware / Open Source (BSD) Free

Contributors

  • Mike Cannon-Brookes — Developer

Labels

macro macro Delete
google-maps google-maps Delete
confluence13 confluence13 Delete
confluence14 confluence14 Delete
confluence20 confluence20 Delete
confluence21 confluence21 Delete
plugin plugin Delete
repository_current repository_current Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Mar 01, 2006

    Guy Fraser says:

    This plugin seems to fail for any address outside the USA I went to maps.googl...

    This plugin seems to fail for any address outside the USA

    I went to maps.google.com, put in the address and it recommended a different (but correct) address - I then pasted that in to the macro body and the macro still failed to display the location.

    1. Mar 01, 2006

      Guy Fraser says:

      Ah, you're using "geocoder.us" = USA only. Does anyone know of any other free g...

      Ah, you're using "geocoder.us" = USA only. Does anyone know of any other free geocoders?

      1. Mar 01, 2006

        Guy Fraser says:

        Some hunting later... http://maps.google.com/maps?oi=map&output=js&q=A...

        Some hunting later...

        http://maps.google.com/maps?oi=map&output=js&q=ADDRESS_GOES_HERE
        

        You'll need an exact address and the results will be embedded within a load of JS - however, if the address is found you will see an @ sign near the end followed by the lat/long. Some regex'ing would likely be able to pull the lat/long or warn if the address was not found.

        As for getting addresses outside the US, you have to be extremely specific - in short you'll have to put your address in to Google maps and see what it finds, then use the suggested address exactly as shown in order to find the geocode. Still, at least this would allow a much wider range of addresses to be located.

        It would be useful if there was some level of caching in there too in order to reduce calls to the remote server.

        I also found this API from Yahoo! but it seems to be US only:

        http://developer.yahoo.net/maps/rest/V1/geocode.html

        More searching and found a canadian geocoder:

        http://geocoder.ca/?api=1

        Ah, this one might do the trick...

        http://emad.fano.us/blog/?p=277

        1. Apr 29, 2006

          Ruediger Jungbeck says:

          If you take http://maps.google.com/maps?output=kml&q=ADDRESS_GOES_HERE ...

          If you take

          http://maps.google.com/maps?output=kml&q=ADDRESS_GOES_HERE
          

          you will get a nice looking (and easy to parse) XML file (which also works for Google Earth).

          This will also work for international addresses (if specified correctly).

          1. Apr 29, 2006

            Guy Fraser says:

            Just tried it and it worked first time - nice one! This will certainly be a much...

            Just tried it and it worked first time - nice one! This will certainly be a much better way to geocode the addresses in the gmap plugin than the current US-only way.

            1. Oct 24, 2006

              Christian Løverås says:

              Where do I specify the geocoder?

              Where do I specify the geocoder?

  2. Mar 02, 2006

    Charles Miller says:

    We should at least add a way to skip the geocoding step and provide an ICBM addr...

    We should at least add a way to skip the geocoding step and provide an ICBM address directly.

    1. Mar 02, 2006

      Guy Fraser says:

      Perhaps a param of "dataType" = address (multiple addresses, one per line?) / ge...

      Perhaps a param of "dataType" = address (multiple addresses, one per line?) / geocode (affectionately known as ICBM) / nac (natural area code) / table (a table of addresses?)

  3. Mar 02, 2006

    Brendan Patterson says:

    I botched my Google Map key for my site. How do I dump the first one I put in a ...

    I botched my Google Map key for my site. How do I dump the first one I put in a new one? That is without resorting to hacking of the database?

    1. Mar 02, 2006

      Brendan Patterson says:

      Ah ha! So today I learned about bandan. The Google Maps key is being stored not ...

      Ah ha! So today I learned about bandan. The Google Maps key is being stored not via the ContentPropertyManager but via Bandana. This appears to be an XMLSerializer being used to store global / config type data for Confluence. This can be found at confluence-data-dir/config/confluence-global.bandana.xml

      Once there the key is clearly marked and can be edited:

          <entry>
            <string>ext.gmaps.api.key</string>
            <string>ABQIAAAAkmi-K3_H9t7UlmUGXJoB9xRQKQXmVp9WnuNec_QyhNoEciuvxxT6i8iiIkxW_-KGeEsYu_e2TafQJA</string>
          </entry>
      

      Everyone who has commented likely knows this, but it may save someone somewhere some time.

      I also learned that your Google maps key is generated for http://www.site.com/somedir

      then you're good to go for the rest of that server http://www.site.com/somedir/AAA http://www.site.com/somedir/BBB http://www.site.com/somedir/CCC

      If you try to generate a key for http://www.site.com/somedir/AAA then your Google Map key won't work.

      1. Mar 02, 2006

        Mike Cannon-Brookes says:

        For reference, if you set the key wrongly you can still reset it. Go to http://w...

        For reference, if you set the key wrongly you can still reset it. Go to http://www.yourserver.com/admin/plugins/gmaps/configure.action as an Administrator, and you can reset the key through the web interface.

        (In Confluence 2.2, there are neat little 'Configure plugin' links which make all this work seamlessly)

  4. Mar 28, 2006

    Kurt Werle says:

    I'm a bit confused as to what this does. Does it add a link that will open up a...

    I'm a bit confused as to what this does. Does it add a link that will open up a map, or does it include the map itself in the page? The examples show the use without the result!

    'cause I want the former, not the latter.

    1. Mar 28, 2006

      Mike Cannon-Brookes says:

      Kurt - the macro embeds a Google map (scrollable, zoomable etc) within the page ...

      Kurt - the macro embeds a Google map (scrollable, zoomable etc) within the page itself. There is no link right now to open up the map at maps.google.com but that could be added if you want one?

      1. Mar 28, 2006

        Kurt Werle says:

        Yeah - have a bunch of addresses (local restaurants). Maps would be too big, bu...

        Yeah - have a bunch of addresses (local restaurants). Maps would be too big, but links would be great.

        1. Mar 28, 2006

          Guy Fraser says:

          It might be worth making a {gmap-link} macro?

          It might be worth making a {gmap-link} macro?

        2. Mar 28, 2006

          Mike Cannon-Brookes says:

          Kurt - if you just want a link, you can use a simple Confluence link? ie "The At...

          Kurt - if you just want a link, you can use a simple Confluence link? ie "The Atlassian SF office is here" Or am I misunderstanding what you want to do?

          1. Mar 28, 2006

            Guy Fraser says:

            I'm guessing he wants something like: {gmap-link}address goes here{gmap-link} ...

            I'm guessing he wants something like:

            {gmap-link}address goes here{gmap-link}
            

            That would automatically work out the URL thus leaving markup cleaner...?

            1. Mar 28, 2006

              Kurt Werle says:

              Right. Which leaves the door open to popup maps on hover, link api changes, and...

              Right. Which leaves the door open to popup maps on hover, link api changes, and spiffy features I can't even imagine. Though something like

              Unknown macro: {gmap-link [start address]}
              target address
              Unknown macro: {gmap-link}
              that gives you directions would be cool, too. Obviously there are plenty of options...

  5. May 05, 2006

    Peter Shaw says:

    Just wanted to check if anyone else was seeing a failure of this plugin when usi...

    Just wanted to check if anyone else was seeing a failure of this plugin when using Internet Explorer (on PC) - only just noticed myself as I normally use FF (on both mac & PC). One of my colleagues (who's used the API before) seemed to think it was probably a bug in IE where the javascript has to be in a particular position on a page as mentioned here

    Confluence v2.2-dr2 Build #510 (on Mac OS X 10.4.6), FF v1.5.03 on Mac & PC, IE v6.0.2900.2180 on Windows XP SP2

    1. May 22, 2006

      Christain Stovall says:

      It crashes all the IEs around here too. Pity, because its a damn cool plugin.

      It crashes all the IEs around here too. Pity, because its a damn cool plugin.

      1. Jul 06, 2006

        Agnes Ro says:

         The IE problem has been fixed in version 0.2

         The IE problem has been fixed in version 0.2

  6. Jul 12, 2006

    Steve Soskin says:

    I can get the macro to work just fine in IE. Firefox however presents me with a...

    I can get the macro to work just fine in IE.
    Firefox however presents me with a blank page.
    Any clues?

    1. Jul 12, 2006

      Steve Soskin says:

      Just as a PS - I can get the macro to work in FireFox if I use the IEtab extensi...

      Just as a PS - I can get the macro to work in FireFox if I use the IEtab extension for FireFox....

      1. Jul 12, 2006

        Agnes Ro says:

        I have tried on two different machines using firefox (without the IEtab extensio...

        I have tried on two different machines using firefox (without the IEtab extension) and I don't seem to be having this problem... is anyone else also getting a blank page?

        1. Jul 14, 2006

          Steve Soskin says:

          I've done further testing on FireFox on a linux machine as well as on a Mac with...

          I've done further testing on FireFox on a linux machine as well as on a Mac with the same blank page as a result. I also tried Netscape on a Mac - also a blank page.

          1. Jul 14, 2006

            Mike Cannon-Brookes says:

            Steve - just tried here and it works fine. What exact version of Firefox are you...

            Steve - just tried here and it works fine. What exact version of Firefox are you using? what version of Confluence and the Google Maps macro? Tks, Mike

            1. Jul 14, 2006

              Steve Soskin says:

              Hi Mike - I'm using Firefox 1.5.0.4    Confluence 2.2.5 and Goog...

              Hi Mike -

              I'm using Firefox 1.5.0.4    Confluence 2.2.5 and Google Maps macro 0.2

              thnx,

              steve

              1. Jul 14, 2006

                David Peterson [CustomWare] says:

                Could it be a problem with Flash? Does Google Maps work at all on your computer?...

                Could it be a problem with Flash? Does Google Maps work at all on your computer? Sounds weird...

                David

                1. Jul 21, 2006

                  Steve Soskin says:

                  Yes - Google Maps works fine  on the computer in Firefox - just not from th...

                  Yes - Google Maps works fine  on the computer in Firefox - just not from the plugin. It's only the plugin - and its the same for all of our users......they can see the map in IE6 when in Confluence with the plugin....but the same page in Firefox (unless using IE tabs) renders a blank page.

  7. Jul 21, 2006

    Steve Soskin says:

    Is it possible that our Confluence install is possibly bad? As I said - the map ...

    Is it possible that our Confluence install is possibly bad? As I said - the map renders fine in IE 6 and IE 7 and Firefox with IE Tab on a PC. We get a blank page in all browsers on a Mac.

  8. Jul 21, 2006

    Steve Soskin says:

    OK - I think I figured it out. It looks like the Builder Plugin is what is causi...

    OK - I think I figured it out. It looks like the Builder Plugin is what is causing the blank page. I created a space without Builder and the map renders just fine.  In addition, in IE - with Builder and the map. the Builder menu doesn't render but the map does.

    1. Jul 21, 2006

      Guy Fraser says:

      Thanks for the info Steve - we'll look in to this over the weekend. If possible,...

      Thanks for the info Steve - we'll look in to this over the weekend. If possible, could you email us the wiki notation you're using (to usual email addr) as it'll allow us to set-up our testing area more quickly.

      1. Jul 26, 2006

        Steve Soskin says:

        Any update on using gmaps with Builder? thnx, steve

        Any update on using gmaps with Builder?

        thnx,

        steve

  9. Aug 09, 2006

    Test says:

    I can't get this to work for UK addresses no matter how I format it. It doesn't ...

    I can't get this to work for UK addresses no matter how I format it. It doesn't work even if I get the geocode co-ordinates:

    Error locating address: Waterloo Road, Lambeth, SE1, UK
    Error locating address: Waterloo Road, Lambeth, UK
    Error locating address: Waterloo Road, Lambeth, Greater London, SE1, UK
    Error locating address: -0.112503,51.504278
    Error locating address: 51.504278,-0.112503
    Error locating address: -0.1105, 51.5027

    Does anyone have any ideas on getting around this?

    Cheers!

    1. Aug 27, 2006

      Guy Hoogewerf says:

      I haven't had success either yet... does Google Maps work with Builder anyone?

      I haven't had success either yet... does Google Maps work with Builder anyone?

      1. Aug 27, 2006

        Guy Fraser says:

        Google API doesn't work well with UK addresses - it seems fine with Canadian and...

        Google API doesn't work well with UK addresses - it seems fine with Canadian and USA addresses, but not UK and Europe, etc

  10. Aug 11, 2006

    Troy Feeken says:

    With this plugin is there a way to display a large scale map with many points to...

    With this plugin is there a way to display a large scale map with many points to display static on the map? It would work sweet for our confluence site to display all of our customers across the US.

     Good work Atlassan, your stuff is priceless to our company.

    Troy 

  11. Aug 24, 2006

    Steve Soskin says:

    Tried to run the macro in a space and received the following error: com.opensy...

    Tried to run the macro in a space and received the following error:

    com.opensymphony.xwork.config.ConfigurationException: There is no Action mapped for namespace /admin/plugins/gmaps and action name configure
     at com.opensymphony.xwork.DefaultActionProxy.(DefaultActionProxy.java:72)

    Running the 0.2 version with:

    Build Information:
    Confluence Home: /var/www/confluence
    Uptime: 2 days, 23 hours, 11 minutes, 38 seconds
    Version: 2.2.7
    Build Number: 524

    Server Information:
    Application Server: Apache Tomcat/5.5.12
    Servlet Version: 2.4
    Database Dialect: bucket.dialect.MySQLDialect
    Database Driver Name: com.mysql.jdbc.Driver
    Database Driver Version: 3.0

    Memory Information:
    Total Memory: 319 MB
    Free Memory: 155 MB
    Used Memory: 164 MB

    System Information:
    System Date: Thursday, 24 Aug 2006
    System Time: 13:23:03
    System Favourite Colour: Taupe
    Java Version: 1.5.0_05
    Java Vendor: Sun Microsystems Inc.
    JVM Version: 1.0
    JVM Vendor: Sun Microsystems Inc.
    JVM Implementation Version: 1.5.0_05-b05
    Java Runtime: Java(TM) 2 Runtime Environment, Standard Edition
    Java VM: Java HotSpot(TM) Server VM
    User Name: tomcat
    User Timezone: America/Los_Angeles
    Operating System: Linux 2.6.9-22.ELsmp
    OS Architecture: i386
    Filesystem Encoding: UTF-8

  12. Dec 19, 2006

    Justin Stewart says:

    Another great feature here - the ability to map multiple addresses or lat/longs....

    Another great feature here - the ability to map multiple addresses or lat/longs.
    Right now I have a custom application to do this ...

    1. Jan 18, 2007

      Jeff Schnitter says:

      Can you clarify your comment.  Are you currently able to map multiple addre...

      Can you clarify your comment.  Are you currently able to map multiple addresses with the gmap macro or are you saying it would be a nice feature if it could be added?  I'd love to be able to map multiple addresses on one map, just like Troy mentions above, so that we could plot all of our customers on a single map.

  13. Jan 03, 2007

    Benjamin Doherty says:

    I don't have commit privileges on this plugin, but I was able to hack together s...

    I don't have commit privileges on this plugin, but I was able to hack together some new features and I've put the revised source code on the JIRA page for this plugin. Now international addresses can be mapped (except UK but I don't know why) and "plain language" locations can be mapped. If you can search it on Google Maps, you can also find it with my changes. For example, these locations now work:

    Tallaght Ireland
    Hyde Park Illinois

  14. Jan 19, 2007

    Serge Monkewitz says:

    Has anyone gotten this to work with Confluence 2.3? Once I got around not being ...

    Has anyone gotten this to work with Confluence 2.3? Once I got around not being able to configure it via the repository, all I get is this:

    Error formatting macro: gmap: java.lang.NullPointerException
    345 Alabama St, San Francisco, CA

    I'm a confluence newbie, so I'm not sure where to find the stack trace (I checked all files ending with .log).

    1. Jan 24, 2007

      David Loeng says:

      Serge, I too can reproduce this problem. I have a filed a bug report for the u...

      Serge,

      I too can reproduce this problem. I have a filed a bug report for the underlying cause of this error:

      http://jira.atlassian.com/browse/CONF-7748

      Cheers,
      Dave

  15. Jan 27, 2007

    Robert Brandt says:

    I am working with a brand new installation of confluence, evaluating it.  A...

    I am working with a brand new installation of confluence, evaluating it.  After reading through the preloaded pages, I started installing some interesting looking plugins.

     After installing but not using the Excel plugin, I installed this google maps plugin.  Immediately, I got and error with this cause listed:

    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getActionName' in class com.atlassian.confluence.user.actions.LoginAction threw exception class java.lang.NullPointerException : null
     at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:309) caused by: java.lang.NullPointerException
     at com.atlassian.plugin.impl.StaticPlugin.getResourceDescriptors(StaticPlugin.java:128)

    My confluence install is now unuseable.  How do I bring it back to life? 

    1. Jan 30, 2007

      Don Willis says:

      Hi Robert, That's odd. I tried to reproduce it and had the same behaviour as S...

      Hi Robert,

      That's odd. I tried to reproduce it and had the same behaviour as Serge and Dave above. I'd suggest this strategy to revive Confluence:

      1. Restart Confluence.
      2. If that doesn't work, stop Confluence and remove the plugin using these instructions (See Removing Plugins that prevent Confluence Running)
      3. If that doesn't work, create an issue at http://support.atlassian.com.

      Cheers,
      Don

      1. Jan 30, 2007

        Robert Brandt says:

        Thanks for the reply.  I had tried restarting previously and it didn't help...

        Thanks for the reply.  I had tried restarting previously and it didn't help.  I opened a ticket on it with Atlassion and they told me to manipulate the hsql data, which I had a hard time doing.  So, since I was having trouble with some plugins with v2.3.1 and I wanted to connect to MySQL anyway, I scrapped the initial install and went with 2.2.10.  All seems to be working OK now.

  16. Feb 26, 2007

    Ming Yu says:

    I installed the google map plugins to version 2.3.3, enter a map API key, and it...

    I installed the google map plugins to version 2.3.3, enter a map API key, and it worked for the address I first entered.  Then I tried to change the address to a different one, it gave me an error:

    Error locating address: 11100 Johns Hopkins Rd, Laurel, MD
    

    We know this is a valid address, I also tried other addresses, they all have the same problem.
    My question is: how to re-configure the google map plugin, how to re-install an API key?
    Thanks

    • Ming
    1. Feb 26, 2007

      Agnes Ro says:

      Hi Ming, You can configure the API key by going to SERVER_BASE_URL/admin/plugin...

      Hi Ming,

      You can configure the API key by going to SERVER_BASE_URL/admin/plugins/gmaps/configure.action

      Agnes.

      1. Feb 28, 2007

        Ming Yu says:

        Thanks.  I got a new key.  Now the problem I have is that if I put in ...

        Thanks.  I got a new key.  Now the problem I have is that if I put in the sample address, it works fine. {gmap:height=400|width=1000}16th St and Alabama St, San Francisco, CA{gmap}", if I put in "{gmap}11100 Johns Hopkins Rd, Laurel, MD {gmap}" I got an error:

        Error locating address: 11100 Johns Hopkins Rd, Laurel,MD. 

        Thanks for your help.

        • Ming
        1. Feb 28, 2007

          Sherry says:

          I have the same problem. {gmap:height=400|width=1000}725 16th St and Alabam...

          I have the same problem. {gmap:height=400|width=1000}725 16th St and Alabama St, San Francisco, CA{gmap} works fine. But when I try {gmap:height=400|width=1000}Stanford, CA{gmap}, I get: Error locating address: Stanford, CA

          Also, when I try to put up two maps (i.e. {gmap:height=400|width=1000}16th St and Alabama St, San Francisco, CA{gmap} {gmap:height=400|width=1000}121 Campus Drive, Stanford, CA{gmap}), only the second one appears.

          Would really appreciate your help.
          Regards,
          Sherry

          1. Mar 02, 2007

            Ming Yu says:

            Another finding, I would like to see if anyone has the same experience.  If...

            Another finding, I would like to see if anyone has the same experience.  If I put in any CA address, such as {gmap:height=400|width=1000}121 Campus Drive, Stanford, CA{gmap}, it works fine. If I put in an address outside CA, I got this error: Error Locating address...

            • Ming
  17. Mar 06, 2007

    Sherry says:

    Hello, a few issues: 1) I tried displaying a map on IE7, and the map appears, b...

    Hello, a few issues:

    1) I tried displaying a map on IE7, and the map appears, but the pin doesn't -- I get a black splotch instead -- any ideas? Works fine in Firefox though.

    2) I can't seem to display two maps on the same page.

    3) Addresses as mentioned above (just a city or state) still give an "Error locating address" message. The coordinates seem to check out okay after running through the geocoder, but somehow the map doesn't display.

    Any ideas? Would really appreciate some help and comments

  18. Mar 08, 2007

    Simon Mittag says:

    Google maps Australia support would be nice after their relaunch, I've added a J...

    Google maps Australia support would be nice after their relaunch, I've added a Jira issue here: http://developer.atlassian.com/jira/browse/GMAP-4

    I'm willing to help out fix this, msg me if interested.

  19. Mar 13, 2007

    Simon Mittag says:

    Google maps plugin should now work with confluence 2.3 again. Also try out new n...

    Google maps plugin should now work with confluence 2.3 again. Also try out new non US addresses, like "Sydney, Australia". Ming, I've tried your address "11100 Johns Hopkins Rd, Laurel, MD" and it works for me. Please let me know if you have any well formed addresses that do work in google maps and don't work in the plugin.

    1. Mar 13, 2007

      Ming Yu says:

      Simon - I have done my initial testing.  It works great so far.  Thank...

      Simon - I have done my initial testing.  It works great so far.  Thanks for the great work.

       - Ming

  20. Mar 15, 2007

    Stephen Morad says:

    Any chance we could get this plugin updated to support proxied environments?&nbs...

    Any chance we could get this plugin updated to support proxied environments?  Our Confluence server does not have direct access to the Internet and even going through a proxy (from the server) is questionable.  It would be nice if the geocoding part could either be done client-side or bypassed (i.e. by entering the geocoordinates rather than the address).  Any chance on getting this feature added?

  21. Mar 18, 2007

    Simon Mittag says:

    Added another release (0.4). You can now select 'maptype=Satellite' or 'maptype=...

    Added another release (0.4). You can now select 'maptype=Satellite' or 'maptype=Hybrid' for google earth satellite photography overlays.

    Also new are the 'zoom', 'controls' and 'marker' attributes.

    Zoom (1-17) comes in handy if you have smaller maps as google renders them pretty bad at a low zoom level.

    Controls defaults to true and hides the map controls when set to false, same goes for the 'marker' attribute and the map marker.

    Double clicking into the map should now zoom in/out with the left and right mouse buttons.

    1. May 19

      Adam Cohen says:

      cool tool! looks like zoom:20 works, which corresponds with the slider widg...

      cool tool!

      looks like zoom:20 works, which corresponds with the slider widget on maps.google.com

  22. Apr 04, 2007

    Paul Carruthers says:

    I'm struggling to get UK addresses working...any ideas? Have the latest version ...

    I'm struggling to get UK addresses working...any ideas? Have the latest version of the plugin (0.4), API key installed and international places such as "Sydney, Australia" work OK. I'm on standalone version 2.2.8

    Has anyone got this working and offer me any clues? Any help gratefully rec'd.

    PC. 

  23. Apr 19, 2007

    Chris Fowles says:

    Any possibility of adding the ability input an KML file (as an attachment) so yo...

    Any possibility of adding the ability input an KML file (as an attachment) so you can display multiple locations?

    We'd like to be able to display a list map of our current customers, prospects, etc all on one map.

  24. Jun 02, 2007

    Arne Lovius says:

    Running Version: 2.5.3 Build:#808  and UK lookups still don't work, German ...

    Running Version: 2.5.3 Build:#808  and UK lookups still don't work, German ones do, French ones do, even Beligian ones do, but the UK seems to be blank...

    I get an error on the page (IE7) when I try a UK location, which I don't get with anywhere else that I've tried.

    Line: 314
    Char: 87
    Error: 'null' is null or not an object
    Code: 0
    URL: http://f.q.d.n/display/space/page
    

    Firefox doesn't display the error

    I am able to zoom out and scroll the map to the UK, as long as it starts somehere that is recognised

    edit: http://www.yourgmap.com/ appears to have the same problem, I wonder if there has been an API change...

  25. Jul 09, 2007

    Ethan Bearman says:

    Having trouble with this plugin: When I insert a gmap, it displays the zoom bar...

    Having trouble with this plugin:

    When I insert a gmap, it displays the zoom bars, the buttons for sat/map/hybrid, but no map.

    I had installed a key for www.site.name/display at the Google Maps API page... is that right?

    Help would be appreciated - and someone please let me know if there is a more appropriate place to be asking for help with this.

    Thx

  26. Jul 11, 2007

    Remon van Gijn says:

    same here Char: 87 Error: 'null' is null or not an object Code: 0 since l...

    same here

    Char: 87
    Error: 'null' is null or not an object
    Code: 0
    
    

    since last monday here (europe, netherlands) the gmap plugin stopped functioning , just controls no map.

    only tested with MSIE-7. Seems a google side change.

  27. Jul 12, 2007

    Keith Brophy says:

    Hi All, As far as I can tell, it appears that the call to enable dragging on th...

    Hi All,

    As far as I can tell, it appears that the call to enable dragging on the map causes the map to fail to load (i.e. the controls are loaded but the actual map does not).

     Recompiling the plugin without the line (19):

    map.enableDragging(); 

    seems to fix the problem.

    Cheers,

    Keith 

    1. Jul 12, 2007

      Remon van Gijn says:

      Seems an intermediate fix, but could you attach your compiled version ?

      Seems an intermediate fix, but could you attach your compiled version ?

  28. Jul 23, 2007

    Remon van Gijn says:

    Where can you get the source for this plugin ? The link above is empty ? i would...

    Where can you get the source for this plugin ? The link above is empty ? i would like to recompile with the sugested exclusion.

    Update:  Keith Brophy provided the recompiled version, it works again (in MSIE 7) and this version is attached gmaps-confluence-plugin-0.4-modified.jar .

  29. Jul 23, 2007

    Greg M. Smith says:

    Anyone have any luck with this? I have installed the modified version (.4-modifi...

    Anyone have any luck with this? I have installed the modified version (.4-modified) and have not been able to get any browser to work, I just get a blank googlemaps template (with the "Map/Satellite/Hybrid" and zoom in out buttons.  

  30. Jul 24, 2007

    Bill Callahan says:

    This bug is now being officially tracked by Atlassian:  http://developer.a...

    This bug is now being officially tracked by Atlassian:

     http://developer.atlassian.com/jira/browse/GMAP-5

    Bill

  31. Jul 29, 2007

    Simon Mittag says:

    I've rebuilt & released Keith's fix (thanks Keith!) as 0.4.1

    I've rebuilt & released Keith's fix (thanks Keith!) as 0.4.1

  32. Aug 19, 2007

    Andy Brook says:

    Anyone know why I can't have to instance of "gmaps" tag on one page?

    Anyone know why I can't have to instance of "gmaps" tag on one page?

  33. Aug 30, 2007

    Simon Mittag says:

    Andy, without having done any research that's probably got to do with the Javas...

    Andy,

    without having done any research that's probably got to do with the Javascript implementation on the client using global variables - they get in each other's way. I couldn't get 2 maps to work either, for now all I can recommend is putting them on separate pages.

    S.

  34. Oct 24, 2007

    Rick McMillin says:

    For some reason, I just can't seem to get this to work.  I'm sure it's just...

    For some reason, I just can't seem to get this to work.  I'm sure it's just me doing something dumb. Every time I try to access a page with a map on it, I get this error:

     "The Google Maps API key used on this web site was registered for a different web site."

    I've tried every URL I can think of when generating the API key with no luck.

    The actual URL of the Confluence installation looks like this:

    http://name-of-server.mydomain.com:8090/

    My Server Base URL is set to:

    http://confluence.mydomain.com/

    I also have Apache on my server set to proxy the "http://confluence.mydomain.com/" URL to "http://name-of-server.mydomain.com:8090/".

    One question I have about this is that the server I'm running Confluence on sits in our internal network, behind our firewall.  The site is not accessible from the outside.  Could that be the issue?

    What URL do I need to use when generating my API key? 

    1. Nov 10, 2007

      Jay Hariani says:

      We seem to be having the same problem (Confluence 2.6). We've been using the plu...

      We seem to be having the same problem (Confluence 2.6). We've been using the plugin frequently with no problems, but over the last few days Google seems to be rejecting our site's API key. We've tried to regenerate the key and update it in Confluence. No luck. Anyone else receiving this error?

    2. Nov 20, 2007

      James Cameron says:

      I just added the Google Maps plugin and see the same issue. We are running 2.6.1...

      I just added the Google Maps plugin and see the same issue. We are running 2.6.1 build #916 sitting on an internal server. In the next week or so this server is moving into the DMZ so I'll try again once it is outside the firewall

    3. Dec 20, 2007

      Simon Wheatley says:

      A note on Google API keys, it's slightly confusing. Google want you to enter t...

      A note on Google API keys, it's slightly confusing.

      Google want you to enter the "http://" prefix and a trailing slash when you generate your key. The plugin expects you not to enter the "http://" prefix, or the trailing slash when you add the key to configure the plugin. Further you should use you hostname, i.e. www.example.com or example.com, not including any "directory" that your confluence space or page is running in, i.e. to use a map on http://www.example.com/display/europe/Los+Ravers, you need a key for www.example.com.

      Further if your site is accessible on both http://www.example.com and http://example.com, you need keys for both options so that visitors to either will access your map(s) with a valid key.

      HTH, Simon.

  35. Nov 13, 2007

    Andrew Schoewe says:

    We have version 2.5.6 installed and it is having this same problem: "The Google ...

    We have version 2.5.6 installed and it is having this same problem: "The Google Maps API key used on this web site was registered for a different web site."

    Our site is behind a firewall, but shouldn't it still work?  I just installed it today, so it has never worked for me, but it would be very valuable if it did.  Any information on a workaround/solution would be appreciated.

    1. Nov 22, 2007

      Sam Currie says:

      I am also having the same issue with this plugin.  Does anyone have a fix t...

      I am also having the same issue with this plugin.  Does anyone have a fix to this problem?  Also exactly what URL should you use when generating a key?

      1. Nov 27, 2007

        Aaron Godert says:

        We just upgraded to the latest version of this plugin and started having this ex...

        We just upgraded to the latest version of this plugin and started having this exact same issue.  I've tried regenerating the API key and saving it several times but continue to have this problem.

        1. Nov 27, 2007

          Aaron Godert says:

          Downgrading to the previous version fixed this temporarily for us.

          Downgrading to the previous version fixed this temporarily for us.

          1. Nov 27, 2007

            Joe Van Quakebeke says:

            How did you find the older version?  I tried to install the older version l...

            How did you find the older version?  I tried to install the older version listed in the attachments and it failed PluginParse. 

    2. Nov 28, 2007

      Joe Van Quakebeke says:

      I have opened a JIRA ticket for this issue.  It is GMAP-12.  Joe ...

      I have opened a JIRA ticket for this issue.  It is GMAP-12. 

      Joe 

      1. Dec 11, 2007

        Joe Van Quakebeke says:

        I upgraded my server to 2.6.2 and the issue still exists.  I will update th...

        I upgraded my server to 2.6.2 and the issue still exists.  I will update the JIRA ticket also.

        1. Jan 10, 2008

          Jonathan Nolen says:

          Hi All, Trying to look into this, and I'm becoming suspicious that Google has r...

          Hi All,

          Trying to look into this, and I'm becoming suspicious that Google has recently started validating keys more strictly. Those people having trouble, can you let me know whether the site you're attempting to use the GMap on is publicly accessible via the web?

          Cheers,
          Jonathan

          1. Jan 24, 2008

            Matt D'Ercole says:

            Jonathan, Thanks for looking into this.  We are experiencing the "The Goog...

            Jonathan,

            Thanks for looking into this.  We are experiencing the "The Google Maps API key used on this web site was registered for a different web site." issue.

            Our site (www.syabaseball.org) is publicly accessible via the web. 

            I tried several different Google API keys with no luck.

            Thanks,

            Matt

            1. Mar 24, 2008

              Jonathan Nolen says:

              We've had a report that you can correct this problem by making sure that you put...

              We've had a report that you can correct this problem by making sure that you put your hostname into the configuration screen without the 'http://' or 'https://'. If someone can confirm this fixes the problem, we'll update the plugin to do the right thing in all circumstances.

            2. Aug 12, 2008

              Amitee Goulton says:

              I tried with and without http:// and the trailing /, I also tried with and witho...

              I tried with and without http:// and the trailing /, I also tried with and without the ":8090" which is setup for our server.

              In the end I added 4 keys, 2 for our .com domain and 2 for our .com.au domain (one with :8090 and one without) and finally I have a working map!

              So not entirely sure if it was the port or the domain name that was the problem, but I dare not test it any further now it's working.

              PS: Our server is not visible to the public.

  36. Dec 13, 2007

    Simon Mittag says:

    Google suggests they support a single "directory" on the web server you signed u...

    Google suggests they support a single "directory" on the web server you signed up for, i.e http://www.site.com/directory. I don't know if this is new in the maps API, but it sounds like it could be the cause of what people have reported.

    They also launched an enterprise version of google maps for applications. I need to research this further, stay tuned.

  37. Dec 13, 2007

    Simon Mittag says:

    looks like they have indeed changed the license and it is no longer free except ...

    looks like they have indeed changed the license and it is no longer free except for public noncommercial websites. This would explain keys going "poof" for different URLs than the registered one. Google maps has come out of beta this year, I suspect that's why the enterprise version. Maybe someone from Atlassian can comment on the situation? do we need an enterprise license for this plugin to work?

    1. Feb 08, 2008

      James Matheson says:

      As per one of the comments above, I got the macro to work again on my site by en...

      As per one of the comments above, I got the macro to work again on my site by entering the host without the leading 'http://' or the trailing '/'. For example, instead of http://www.saikore.com/, I entered www.saikore.com

  38. Mar 17, 2008

    Vinh-Thach Nguyen says:

    I saw these 2 issues with gmap: if used inside {expand} the location of the a...

    I saw these 2 issues with gmap:

    • if used inside {expand} the location of the address is not correctly centered on the map, completely out of view.
    • if used before {rsvp}, the map can not be displayed, completely blank, if used after it's OK.
  39. Apr 10, 2008

    Eugene Neymark says:

    For anyone that wants to add multiple markers on the map - showing several addre...

    For anyone that wants to add multiple markers on the map - showing several addresses - now you can!

    Currently Atlassian doesn't support this, to do it I've edited the velocity template - to show locations and their name.

    So you would enter

    {gmap} Eugene | San Francisco, CA
    Hawaii | Maui, HI
    MGM | Las  Vegas, CA {gmap}
    

    And this will display multiple locations and their names.

    To enable this - you will have to edit gmaps-macro.vm that is is inside templates directory.

    There, replace the logic that sets the marker with this code:

    original template code
    ....................
    
       //#else
                //map.disableDragging();
            #end
            //geoCode address and show map
    
    ## BEGIN NEW CODE
    		  #set($addresses = $address.split("\n")  )
    
    		  #foreach($addressAndMarker in $addresses)
    
    			#if($addressAndMarker.indexOf("|") > -1)
    		  		#set($locName  =  	$addressAndMarker.substring(0, $addressAndMarker.indexOf("|")) )
    		  		#set($beginIndex =  ($addressAndMarker.indexOf("|") + 1))
    		  		#set($locAddress = 	$addressAndMarker.substring($beginIndex) )
    			#else
    				#set($locName = "Address:")
    				#set($locAddress = $addressAndMarker)
    		  	#end
            geocoder.getLatLng("$locAddress",
                function(point) {
                    map.setCenter(point, $zoom);
                    #if($controls)
                        map.enableDoubleClickZoom();
                    #end
                    #if ($marker)
                        var marker = new GMarker(point);
                        map.addOverlay(marker);
                        GEvent.addListener(marker, 'click', function() {
    
                        marker.openInfoWindowHtml("<b>$locName</b><br>$locAddress");
    
                        });
                    #end
    
                }
            );
            #end
            //end of loop
             //set maptype
             var maptype = getMapTypeForName(map, "$maptype");
             map.setMapType(maptype);
            //]]>
       }
    
    ##END NEW CODE
    

    This worked for me.

    There is a jira ticket for adding this functionality :

    http://developer.atlassian.com/jira/browse/GMAP-3

  40. Apr 23, 2008

    Eugene Neymark says:

    After adding more and more addresses to the page, (after 10 addresses to be more...

    After adding more and more addresses to the page, (after 10 addresses to be more precise), you will start noticing that your other addresses are not appearing.

    This happens because for every request to geocoder you are getting error code 620 - geocoder only allows for 1 address lookup per second. Even timing the requests is a bit tricky still. So what I am doing now is I get the lat/long coordinates for each address and then append it to the address. So lets say you added 6 new addresses to your wiki page - after the requests came back from geocoder with their coordinates, you will see them displayed below the map. You would then copy them and edit the page again, replacing your address string with new one that you copied.

    Long story short - this works well, just requires a little bit of extra collaborative work from your users. Here's the complete velocity template *gmaps-macro.vm*, you would want to edit it slightly - change the center of the map. And replace the template inside the jar file with it.

    #if ($googleApiKeys.size() > 0)
    
    <script type="text/javascript">
    var googleApiKeys = new Array();
    
    #foreach ($hostKeyPair in $googleApiKeys)
    googleApiKeys['$hostKeyPair.host'] = '$hostKeyPair.key';
    #end
    
    var url = "http://maps.google.com/maps?file=api&v=2&key=" + googleApiKeys[window.location.host];
    document.write('<script src="' + url + '" type="text/javaScript"><\/script>');
    </script>
    
    
    <div id="map" style="width: ${width}px; height: ${height}px"></div>
    <script type="text/javascript">
    //Eugene Neymark 2008 
    //adding new functions to enable display of multiple markers on the map
    //per google api license, geocoder can only accept 1 address lookup per second. 
    //when adding new locations to wiki, plugin will issue geocoder requests 
    //when we get the response back from geocoder, we will write out coordinates, 
    //so next time we won't have to make lookup again
    
    //make a marker to put on the map      
    function addMarker(point,html) {
      var marker = new GMarker(point);
      GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml(html); });
      return marker;
    }
    
    //this gets called when geocoder request returns 
    function callback() {
    	requests.pop();
    	if(requests.length == 0) 
    		displayMarkers();
    }
    
    //places a marker on the map
    function placeMarker(lat, lng, html){
    	var point = new GLatLng(lat,lng);
    	var marker = addMarker(point,html);
    	map.addOverlay(marker);
    }
    
    //display the markers on map, if marker was just retrieved from geocoder - display coordinates
    function displayMarkers() {
    	for (var i = 0; i < markers.length; i++) {
    		try {
    			var address = markers[i].address;
    			var label = markers[i].label;
    			var html = "<b>" + label +"</b><br>" + address;
    			//we have the coordinates
    			if(markers[i].latlng != "") {
    				var lat = markers[i].latlng.split(",")[0];
    				var lng = markers[i].latlng.split(",")[1];
    				placeMarker(lat, lng, html);	
    			} else {	//no coordinates..
    				var point = cache.get(address);
    				//we got something from cache - lets see what it is
    				if(point && point.Placemark && point.Placemark.length > 0) {
    					//got a point with placemark. sweeet
    			 		var place = point.Placemark[0]
    		    		placeMarker(place.Point.coordinates[1],place.Point.coordinates[0],html);
    		    		//write out coordinates to enable optimization
    		    		document.getElementById("mapCoordinates").innerHTML += label + "|" + address
    		    		 + "|" + place.Point.coordinates[1]+ "," + place.Point.coordinates[0] +"<br>";
    				}
    				else if(point && point.Status && point.Status.code == 620) {
    					//620 means we were sending too many requests too fast 
    					document.getElementById("mapsErrorBox").innerHTML += address +" could not be mapped. too many simulataneous requests<br>";
    				}
    				else {
    					//address not found
    					alert("Unknown address, please check: " + address);
    				}
    			} //end of else - no coordinates
    		} catch(e){alert("caugt an exception: " + e);}
       }//end of for loop
     }
    
     	//globals
    	var cache = null;
    	var geocoder = null;
    	var map = null;
    	var requests = [];
    	var markers = [];
        
        window.onload = function(){
            //<![CDATA[
            map = new GMap2(document.getElementById("map"));
            geocoder = new GClientGeocoder();
    
            #if($controls)
                #if ($height.intValue() > 400)
                map.addControl(new GLargeMapControl());
                #else
                map.addControl(new GSmallMapControl());
                #end
                map.addControl(new GMapTypeControl());
                
    			//take this out as per Keith Bropy causes maps not to load as of 07/2007 google maps API changes.
    			//map.enableDragging();
            //#else
                //map.disableDragging();
            #end
            //geoCode address and show map   
                 
            //set center of the map to redwood city  
            //****** Change it to fit your needs ********
    		map.setCenter(new GLatLng(37.538074,-122.25358), $zoom);         
            
    		#set($addresses = $address.split("\n")  )
    		  
    		  #foreach($addressAndMarker in $addresses) 
    
    			#if($addressAndMarker.indexOf("|") > -1)
    		  		#set($locName  =  	$addressAndMarker.substring(0, $addressAndMarker.indexOf("|")) )
    		  		#set($toIndex =  ($addressAndMarker.indexOf("|") + 1))
    		  		#set($locAddress = 	$addressAndMarker.substring($toIndex) )
    				#set($latlng = "")				
    				##do we have coordinates?  		
    		  		#if($locAddress.indexOf("|") > -1)
    					#set($toIndex =  ($locAddress.indexOf("|") + 1))		  			
    		  			#set($latlng = $locAddress.substring($toIndex))
    		  			#set($locAddress = 	$locAddress.substring(0, $locAddress.indexOf("|")) )
    		  		#end
    			#else
    				#set($locName = "Address:")
    				#set($locAddress = $addressAndMarker)
    				
    		    #end
            markers.push({address:"$locAddress",label:"$locName",latlng:"$latlng"});
            #end
    
    	         
            //end of loop
            //set maptype
            var maptype = getMapTypeForName(map, "$maptype");
            map.setMapType(maptype);
    		  
    		cache = geocoder.getCache();
    
    		//go through each marker and if coordinates are not there - send out request to geocoder to find them.
            for (var i = 0; i < markers.length; i++) {
    			if(markers[i].latlng == "") {
    				var address = markers[i].address;
    				requests.push("sending request");
    				//to prevent the error code 620 - we will try not to send all the requests at the same time
    				var time = ((i+1)%6)*650;
    				setTimeout("geocoder.getLatLng('" +address + "', callback)", time);	
    			}//end of if latlng is not present
            } //end of for loop      
    
        		//if didnt send any requests, go display markers
     		if(requests.length == 0) 
    			displayMarkers();       
            //]]>
       }//end of addonload
    
       function getMapTypeForName(map, name) {
    	    var maps = map.getMapTypes();
    	    for(var i=0;i<maps.length;i++) {
    			if(maps[i].getName() == name) {
    				return maps[i];
    			}
    		}
    		//if it didn't work return the default type
    		return maps[0];
       }
    
    </script>
    #else
    <div class="errorBox" style="width: ${width}px; height: ${height}px">
        <p>
        An administrator must configure your server's Google API key before you can use the {gmaps} macro.
        </p>
        #if ($permissionHelper.isGlobalAdministrator($remoteUser))
        <p>
        <a href="$req.contextPath/admin/plugins/gmaps/configure.action">Configure API key &gt;&gt;</a>
        </p>
        #end
    </div>
    #end
    <div id="mapsErrorBox">
    </div>
    <div id="mapCoordinates">
    </div>
    
    
  41. May 17, 2008

    Karen Huffman says:

    Hi, I don't have access to the gmaps-macro.vm. Was trying to create a user-macro...

    Hi, I don't have access to the gmaps-macro.vm. Was trying to create a user-macro (e.g., dcgmap) to see if I could do something similar. Tried to tweak the full code to meet my specific need but only received an error. Has anyone created someting that could allow us to use multiple locations by creating a custom user-macro instead? Please post OR email me directly khuffman (at) ngs.org

  42. Jul 17, 2008

    Frank Stillone says:

    Hi,  I am strying to get the gmaps plug in to work on my instance of confl...

    Hi,

     I am strying to get the gmaps plug in to work on my instance of confluence but having no luck - could someone please assist me?

    I am hgoing to the "insert API" page and entering our root url for our iinstance which is http://mywiki.silentpartner.com.au/ and then going to http://code.google.com/apis/maps/signup.html to get the key. When I save it then try the macro

    Unknown macro: {gmaps}

    i get an error that says:

    "The google maps api key used on this website was resisted for a different web site. You can generate a new key at ....." 

    Can anyone help?



    1. Jul 23, 2008

      Eugene Neymark says:

      To Huffman: The gmaps.macro.vm velocity template lives inside the macro's jar. Y...

      To Huffman: The gmaps.macro.vm velocity template lives inside the macro's jar. You manually have to patch it with the new code above.

      Frank, this is  simply because your key is either not valid or was not generated at all. You have to generate the key, add it in the administration section of the macro. Do not add http:// as part of the url.

  43. Nov 12, 2008

    Steffen Klepke says:

    Hi all, i installed the latest Google Maps Plugin (gmaps-confluence-plugin-0.7....

    Hi all,

    i installed the latest Google Maps Plugin (gmaps-confluence-plugin-0.7.1.jar) in my Confluence Wiki (Version 2.9.1). Furthermore i obtained a test key to use the Google Maps API and registered the key within Confluence.

    After embedding a marker, e.g. one of the described above i only see a Google Maps box with a message "An administrator must configure your servers Google API key before you can use the gmap macro" which i've already done so far ("Successfully saved API keys.").

    I obtained a key for http://localhost:8080 -> Confluence runs under http://localhost:8080/mywiki/...
    I also tried a key for http://myhost:8080 -> Confluence runs under http://myhost:8080/mywiki/...  (myhost == real host name)
    I played around with it a while. The result is always a Google Maps box containing the message "An administrator must configure your servers Google API key before you can use the gmap macro".

    My Wiki runs behind a firewall, but that shouldn't cause the problem. A small test of Google Maps API within a static web site runs successfully.

    Any ideas? Is there any documentation for the latest (rewritten) plugin version?

    Thanks for any help,
    Steffen

    1. Mar 24

      Neal Dias says:

      I had this same issue. I initially created my google API key with http://enflue...

      I had this same issue.

      I initially created my google API key with http://enfluence.example.com, I go the same error as above. Then I created one with http://enfluence.example.com:8080. Still no good.

      Then I went to the "Confluence Administration/System Information" and checked my "Server Base URL" there, because of how I have confluence set up behind an app server, my external url is http://enfluence.example.com, but the server base url is: http://confluence-app-server.internal.example.com:8080.

      So I created a key with http://confluence-app-server.internal.example.com:8080, and that works, and displays the intended map, but also throws the prevously noted "The google maps api key used on this website was resisted for a different web site. You can generate a new key at ....." error.

      I can see why this is likely the case, but no idea how to try to fix it, the error message is obtrusive, just a bit. =]

      Thanks.

  44. Dec 02, 2008

    Bernd Lindner says:

    The Google Maps Plugin (gmaps-confluence-plugin-0.7.1.jar) works for me, however...

    The Google Maps Plugin (gmaps-confluence-plugin-0.7.1.jar) works for me, however some of the parameters are ignored:

    • displaymap is without effect: always shows the hybrid map
    • maptype and maptypecontrol is without effect: no controls are displayed

    How is your experience? Are this bugs?

    Cheers,

    Bernd

  45. Apr 01

    Tony Johnson says:

    Is it possible to have more than one {gmap} on a page? When I try this both maps...

    Is it possible to have more than one {gmap} on a page? When I try this both maps display the content from the second {gmap}. I tried giving each instance a unique value for the name parameter but it did not seem to help.

  46. May 22

    Jürgen Unfried says:

    have a little problem using this macro on a page with scaffold data. does not w...

    have a little problem using this macro on a page with scaffold data.

    does not work (well, maps showing, but with san francisco viewed instead of somehwere in germany)

    {gmap}
    {get-data:name=Lat}{get-data},{get-data:name=Long}{get-data}
    {gmap}
    
    

    if I remove the gmap macro, copy paste the data into gmap macro it renders

    {gmap}
    49.5,11.516667
    {gmap}
    
    

    any ideas`?

    Jürgen