Right now I'm loading in shapefiles via WMS and GeoServer.  That part
is fine.

I'm adding these under a standard Physical map in a
GHierarchicalMapTypeControl.  I did this because I want it to be sort
of a like a layer selection.  The problem is that if I check on of
these 'sub' layers, it unchecks the other?  Is there a way I can set
it to overlay so that I can view multiple 'sub' layers at once.

Relevant code:

// Create for countries
var layerCountry = [ G_PHYSICAL_MAP.getTileLayers()[0], tileCountry ];
var mtLayerCountry = new GMapType(layerCountry,
G_PHYSICAL_MAP.getProjection(), "Country");

// create for cities
var layerCity = [ G_PHYSICAL_MAP.getTileLayers()[0], tileCity ];
var mtLayerCity = new GMapType(layerCity,
G_PHYSICAL_MAP.getProjection(), "City");

map.addMapType(G_PHYSICAL_MAP);
        map.addMapType(mtLayerCountry);
        map.addMapType(mtLayerCity);

        var mapControl = new GHierarchicalMapTypeControl();

        // Set up map type menu relationships
        mapControl.clearRelationships();
        mapControl.addRelationship(G_PHYSICAL_MAP, mtLayerCountry, "United
States");
        mapControl.addRelationship(G_PHYSICAL_MAP, mtLayerCity, "Cities");

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

Reply via email to