Auto-select "default" marker with Google Maps API -


I have several marker maps that are kept with addMarker / addOverlay. I should have auto-selected one of these markers, when the map loads and maps to the center around it. How can I do this?

What does marker mean by "auto-selected"? Do you want to show an InfoWindow for it (this is a little bubble with text sticking to the marker)? If so, call the marker and supply the goods you want to show. I believe it will also pan the map so that the marker can be shown.

If it does not pan the map as I think it should be, you can set the center of the map on the GMAP2 object.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -