use new functions from r1506.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1507 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-09-27 20:56:42 +00:00
parent b5c6522c2b
commit 3b60032995
2 changed files with 2 additions and 2 deletions

View File

@@ -679,7 +679,7 @@ OpenLayers.Map.prototype = {
var valid = false;
if (lonlat != null) {
var maxExtent = this.getMaxExtent();
valid = maxExtent.contains(lonlat.lon, lonlat.lat);
valid = maxExtent.containsLonLat(lonlat);
}
return valid;
},