[Mapbender-commits] r1189 - trunk/mapbender/http/html
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Mar 6 03:51:54 EST 2007
Author: christoph
Date: 2007-03-06 03:51:54 -0500 (Tue, 06 Mar 2007)
New Revision: 1189
Modified:
trunk/mapbender/http/html/mod_treefolder.php
Log:
added category headers for treefolder
Modified: trunk/mapbender/http/html/mod_treefolder.php
===================================================================
--- trunk/mapbender/http/html/mod_treefolder.php 2007-03-05 11:43:09 UTC (rev 1188)
+++ trunk/mapbender/http/html/mod_treefolder.php 2007-03-06 08:51:54 UTC (rev 1189)
@@ -81,6 +81,10 @@
*
*/
+//var myCategories = {"Stadt":0, "Land":1, "Fluss":4};
+var myCategories = {};
+
+
// some defaults
try{if (switchwms){}}catch(e){switchwms = 'false';}
try{if (ficheckbox){}}catch(e){ficheckbox = 'true';}
@@ -288,9 +292,10 @@
}
else{
- linkedName = '<IMG SRC="'+imagedir+'/1w.gif" BORDER="0" WIDTH="3">';
+ linkedName = "";
+// linkedName = '<IMG SRC="'+imagedir+'/1w.gif" BORDER="0" WIDTH="3">';
if(switchwms == 'true'){
- linkedName += '<input type="checkbox" onclick="if(this.checked){switchWMS(\''+treeWMS[i]+'\',1)}else{switchWMS(\''+treeWMS[i]+'\',0)}">';
+// linkedName += '<input type="checkbox" onclick="if(this.checked){switchWMS(\''+treeWMS[i]+'\',1)}else{switchWMS(\''+treeWMS[i]+'\',0)}">';
}
linkedName += treeName[i];
}
@@ -580,10 +585,18 @@
for(var i=0; i<parent.mb_mapObj.length; i++){
if(parent.mb_mapObj[i].frameName == mod_treeGDE_map){
for(var ii=0; ii<parent.mb_mapObj[i].wms.length; ii++){
+ for (var attr in myCategories) {
+ if (typeof(myCategories[attr]) != 'function') {
+ if (myCategories[attr] == ii) {
+ Note(parseInt(Math.random()*10000),0,"<b>"+attr+"</b>",'','','','','','','');
+ }
+ }
+ }
+
if(parent.mb_mapObj[i].wms[ii].gui_wms_visible == '1' || parent.mb_mapObj[i].wms[ii].gui_wms_visible == 1){
for(var iii=0; iii<parent.mb_mapObj[i].wms[ii].objLayer.length; iii++){
var temp = parent.mb_mapObj[i].wms[ii].objLayer[iii];
- if(parent.mb_mapObj[i].wms[ii].objLayer[iii].layer_parent == ""){
+ if(parent.mb_mapObj[i].wms[ii].objLayer[iii].layer_parent == ""){
//alert((parseInt(temp.layer_id)+1) + " , " +0 + " , " +temp.layer_title + " , " +" , "+temp.layer_metadataurl);
Note((parseInt(temp.layer_id)+1),0,temp.layer_title,'','','','','',parent.mb_mapObj[i].wms[ii].wms_id,'');
parentObj = temp.layer_id+1;
@@ -598,6 +611,7 @@
else {
Note((parseInt(temp.layer_id)+1),parentObj,temp.layer_title,'',temp.gui_layer_selectable,temp.gui_layer_visible,temp.gui_layer_queryable,temp.gui_layer_querylayer,parent.mb_mapObj[i].wms[ii].wms_id,temp.layer_name);
}
+
/*
if(temp.layer_metadataurl!=''){
Note((parseInt(temp.layer_id)+1),parentObj,temp.layer_title,temp.layer_metadataurl,temp.gui_layer_selectable,temp.gui_layer_visible,temp.gui_layer_queryable,temp.gui_layer_querylayer,parent.mb_mapObj[i].wms[ii].wms_id,temp.layer_name);
More information about the Mapbender_commits
mailing list