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:
@@ -679,7 +679,7 @@ OpenLayers.Map.prototype = {
|
|||||||
var valid = false;
|
var valid = false;
|
||||||
if (lonlat != null) {
|
if (lonlat != null) {
|
||||||
var maxExtent = this.getMaxExtent();
|
var maxExtent = this.getMaxExtent();
|
||||||
valid = maxExtent.contains(lonlat.lon, lonlat.lat);
|
valid = maxExtent.containsLonLat(lonlat);
|
||||||
}
|
}
|
||||||
return valid;
|
return valid;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ OpenLayers.Marker.prototype = {
|
|||||||
var onScreen = false;
|
var onScreen = false;
|
||||||
if (this.map) {
|
if (this.map) {
|
||||||
var screenBounds = this.map.getExtent();
|
var screenBounds = this.map.getExtent();
|
||||||
onScreen = screenBounds.contains(this.lonlat.lon, this.lonlat.lat);
|
onScreen = screenBounds.containsLonLat(this.lonlat);
|
||||||
}
|
}
|
||||||
return onScreen;
|
return onScreen;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user