[thelist] Google Map and multiple icons SOLVED

Cheryl Ash cheryla at labx.com
Tue Apr 24 14:22:53 CDT 2007


Hi there, I see you solved the issue, but I thought I might share with
the list two examples that I recently saw that use the GMarkerManager
and GIcon to display different icons for different locations:

http://www.econym.demon.co.uk/googlemaps/examples/markermanager.htm
http://www.google.com/apis/maps/documentation/weather_map.html


Cheryl Ash


-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Jay Blanchard
Sent: Tuesday, April 24, 2007 2:24 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] Google Map and multiple icons SOLVED

[snip]
I am using PHP to control JavaScript logic to attempt to output
different icons for different location groups. It does not display the
different icons, it displays the first icon it loads for all locations.
Can anyone see what I have done wrong? (just enough code here to
illustrate)
echo "var marker =
createMarker(point, '<div id=\"mapWindow\" style=\"text-align:left;
font-family: sans-serif; color: #C0004E;\"><strong>" . $row['stName'] .
"</strong><br />".$row['stStreet']."<br /></div>');\n";
					echo
"map.addOverlay(marker);\n";
					echo "\n";
[/snip]

I was calling createMarker too many times. *smacks forehead*
-- 




More information about the thelist mailing list