On Nov 26, 2:45 am, TheChad <[EMAIL PROTECTED]> wrote:
> I've been unsuccessful in decoupling the street layer
> from the satellite map.

have a look at this example:

http://fundrace.huffingtonpost.com/neighbors.php?type=city&city=Washington+DC

which has this code:

// Add all the layers to the map
function addHybridLayers(aMap, tile_urls, labels, centerPoint, zoom)
{
        var tilelayers = [];
        var hybridLayer = [];

        CustomMapTypes = [];

        for (var mapIndex = 0; mapIndex < tile_urls.length; mapIndex++)
        {
                tilelayers[mapIndex] = new GTileLayer(new GCopyrightCollection
("Huffington Post"),5,15);
                tilelayers[mapIndex].getCopyright = function(a,b) { return
{prefix:"Imagery: &#169; 2007", copyrightTexts:["Huffington Post"]}; }
                tilelayers[mapIndex].getTileUrl = tile_urls[mapIndex];

                hybridLayer[mapIndex] = [
                tilelayers[mapIndex],                  // a reference to the 
tile
layer from the first custom map
                G_HYBRID_MAP.getTileLayers()[1] // a reference to the upper tile
layer of the hybrid map
                ];
                CustomMapTypes[mapIndex] = new GMapType(hybridLayer[mapIndex],
G_SATELLITE_MAP.getProjection(), labels[mapIndex]);
                CustomMapTypes[mapIndex].getMinimumResolution = function() 
{return
3;};
                if (isWidget)
                {
                        CustomMapTypes[mapIndex].getMaximumResolution = 
function() {return
16;};
                }
                aMap.addMapType(CustomMapTypes[mapIndex]);
        }

        aMap.removeMapType(G_SATELLITE_MAP);
        aMap.removeMapType(G_HYBRID_MAP);
        aMap.removeMapType(G_NORMAL_MAP);

};

--~--~---------~--~----~------------~-------~--~----~
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