Markers in different layers by type

25 views
Skip to first unread message

developer82

unread,
Nov 15, 2011, 4:03:05 PM11/15/11
to google-map...@googlegroups.com
Hi,
I'm new to the Google Maps API. I've created a simple "Hello World" map example, and I've set up a marker on that map.
I have more markers that I want to put on the map, but of different types (categories).
I need to know how I can create layers for each category so all the markers of type "category 1" I will put on the layer of category 1 and the markers of "category 2" I will put on the layer of category 2.
I also want to give the user the option to show or hide these layes - so if the user chooses to hide "category 1" layer all the markers of that category will be removed from the map.
 
Hope I was clear about what I'm trying to do... can this be done? how?
 
Thank you

geoco...@gmail.com

unread,
Nov 15, 2011, 4:31:04 PM11/15/11
to Google Maps JavaScript API v3
Reply all
Reply to author
Forward
0 new messages