OpenLayers OpenLayers

Ticket #1507: patch-1507-r6844-A0.diff

File patch-1507-r6844-A0.diff, 0.6 kB (added by pgiraud, 4 months ago)
  • lib/OpenLayers/Map.js

    old new  
    13741374                this.panTween = new OpenLayers.Tween(this.panMethod); 
    13751375            } 
    13761376            var center = this.getCenter(); 
     1377 
     1378            // center will not change, don't do nothing 
     1379            if (lonlat.lon == center.lon && 
     1380                lonlat.lat == center.lat) { 
     1381                return; 
     1382            } 
     1383 
    13771384            var from = { 
    13781385                lon: center.lon, 
    13791386                lat: center.lat