[OpenLayers-Users] Problem while adding a vector layer

usha madhuri life.madhuri at yahoo.com
Thu Aug 12 06:37:42 EDT 2010


Hi,
I have used SphericalMercator and my code is as below,
function load() {
map = new OpenLayers.Map(document.getElementById("map"));
OpenLayers.ProxyHost="/proxy/?url=";

var options = {
                projection: new OpenLayers.Projection("EPSG:900913"),
                displayProjection: new OpenLayers.Projection("EPSG:4326"),
                units: "m",
                numZoomLevels: 18,
                maxResolution: 156543.0339,
                maxExtent: new
OpenLayers.Bounds(83.170,17.645,83.390,17.790)              
            };
            map = new OpenLayers.Map('map', options);

google = new OpenLayers.Layer.Google(
"Google Streets",
{'sphericalMercator': true}
);
map.addLayer(google);

using this I am not able to pan the map. Please tell me where have I gone
wrong.

Regards,
Madhuri
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Problem-while-adding-a-vector-layer-tp4869632p5415604.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list