Extension talk:Google Maps/Archive/2008

ERROR Cannot modify header informationSince installed the extension I get this when saving
Since installed the extension I get this when saving or even starting the page:

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/********/wiki/LocalSettings.php:1) in /www/htdocs/********/wiki/includes/WebResponse.php on line 10

What happend - can you help me please - apart the ERROR (which is shown over my whole site) the extension works well


 * I was getting similar errors, along with specific warnings in GoogleMaps.body.php and SpecialGoogleMapsKML.php. I asked on the  installation article's discussion page and got this reply:


 * Temporary solution:
 * Just go ahead and remove the leading "&" sign on the parameters in the function calls at the stated lines (line 401 in GoogleMaps.body.php and line 43 in SpecialGoogleMapsKML.php).


 * This worked great for me, removing all the PHP warnings. I don't actually know enough about PHP to know what the "&" characters were for, but it appears to work properly without them. Jangell 08:33, 23 February 2008 (UTC)
 * Fixed in 0.9.1. --71.202.99.103 23:10, 27 February 2008 (UTC)

Distance
Great extension ! Thank you for the hard work. Sure, there is a lot of new functions to be added but first I have some problem with distance : Here is a simple exemple (the whole erratic behaviour is more complicated).

A path of four points (three vectors of visualy same lenth) and two right angle. The distance calculated for each the two first vectors is twice as long as the third. Apparently the third one is the correct one. Is this a bug of google function ?


 * Will be fixed in 0.9.0. --Emiller 08:27, 21 February 2008 (UTC)

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)

Mouseover
I have a lot of pins on some pages e.g. Museums in Berlin. To work out which is which, it would be good if just moving the mouse over the pin caused the info window to pop up. Is there an easy way to do that? Kimbooth 09:16, 3 March 2007 (UTC)
 * I'll have something like this in the next big version. --Emiller 19:18, 3 March 2007 (UTC)

What we will have in the next big version? What will be the new features? Lleoliveirabr 23:02, 3 March 2007 (UTC)


 * Bump. Did something like this ever come about and was just edited out? --204.52.215.14 21:18, 29 February 2008 (UTC)
 * Mouseover titles are available since 0.9.2. --Emiller 00:28, 9 April 2008 (UTC)

Embedding Video
Is there any way I can embed video? I already installed videoflash but it doesn't look like works in the google map.
 * Other extensions will not work inside the google map. Not sure if this is fixable, but I'll check. --Emiller 09:36, 28 February 2008 (UTC)
 * Try embedding video with Version 0.9.3. It should work now. --Emiller 00:30, 9 April 2008 (UTC)