[Mapbender-commits] r3993 - branches/google_dev/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jun 3 12:21:35 EDT 2009


Author: christoph
Date: 2009-06-03 12:21:34 -0400 (Wed, 03 Jun 2009)
New Revision: 3993

Modified:
   branches/google_dev/http/javascripts/map_obj.js
Log:


Modified: branches/google_dev/http/javascripts/map_obj.js
===================================================================
--- branches/google_dev/http/javascripts/map_obj.js	2009-06-03 15:16:34 UTC (rev 3992)
+++ branches/google_dev/http/javascripts/map_obj.js	2009-06-03 16:21:34 UTC (rev 3993)
@@ -264,7 +264,7 @@
 					layers += ",";
 					styles += ",";
 				}
-				layers += wms[i].objLayer[ii].layer_name;
+				layers += this.wms[i].objLayer[ii].layer_name;
 				styles += "";
 				cnt_layers++;
 			}
@@ -273,7 +273,7 @@
 				if (cnt_querylayers > 0) {
 					querylayers += ",";
 				}
-				querylayers += wms[i].objLayer[ii].layer_name;
+				querylayers += this.wms[i].objLayer[ii].layer_name;
 				cnt_querylayers++;
 			}
 		}
@@ -428,7 +428,7 @@
 	};
 	
 	this.zoomFull = function () {
-		if (typeof this.google !== undefined) {
+		if (typeof this.google !== "undefined") {
 			this.zoomToLevel(this.google.MIN_ZOOM_LEVEL);
 			return;
 		}
@@ -474,7 +474,7 @@
 		// * update the zoom level
 		// * calculate the extent
 		// * repaint with new extent
-		if (typeof this.google !== undefined) {
+		if (typeof this.google !== "undefined") {
 			var currentZoomLevel = this.google.map.get_zoom();
 			if (factor > 1 && currentZoomLevel < this.google.MAX_ZOOM_LEVEL) {
 				currentZoomLevel++;
@@ -876,7 +876,7 @@
 	
 	this.setMapRequest = function(){
 		// optionally, paint a Google map
-		if (this.google !== undefined && !this.google.skipRequest) {
+		if (this.google !== "undefined" && !this.google.skipRequest) {
 			if (this.google.map.isInitialised === true) {
 				var latLng = new google.maps.LatLng(this.extent.center.y, this.extent.center.x);
 				this.google.map.set_center(latLng);



More information about the Mapbender_commits mailing list