Some custom layers.

25 views
Skip to first unread message

sepoto

unread,
Jun 27, 2011, 2:06:17 AM6/27/11
to google-map...@googlegroups.com
I'm dealing with a map kind of like this one http://www.sepsserver.com/sepsserver/googlemaps/methanezoneaddress.php. What I would like to do is take each polygon and put it on its own layer so that a user can select certain polygons to turn on or off. Is this possible with the maps API? Is there some documentation somewhere where I can learn more about turning shapes on and off in a map?

Thank you!

geoco...@gmail.com

unread,
Jun 27, 2011, 2:25:37 AM6/27/11
to Google Maps JavaScript API v3
On Jun 26, 11:06 pm, sepoto <sepich.e...@gmail.com> wrote:
> I'm dealing with a map kind of like this one
http://www.sepsserver.com/sepsserver/googlemaps/methanezoneaddress.php.
> What I would like to do is take each polygon and put it on its own layer so that
> a user can select certain polygons to turn on or off. Is this possible with
> the maps API?

Yes, you don't need to put them in there own layer, each one is an
individual polygon object, you can control it as they are now.

> Is there some documentation somewhere where I can learn more
> about turning shapes on and off in a map?

Example that turns polylines (from xml) off and on with checkboxes:
http://www.geocodezip.com/GenericMapBrowser.asp?filename=flights090414.xml

-- Larry

>
> Thank you!
Reply all
Reply to author
Forward
0 new messages