Ticket #340: map_maxextent.patch
| File map_maxextent.patch, 0.6 kB (added by bartvde, 1 year ago) |
|---|
-
Map.js
old new 814 814 var centerChanged = (this.isValidLonLat(lonlat)) && 815 815 (!lonlat.equals(this.center)); 816 816 817 var insideOfMaxExtent = (this.maxExtent.containsBounds(this.calculateBounds(lonlat, this.baseLayer.resolutions[zoom]))); 818 817 819 // if neither center nor zoom will change, no need to do anything 818 if ( zoomChanged || centerChanged || !dragging) {820 if (insideOfMaxExtent && (zoomChanged || centerChanged || !dragging)) { 819 821 820 822 if (!dragging) { this.events.triggerEvent("movestart"); } 821 823
