[OpenLayers-Users] Google Layer example
Christopher Schmidt
crschmidt at metacarta.com
Tue Aug 18 12:33:45 EDT 2009
On Tue, Aug 18, 2009 at 02:22:53AM -0400, ashley_c_mort wrote:
> 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!
I'm assuming that you're using some kind of Fusion server; In my experiences
with Fusion, I have not solved this problem. Your best bet may be to discuss
this in a Fusion-specific forum, rather than OL, since OL doesn't provide
that type of API to the Fusion data.
-- Chris
>
>
> 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
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list