Does anyone know how you can determine all the layers available on a
Google server? We are trying to hook up to a Google server but the layers
available are not known and are more numerous than the defaults below. How
can we determine all of the available layer names from a Google box?
Thanks!
map = new OpenLayers.Map('map');
map.addControl(new OpenLayers.Control.LayerSwitcher());
var gphy = new OpenLayers.Layer.Google(
"Google Physical",
{type: G_PHYSICAL_MAP}
);
var gmap = new OpenLayers.Layer.Google(
"Google Streets", // the default
{numZoomLevels: 20}
);
var ghyb = new OpenLayers.Layer.Google(
"Google Hybrid",
{type: G_HYBRID_MAP, numZoomLevels: 20}
);
var gsat = new OpenLayers.Layer.Google(
"Google Satellite",
{type: G_SATELLITE_MAP, numZoomLevels: 20}
);
map.addLayers([gphy, gmap, ghyb, gsat]);
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users