How to delete default google map marker

2,775 views
Skip to first unread message

dibyendu

unread,
Dec 23, 2011, 6:00:30 AM12/23/11
to google-map...@googlegroups.com
Hi,
I have a requirement to show only custom bus station markers on Google maps from external data source. So that case I need to disable all default bus station, train station markers that google maps by default rends while zooming in.
See the below picture, where my custom bus station marker is in orange color, all the default blue color bus station markers I need to delete, so it should not confuse users.

Please help me. I have tried to delete all the markers on initialization by looping through them. It doesn't help. Is there ant property on map level that I can use while initialization?

Rossko

unread,
Dec 23, 2011, 5:59:06 PM12/23/11
to Google Maps JavaScript API v3
> So that case I need to disable all default bus
> station, train station markers that google maps by default rends while
> zooming in.

I think you should look into map styling.
http://code.google.com/apis/maps/documentation/javascript/styling.html
Beware that your quota for styled maps is lower than for standard
maps.

Reply all
Reply to author
Forward
0 new messages