[Mapbender-commits] r4834 - branches/2.6/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Oct 20 08:22:33 EDT 2009
Author: christoph
Date: 2009-10-20 08:22:32 -0400 (Tue, 20 Oct 2009)
New Revision: 4834
Modified:
branches/2.6/http/javascripts/map.js
Log:
handleSelectedWms
Extent.toString()
Modified: branches/2.6/http/javascripts/map.js
===================================================================
--- branches/2.6/http/javascripts/map.js 2009-10-20 12:21:21 UTC (rev 4833)
+++ branches/2.6/http/javascripts/map.js 2009-10-20 12:22:32 UTC (rev 4834)
@@ -24,6 +24,9 @@
this.extenty = this.maxy - this.miny;
this.centerx = this.minx + this.extentx/2;
this.centery = this.miny + this.extenty/2;
+ this.toString = function () {
+ return this.minx + "," + this.miny + "," + this.maxx + "," + this.maxy;
+ };
return this;
}
@@ -385,4 +388,15 @@
var map = getMapObjByName(frameName);
var extent = new Extent(minx,miny,maxx,maxy);
map.calculateExtent(extent);
-}
\ No newline at end of file
+}
+
+function handleSelectedWms (map, wms_id, type, val) {
+ var ind = getMapObjIndexByName(map);
+ var wms = getWMSIndexById(map,wms_id);
+ for (var i = 0; i < mb_mapObj[ind].wms[wms].objLayer.length; i++) {
+
+ var layername = mb_mapObj[ind].wms[wms].objLayer[i].layer_name;
+ mb_mapObj[ind].wms[wms].handleLayer(layername,type,val.toString());
+ }
+ mb_restateLayers(map, wms_id);
+}
More information about the Mapbender_commits
mailing list