Extension talk:Google Maps/Archive/2008

How do I change the pixel size of the paths?
I would like them to be quite a bit thinner, not so wide and transparent. --192.203.201.3 18:53, 6 February 2007 (UTC)


 * Right now the only way to do this is to modify the "initialize" function of EditorsPath in EditorsMap.js. Change "6" to a more acceptable value. --Emiller 03:20, 27 February 2007 (UTC)


 * Version 0.9.0 lets you customize the appearance of paths. --Emiller 22:49, 26 February 2008 (UTC)

Use mouse's wheel
It would be useful if when the mouse is over the map, the wheel was use to zoom in and out. Can we do that? --Jfbeaumont 17:06, 2 March 2007 (UTC)
 * I bet that's possible: http://adomas.org/javascript-mouse-wheel/. --Emiller 19:14, 3 March 2007 (UTC)
 * Check out Version 0.8. --Emiller 10:00, 6 August 2007 (UTC)
 * How can I disable mouse wheel zoom in version 0.8? Most of the time I'm just trying to scroll down the page and instead the map starts zooming. --Ryancyoder 18:33, 27 August 2007 (UTC)
 * Mouse wheel zoom is disabled by default in 0.9.0. Enable it with scrollwheel="zoom". --Emiller 08:38, 21 February 2008 (UTC)

Creating Points
I was looking around the site here and couldn't find a way to make a point on the map without going into the "edit page". I'm looking for a way for someone to just goto the displayed map, click on a location, and make a point there. Is there any way this is possible? Stygarfield 15:30, 2 June 2007 (UTC)
 * Nope! --Emiller 08:33, 21 February 2008 (UTC)

Marker info from an external file
Any ideas on how to include the marker information (location, etc.) in an external file. I want to generate status information from several locations on the fly and then change their icons to reflect the status. Suggestions? Jspahn 26 July 2007
 * As of 0.9.0, you can now include KML, which may give you what you're looking for. --Emiller 08:40, 21 February 2008 (UTC)

Search by Zip Code
Is there anyway to implement zip codes into these maps? I really want for articles on my site to have maps with markers on them, and then have people be able to search for things close to them by zipcode. is that possible? 75.111.46.8 22:12, 3 March 2007 (UTC)
 * Yes. Just type a ZIP code into the search box on the Editor's Map. --Emiller 08:43, 21 February 2008 (UTC)

New Google API Terrain update?
HI,

Thanks for a great extension!

Are there any plans to update this extension to support the new 'terrain' option that is in the latest API?

Google haven't enabled it by default, but it can been easily enabled it seems. See http://googlemapsapi.blogspot.com/2007/12/v294-terrain-and-new-maptypecontrol-to.html

It's probably really simple to do, and I'll have a look at the code myself tomorrow to see if I can figure it out.

Ideally, I'd like to keep the hybrid button as well, but just add the terrain button...

Thanks


 * You got it. Check out version 0.9. --Emiller 22:27, 26 February 2008 (UTC)

Wishes in next version by user

 * I really hope I can load kml files someday..
 * I found There is a way to load xml files, but it's too hard to edit code to load kml files.
 * Today's the day! Check out version 0.9.0. --Emiller 22:30, 26 February 2008 (UTC)

KML

 * I would really like to be able to load kml files, as they can contain so much more information just ready to go. It look likes the more recent GM API will also allow kml network links as well - so maps can be dynamic. I just want to specify a URL that links to the file and that file be loaded using code like so:

// get the kml File var kmlFile = new GGeoXml("http://www.xyz/kml/my.kml", function {       if (kmlFile.loadedCorrectly)        {            // cancel the "Loading" message            document.getElementById("loadingMsg").innerHTML = '';        }      }); map.addOverlay(kmlFile);

Better still; do it as an array of files, so mashups of multiple kml files can be shown. The loading message could be left out - otherwise the message would have to sit on the map somewhere. In the past I have used an animated gif that rotated around as the "loading msg".

Background info for readers: kml files can be made using Google Earth or Google Maps My maps. Also lots of GPS software can produce them.
 * KML import/export will be in 0.9.0. --Emiller 08:32, 21 February 2008 (UTC)

kml / georss import
I have tried to add kml / georss import. It looks like it is working. Is this a right way or am I forgetting something? --- GoogleMaps.body.php.org	2007-08-06 10:56:07.000000000 +0200 +++ GoogleMaps.body.php	2008-02-18 11:05:04.000000000 +0100 @@ -417,6 +417,12 @@    if( $o['icon'] != 'http://www.google.com/mapfiles/marker.png' ) { $output .= " GME_DEFAULT_ICON = new GIcon(G_DEFAULT_ICON, '".addslashes($o['icon'])."');"; } +   if( $o['rss1'] != '' ) { +       $output .= " geoXml1 = new GGeoXml( '".$o['rss1']."'); map.addOverlay(geoXml1);"; +   } +    if( $o['rss2'] != '' ) { +       $output .= " geoXml2 = new GGeoXml( '".$o['rss2']."'); map.addOverlay(geoXml2);"; +   }     // parse the content of the tag $lines       = preg_split( "/[\r\n]+/", $pContent ); @@ -730,6 +736,8 @@      'lon'         => -73.205112, 'overview'   => 'no', 'precision'  => 6, +     'rss1'	     => '', +     'rss2'	     => '', 'scale'      => 'no', 'selector'   => 'yes', 'stroke'     => 6, --62.45.179.83 11:16, 19 February 2008 (UTC)


 * KML import has been added to 0.9.0. --Emiller 22:27, 26 February 2008 (UTC)