Re: Still can't get icon different colors
Ken,
You may not want to keep redeclaring your variables in the same
scope (you have multiple definitions of marker, html and name - I was
afraid this would happen if you just copied what I had done). I seem
to recall the multiple definitions giving me problems with one of the
browsers, but I can't remember for sure. You only need to declare
each variable once, put this with your "global" variable definitions
(you may not need the marker variable anymore):
var marker, html, name;
and then just use them to hold the values (rather than redeclaring them
each time):
html = "<b>Test2</b>";
name = "Test2";
createMarker(new GPoint(-82.14855194091797, 36.57032090532844),
name, html, "green");
html = "<b>Test3</b>";
name = "Test3";
createMarker(new GPoint(-82.14855194091797, 36.59032090532844),
name, html, "blue");
-- Larry
0 Comments:
Yorum Gönder
<< Home