I am needing to change my GMarker image and I have been trying to use the
GMarker.setImage("url") to do this, but the problem is I have the image
changing on various situations and was wanting to store the image url as a
string and then pass it to the setImage of the GMarker and have it read the
new image, the problem is it isn't like the way I am doing this.

Is it possible to do this?  Here is what I have:

VehiclePosMarker = new GMarker(point, VehicleMarkerOptions);
VehiclePosMarker.setImage(tempString);

My temp string is basically just reading what direction they are moving and
wanting to change the icon accordingly.  The string is formated as so:
var tempString;
tempString = "./Triangle-Blue/Icon-TriBlue";
tempString += BreadCrumbArrayHeading[BreadCrumbPos];
tempString += ".png"

Which in this case would yield "./Triangle-Blue/Icon-TriBlue.png"

I have tried with adding the quotes and not having the quotes but it keeps
tossing out an error.  Any suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to