Hi, Your maxExtent defines a little area about 1x1 sqm at 0,0 because you use spericalMercator.
Extent in EPSG:900913 maxExtent:new OpenLayers.Bounds(9258442.0492536,1996037.9243878,9282932.3372281,2012982.98 40631) Or transform your coordinates maxExtent : new OpenLayers.Bounds(83.170,17.645,83.390,17.790).transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection(map.projection)) Arnd -----Ursprüngliche Nachricht----- Von: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org] Im Auftrag von usha madhuri Gesendet: Donnerstag, 12. August 2010 12:38 An: users@openlayers.org Betreff: Re: [OpenLayers-Users] Problem while adding a vector layer 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-t p4869632p5415604.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users