Actually there's another problem too. Not only do you not specify
which member of your icons[] array to use because icontype is
undefined, but you haven't set up the icons[] array in the first
place. It does appear that you only want one custom marker icon and
you don't need an array at all.

So I would suggest replacing this line
  var marker = new GMarker(point,icons[icontype]);
with
  var marker = new GMarker(point,,markerOptions);

and you need to make sure that your variables are declared with the
var keyword, like this:
  var markerOptions = { icon:locationIcon };

-- 
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