Hi:

I have two kml files with a series of polygons and their descriptions.
They correspond to the territorial limits of a zone. The first would
be the state Division of USA and second subdivisions within each
State.
The idea is that the first map will be assigned the first kml, so that
when you click on a polygon of these to load the second map. Now in
this second map instead of showing all the divisions of each state, I
just want to show the divisions of the State that you selected.

Within each polygon kml second I own information as to what state it
belongs.

The first would be to get to know what state you selected. To do
something like this:

var georssLayer = new google.maps.KmlLayer('http://mydir/first.kml');
                georssLayer.setMap(map);

                google.maps.event.addListener(georssLayer, 'click',
function(event){

                });


In that event would be where to collect information on what state you
pressed, I dont know how to do, because I do not collect information
from a kml, I see no method that allows me, just pick up the map, but
not data the state or description.

Once done this will become the second page and load the map with the
second kml but by the corresponding filter.

Can you help?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to