Cast zoom level to integer. r=pgiraud (closes #2180)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9955 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2010-01-20 11:05:42 +00:00
parent ca8222a13c
commit 8cbac47177

View File

@@ -1664,7 +1664,7 @@ OpenLayers.Map = OpenLayers.Class({
}
if (zoomChanged) {
this.zoom = zoom;
this.zoom = parseInt(zoom);
this.resolution = this.getResolutionForZoom(zoom);
// zoom level has changed, increment viewRequestID.
this.viewRequestID++;