[Mapbender-commits] r1099 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Feb 8 10:20:31 EST 2007
Author: christoph
Date: 2007-02-08 10:20:25 -0500 (Thu, 08 Feb 2007)
New Revision: 1099
Removed:
trunk/mapbender/http/javascripts/mod_displayObj_extended.js
Log:
never finished, now obsolete
Deleted: trunk/mapbender/http/javascripts/mod_displayObj_extended.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_displayObj_extended.js 2007-02-08 15:19:44 UTC (rev 1098)
+++ trunk/mapbender/http/javascripts/mod_displayObj_extended.js 2007-02-08 15:20:25 UTC (rev 1099)
@@ -1,163 +0,0 @@
-function mod_displayObj(){
- var tg = "";
- tg +="<head>";
- tg += "<style type='text/css'>";
- tg +="<!-- body{font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;font-size:10pt}";
- tg +="hr{color:blue;}";
- tg +="table{border-width:1;font-size:10pt}";
- tg +="th{background-color:#F08080;text-align:left;}";
- tg +="tr{background-color:white;}";
- tg +=".tr_head{font-weight:bold;background-color:silver;}";
- tg +=".th_wfs{font-weight:bold;background-color:#BDBAF7;text-align:left;}";
- tg +="--></style></head>";
-
- var myWin = null;
- tg += "<body>\n";
- tg += "<h3 >Mapbender Metadata</h3>\n";
- tg += "<h4 >active maps</h4>\n";
-
- for(var i=0; i<mb_mapObj.length; i++){
- tg += "<h4 >frame: "+ mb_mapObj[i].frameName+"</h4>\n";
- tg += "<table cellspacing=10 border='1' width='98%' rules='rows'><tr>\n";
- tg += "<th width='200'>wms:</th><th>request</th></tr>\n";
- for(var ii=0; ii<mb_mapObj[i].wms.length; ii++){
- tg +="<tr><td valign = middle align = center>\n";
- if (!(mb_mapObj[i].mapURL[ii] == false || typeof(mb_mapObj[i].mapURL[ii]) == 'undefined' )){
- tg +="<button name='Monitor' type='button' value='Monitor' ";
- tg += "onClick=\"";
- // tg += "alert(window.opener.document.getElementById('sendData').target);";
- // tg += "window.opener.document.getElementById('sendData').target=window.opener.frames['loadData'];";
- tg += "window.opener.document.getElementById('sendData').action='../javascripts/mod_insertMonitoredWmsIntoDb.php';";
- tg += "window.opener.document.getElementById('sendData').data.value = '"+mb_mapObj[i].wms[ii].wms_id+"____" + mb_mapObj[i].mapURL[ii]+"';";
- tg += "window.opener.document.getElementById('sendData').submit()\"'>Monitor</button>\n";
- }
- tg +="</td><td width='200'>"+mb_mapObj[i].wms[ii].wms_title+"</td><td>\n";
- // if the mapURL is not defined or false, don't add a link
- if (mb_mapObj[i].mapURL[ii] == false || typeof(mb_mapObj[i].mapURL[ii]) == 'undefined' ){
- tg += mb_mapObj[i].mapURL[ii];
- }
- else{
- tg += "<a href='"+ mb_mapObj[i].mapURL[ii]+"' target='_blank'>"+ mb_mapObj[i].mapURL[ii]+"</a>\n";
- }
- tg +="</td></tr>\n";
- }
- tg += "</table><br>\n";
- }
-
- tg += "<hr>\n";
-
- for(var cnt=0; cnt<wms.length;cnt++){
- tg += "<h4 >WMS: "+ cnt+ ": "+wms[cnt].wms_title+" ("+wms[cnt].wms_abstract+") </h4>";
- tg += "<table border='1' rules='rows'><tr>";
- tg += "<th >WMS nr:</th><th>" + cnt+ "</th></tr>";
- tg += "<tr><td>wms_id:</td><td>" + wms[cnt].wms_id + "</td></tr>";
- tg += "<tr><td>wms_version:</td><td>" + wms[cnt].wms_version + "</td></tr>";
- tg += "<tr><td>wms_title: </td><td>" + wms[cnt].wms_title + "</td></tr>";
- tg += "<tr><td>wms_abstract:</td><td>" + wms[cnt].wms_abstract + "</td></tr>";
- tg += "<tr><td>wms_getmap: </td><td>" + wms[cnt].wms_getmap + "</td></tr>";
- tg += "<tr><td>wms_getfeatureinfo: </td><td>" + wms[cnt].wms_getfeatureinfo + "</td></tr>";
- tg += "<tr><td>wms_getlegendurl: </td><td>" + wms[cnt].wms_getlegendurl + "</td></tr>";
- tg += "<tr><td>gui_wms_mapformat: </td><td>" + wms[cnt].gui_wms_mapformat + "</td></tr>";
- tg += "<tr><td>gui_wms_featureinfoformat: </td><td>" + wms[cnt].gui_wms_featureinfoformat + "</td></tr>";
- tg += "<tr><td>gui_wms_exceptionformat: </td><td>" + wms[cnt].gui_wms_exceptionformat + "</td></tr>";
- tg += "<tr><td>gui_wms_epsg: </td><td>" + wms[cnt].gui_wms_epsg + "</td></tr>";
- tg += "<tr><td>gui_wms_visible: </td><td>" + wms[cnt].gui_wms_visible + "</td></tr>" ;
-
- tg += "<tr class='tr_head'><td>Data: </td><td>.</td></tr>";
- for(var i=0; i<wms[cnt].data_type.length; i++){
- tg += "<tr><td>" + wms[cnt].data_type[i] + "</td><td>" + wms[cnt].data_format[i] + "</td></tr>" ;
- }
- for(var i=0; i<wms[cnt].gui_epsg.length; i++){
- tg += "<tr class='tr_head'><td>epsg : </td><td>" + wms[cnt].gui_epsg[i] + "</td></tr>" ;
- tg += "<tr><td>minx : </td><td>" + wms[cnt].gui_minx[i] + "</td></tr>" ;
- tg += "<tr><td>miny : </td><td>" + wms[cnt].gui_miny[i] + "</td></tr>" ;
- tg += "<tr><td>maxx : </td><td>" + wms[cnt].gui_maxx[i] + "</td></tr>" ;
- tg += "<tr><td>maxy : </td><td>" + wms[cnt].gui_maxy[i]+"</td></tr>" ;
- }
-
- tg += "</table><br>";
-
- tg += "<table border='1' rules='rows'><tr class='tr_head'>";
- tg += "<td>layer_id</td>";
- tg += "<td>layer_pos</td>";
- tg += "<td>layer_parent</td>";
- tg += "<td>layer_name</td>";
- tg += "<td>layer_title</td>";
- tg += "<td>layer_dataurl</td>";
- tg += "<td>layer_queryable</td>";
- tg += "<td>layer_minscale</td>";
- tg += "<td>layer_maxscale</td>";
- tg += "<td>gui_layer_wms_id</td>";
- tg += "<td>gui_layer_status</td>";
- tg += "<td>gui_layer_selectable</td>";
- tg += "<td>gui_layer_visible</td>";
- tg += "<td>gui_layer_queryable</td>";
- tg += "<td>gui_layer_querylayer</td>";
- tg += "<td>gui_layer_minscale</td>";
- tg += "<td>gui_layer_maxscale</td>";
- tg += "</tr>";
-
- for(var i=0; i<wms[cnt].objLayer.length; i++){
- tg += "<tr>";
- tg += "<td>"+wms[cnt].objLayer[i].layer_id + "</td>";
- tg += "<td>"+wms[cnt].objLayer[i].layer_pos + "</td>";
- tg += "<td>"+wms[cnt].objLayer[i].layer_parent+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].layer_name+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].layer_title+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].layer_dataurl_href+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].layer_queryable+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].layer_minscale+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].layer_maxscale+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].gui_layer_wms_id+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].gui_layer_status+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].gui_layer_selectable+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].gui_layer_visible+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].gui_layer_queryable+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].gui_layer_querylayer+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].gui_layer_minscale+"</td>";
- tg += "<td>"+wms[cnt].objLayer[i].gui_layer_maxscale+"</td>";
-
- tg += "</tr>";
- }
- tg += "</table><br><br>";
- }
-
- if(wfs){
- tg += "<hr>";
-
- for(var cnt=0; cnt<wfs.length;cnt++){
- tg += "<br><h4 style='font-color:blue'>WFS: "+ cnt+ ": "+wfs[cnt].wfs_title+" ("+wfs[cnt].wfs_abstract+") </h4>";
- tg+="<table border='1' rules='rows'><tr>";
-
- tg += "<th class='th_wfs' width='200'>WFS nr: </th><th class='th_wfs'>" + cnt+ "</th></tr>";
- tg += "<tr><td>wfs_id:</td><td> " + wfs[cnt].wfs_id + "</td></tr>";
- tg += "<tr><td>wfs_version: </td><td>" + wfs[cnt].wfs_version + "</td></tr>";
- tg += "<tr><td>wfs_title: </td><td>" + wfs[cnt].wfs_title + "</td></tr>";
- tg += "<tr><td>wfs_abstract:</td><td>" + wfs[cnt].wfs_abstract + "</td></tr>";
- tg += "<tr><td>wfs_getcapabilities: </td><td><a href='"+ wfs[cnt].wfs_getcapabilities + "&VERSION=1.0.0&request=getcapabilities' target='_blank'>" + wfs[cnt].wfs_getcapabilities + "</a></td></tr>";
- tg += "<tr><td>wfs_describefeaturetype:</td><td>" + wfs[cnt].wfs_describefeaturetype + "</td></tr>";
-
- tg += "</table><br>";
-
-
- tg += "<table border='1' rules='rows' ><tr class='tr_head'>";
- tg += "<td width='200'>wfs_featuretype</td>";
- tg += "<td>featuretype_name</td></tr>";
-
- for(var i=0; i<wfs[cnt].wfs_featuretype.length; i++){
- tg += "<tr><td>"+i+"</td>";
- tg += "<td>" + wfs[cnt].wfs_featuretype[i].featuretype_name + "</td>";
- tg += "<tr>";
- }
-
- tg += "</table><br>";
- }
-
- }
- tg += "<BR></body>";
- myWin = window.open("","myWin","");
- myWin.document.open("text/html");
- myWin.document.write(tg);
- myWin.document.close();
- myWin.focus();
-}
\ No newline at end of file
More information about the Mapbender_commits
mailing list