I am using google maps API with openstreetmap (see the following sample code)
I would like to add a google view for satellites .
How can I do that?
var tilesMapnik = new GTileLayer(copyOSM, 1, 17, {tileUrlTemplate: 'http://tile.openstreetmap.org/{Z}/{X}/{Y}.png'}); var mapMapnik = new GMapType([tilesMapnik],G_NORMAL_MAP.getProjection(), "รฎรดรค"); map = new GMap2(document.getElementById("map_canvas"), { mapTypes: [mapMapnik] }); map.setCenter(new GLatLng(32.08, 34.82), 12); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl());
Explanation of using openstreetmap with google maps:
http://wiki.openstreetmap.org/wiki/Google_Maps_Example
source share