[thelist] Google Map and multiple icons SOLVED

Jay Blanchard jblanchard at pocket.com
Tue Apr 24 13:24:26 CDT 2007


[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