[OpenLayers-Users] Adding the "Google Streetview Overlay" to Openlayers

Derek Watling derek at cmainfo.co.za
Tue Jun 29 05:02:34 EDT 2010


I already have Openlayers 2.8 set up to use the Google base layers together
with 1 of my own base layers and a number of overlays. 

I am now wanting to add the "Google Streetview Overlay" as an overlay on my
map. In the Google API you can do this fairly easily with something like: 
... 
svOverlay = new GStreetviewOverlay(); 
map.addOverlay(svOverlay); 
... 
This adds an overlay outlining the streets where Streetview is available in
blue. 

For Openlayers I found an example that uses: 
... 
gmap = new OpenLayers.Layer.Google("Google - Streets", {
"sphericalMercator": true }); 
gmap.mapObject.addOverlay(new GStreetviewOverlay()); 
... 
While this adds the blue outlines it also shifts all the Google layers so
they dont align with my layers any more! 

Any help on how to add this overlay would be greatly appreciated. 
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Adding-the-Google-Streetview-Overlay-to-Openlayers-tp5234215p5234215.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list