OpenLayers OpenLayers

Changeset 7174

Show
Ignore:
Timestamp:
05/14/08 04:11:01 (5 months ago)
Author:
pgiraud
Message:

exit the panTo method if the new center is the same as the current one, r=crschmidt (closes #1507)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers/Map.js

    r7060 r7174  
    13761376            } 
    13771377            var center = this.getCenter(); 
     1378 
     1379            // center will not change, don't do nothing 
     1380            if (lonlat.lon == center.lon && 
     1381                lonlat.lat == center.lat) { 
     1382                return; 
     1383            } 
     1384 
    13781385            var from = { 
    13791386                lon: center.lon,