[Mapbender-commits] r6560 - branches/2.6/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sun Jul 4 06:45:11 EDT 2010


Author: christoph
Date: 2010-07-04 10:45:11 +0000 (Sun, 04 Jul 2010)
New Revision: 6560

Modified:
   branches/2.6/http/javascripts/map_obj.js
   branches/2.6/http/javascripts/mod_dragMapSize.php
Log:
http://trac.osgeo.org/mapbender/ticket/657

Modified: branches/2.6/http/javascripts/map_obj.js
===================================================================
--- branches/2.6/http/javascripts/map_obj.js	2010-07-04 10:32:43 UTC (rev 6559)
+++ branches/2.6/http/javascripts/map_obj.js	2010-07-04 10:45:11 UTC (rev 6560)
@@ -386,7 +386,7 @@
 	 */
 	this.getExtentInfos = function(){
 		var c = this.getExtent();
-		if (typeof c !== "object" || c.length !== 4) {
+		if (typeof c !== "string" || c.split(",").length !== 4) {
 			return null;
 		}
 		c = c.split(",");
@@ -548,7 +548,7 @@
 	
 	this.convertPixelToReal = function (aPoint) {
 		var arrayBBox = this.extent;
-		if (typeof arrayBBox !== "object" || arrayBBox.length !== 4) {
+		if (typeof arrayBBox !== "string" || arrayBBox.split(",").length !== 4) {
 			return new Point(0,0);
 		}
 		arrayBBox = arrayBBox.split(",");
@@ -750,7 +750,7 @@
 	this.getScale = function(skipEpsg4326){
 		var scale;
 		var bbox = this.extent;
-		if (typeof bbox !== "object" || bbox.length !== 4) {
+		if (typeof bbox !== "string" || bbox.split(",").length !== 4) {
 			return null;
 		}
 		bbox = bbox.split(",");

Modified: branches/2.6/http/javascripts/mod_dragMapSize.php
===================================================================
--- branches/2.6/http/javascripts/mod_dragMapSize.php	2010-07-04 10:32:43 UTC (rev 6559)
+++ branches/2.6/http/javascripts/mod_dragMapSize.php	2010-07-04 10:45:11 UTC (rev 6560)
@@ -109,7 +109,7 @@
 	targetObject.setHeight(targetObject.getHeight() + parseFloat(dif_y));
 
 	var mybbox = targetObject.extent;
-	if (typeof mybbox !== "object" || mybbox.length !== 4) {
+	if (typeof mybbox !== "string" || mybbox.split(",").length !== 4) {
 		return;
 	}
 	mybbox = mybbox.split(",");



More information about the Mapbender_commits mailing list