Multimap now conforms to other EventPane subclasses in expected behavior for

some functions, and has tests available, so when I break it at some point, 
hopefully I'll know :)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@1389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-08-27 01:46:09 +00:00
parent 0c1caaf717
commit ef00010111
4 changed files with 139 additions and 3 deletions
+9 -2
View File
@@ -237,7 +237,8 @@ OpenLayers.Layer.MultiMap.prototype =
* @type int
*/
getOLZoomFromMMZoom: function(mmZoom) {
return mmZoom - 1;
if (mmZoom) return mmZoom - 1;
return null;
},
/**
@@ -248,7 +249,8 @@ OpenLayers.Layer.MultiMap.prototype =
* @type int
*/
getMMZoomFromOLZoom: function(olZoom) {
return olZoom + 1;
if (olZoom) return olZoom + 1;
return null;
},
//
@@ -326,6 +328,11 @@ OpenLayers.Layer.MultiMap.prototype =
return pixel;
},
destroy: function() {
this.multimap = null;
OpenLayers.Layer.EventPane.prototype.destroy.apply(this, arguments);
},
/** @final @type String */
CLASS_NAME: "OpenLayers.Layer.MultiMap"
});