> Im completely clueless as to the difference between > map.addOverlay(marker); and map.addOverlay(new GMarker(point, > markerOptions)); maybe this is the issue.
map.addOverlay(marker); takes some javascript variable called 'marker' that you have previously defined somewhere, and attempts to add it to the map. There are no options for this marker - it will be the default red lollipop. The name of the variable is arbritary map.addOverlay(banana); is just as valid. So you'd need to look and see how 'marker' or 'banana' was previously defined. new GMarker(point, markerOptions) creates an anonymous javascript object of GMarker type, at 'point' using 'markerOptions' how these things were previously defined in your code. Creating this javascript object doesn't place it on the map. So map.addOverlay(new GMarker(point, markerOptions)); creates and adds that marker to the map in one go (if it can!). -- 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.
