Re: Still can't get icon different colors
Yeah, I think your big problem is the way you create markers. All the
markers are created as new GMarkers. There is nothing wrong with this,
which is why they show up. The problem is that you think you are
creating the markers with a createMarker function. This function is
never called. Even if it were called it would cause some looping since
it is being called from within itself.
My suggestion is to first move the get_icon function out of the
createMarker function. Now you should be able to create the markers
simply with
var marker = new GMarker(new GPoint(-82.18700408935547,
36.572526725846444), get_icon(red));
NB! The above is supposed to be all in one line, but may have been
split by a line break.
0 Comments:
Yorum Gönder
<< Home