Hi list,

is there a way to limit the map to its maxExtent? Right now I can pan
outside of the maxExtent.

I tried adding a check to setCenter in Map.js:

..
var bounds = this.getExtent();
if (!this.maxExtent.containsBounds(bounds))
{ 
  return false;
}

but that does not seem to do the job.

Any help appreciated.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl





_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to