[Mapbender-commits] r8249 - branches/2.7/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Feb 13 11:51:03 EST 2012


Author: astrid_emde
Date: 2012-02-13 08:51:03 -0800 (Mon, 13 Feb 2012)
New Revision: 8249

Modified:
   branches/2.7/http/javascripts/wms.js
Log:
WMS 1.3.0: switch extent, when EPSG >= 4000 and <5000

Modified: branches/2.7/http/javascripts/wms.js
===================================================================
--- branches/2.7/http/javascripts/wms.js	2012-02-13 16:50:16 UTC (rev 8248)
+++ branches/2.7/http/javascripts/wms.js	2012-02-13 16:51:03 UTC (rev 8249)
@@ -246,7 +246,14 @@
 	}else{	
 		rq += "&SRS=" + mapObj.getSRS();
 	}
-	rq += "&BBOX=" + mapObj.getExtent();
+	tmp_epsg = mapObj.getSRS();
+	tmp_epsg = tmp_epsg.replace(/EPSG:/g,'');
+	tmp_epsg = tmp_epsg.replace(/CRS:/g,'');
+	if(this.wms_version === "1.3.0" &&  tmp_epsg >= 4000 && tmp_epsg < 5000){
+                rq += "&BBOX=" + mapObj.getExtentSwitch();
+	}else{
+                rq += "&BBOX=" + mapObj.getExtent();
+        }
 	rq += "&STYLES=" + this.getLayerstyles(mapObj).join(",");
 	rq += "&FORMAT=" + this.gui_wms_mapformat;
 	rq += "&INFO_FORMAT=" + this.gui_wms_featureinfoformat;



More information about the Mapbender_commits mailing list