[OpenLayers-Users] limit map to maxExtent?
Bart van den Eijnden (OSGIS)
bartvde at osgis.nl
Fri Jul 20 08:48:53 EDT 2007
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
More information about the Users
mailing list