[OpenLayers-Users] Google Layer example
ashley_c_mort
ashley_c_mort at raytheon.com
Tue Aug 18 02:22:53 EDT 2009
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]);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090818/e31ad689/attachment.html
More information about the Users
mailing list