[Mapbender-commits] r5046 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Nov 27 04:11:15 EST 2009
Author: christoph
Date: 2009-11-27 04:11:14 -0500 (Fri, 27 Nov 2009)
New Revision: 5046
Modified:
trunk/mapbender/http/javascripts/wms.js
Log:
Modified: trunk/mapbender/http/javascripts/wms.js
===================================================================
--- trunk/mapbender/http/javascripts/wms.js 2009-11-26 08:55:14 UTC (rev 5045)
+++ trunk/mapbender/http/javascripts/wms.js 2009-11-27 09:11:14 UTC (rev 5046)
@@ -140,6 +140,25 @@
this.gui_wms_mapopacity = gui_wms_opacity/100;
// sld version
this.gui_wms_sldurl = gui_wms_sldurl;
+
+ this.setBoundingBoxBySrs = function (srs, ext) {
+ for (var i = 0; i < this.gui_epsg.length; i++) {
+ if (srs == this.gui_epsg[i]) {
+ this.gui_minx[i] = parseFloat(ext.minx);
+ this.gui_miny[i] = parseFloat(ext.miny);
+ this.gui_maxx[i] = parseFloat(ext.maxx);
+ this.gui_maxy[i] = parseFloat(ext.maxy);
+ return i;
+ }
+ }
+ this.gui_epsg.push(srs);
+ this.gui_epsg_supported.push(false);
+ this.gui_minx.push(ext.minx);
+ this.gui_miny.push(ext.miny);
+ this.gui_maxx.push(ext.maxx);
+ this.gui_maxy.push(ext.maxy);
+ return this.gui_epsg.length - 1;
+ };
}
wms_const.prototype.getBoundingBoxBySrs = function (srs) {
@@ -157,25 +176,6 @@
return null;
};
-wms_const.prototype.setBoundingBoxBySrs = function (srs, ext) {
- for (var i = 0; i < this.gui_epsg.length; i++) {
- if (srs == this.gui_epsg[i]) {
- this.gui_minx[i] = parseFloat(ext.minx);
- this.gui_miny[i] = parseFloat(ext.miny);
- this.gui_maxx[i] = parseFloat(ext.maxx);
- this.gui_maxy[i] = parseFloat(ext.maxy);
- return i;
- }
- }
- this.gui_epsg.push(srs);
- this.gui_epsg_supported.push(false);
- this.gui_minx.push(ext.minx);
- this.gui_miny.push(ext.miny);
- this.gui_maxx.push(ext.maxx);
- this.gui_maxy.push(ext.maxy);
- return this.gui_epsg.length - 1;
-};
-
/**
* rephrases the mapRequest
*
More information about the Mapbender_commits
mailing list