On Mar 31, 10:21 am, Tómas Guðmundsson <[email protected]> wrote:
> I'm using OpenLayers map and I don't think I'm using a default map
> type with the v3 api. Here is a snippet of the code, but I think
> you've already looked at it
>
> map = new OpenLayers.Map('map');
> map.addControl(new OpenLayers.Control.LayerSwitcher());
>
> var gphy = new OpenLayers.Layer.Google(
> "Google Physical",
> {type: google.maps.MapTypeId.TERRAIN}
> );
> map.addLayers([gphy]);
>
> map.setCenter(new OpenLayers.LonLat(10.2, 48.9), 5);
>
> So I am using the TERRAIN map, but then again, if you say the api is
> loading correctly I guess this problem has more to do with the
> OpenLayers end of things.
I believe it is illegal to display Google's tiles using the OpenLayers
API.
http://code.google.com/p/gmaps-api-issues/issues/detail?id=1396
If not, please explain the loophole.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.