[Mapbender-commits] r1016 - in trunk/mapbender/http: classes
javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sun Jan 21 20:18:12 EST 2007
Author: nimix
Date: 2007-01-21 20:17:20 -0500 (Sun, 21 Jan 2007)
New Revision: 1016
Modified:
trunk/mapbender/http/classes/class_wms.php
trunk/mapbender/http/javascripts/map_obj.js
Log:
fill in min and max coordinates for layers in js object
Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php 2007-01-19 10:10:45 UTC (rev 1015)
+++ trunk/mapbender/http/classes/class_wms.php 2007-01-22 01:17:20 UTC (rev 1016)
@@ -673,8 +673,8 @@
$this->objLayer[$i]->gui_layer_minscale ."','".
$this->objLayer[$i]->gui_layer_maxscale ."','".
$this->objLayer[$i]->gui_layer_wfs_featuretype ."');");
- if($i==0){
- for($j=0; $j<count($this->objLayer[$i]->layer_epsg);$j++){
+ for($j=0; $j<count($this->objLayer[$i]->layer_epsg);$j++){
+ if($i==0){
if($parent){
echo "parent.";
}
@@ -685,6 +685,15 @@
$this->objLayer[$i]->layer_epsg[$j]["maxx"] ."','".
$this->objLayer[$i]->layer_epsg[$j]["maxy"] ."');");
}
+ if($parent){
+ echo "parent.";
+ }
+ print("layer_addEpsg('".
+ $this->objLayer[$i]->layer_epsg[$j]["epsg"] ."','".
+ $this->objLayer[$i]->layer_epsg[$j]["minx"] ."','".
+ $this->objLayer[$i]->layer_epsg[$j]["miny"] ."','".
+ $this->objLayer[$i]->layer_epsg[$j]["maxx"] ."','".
+ $this->objLayer[$i]->layer_epsg[$j]["maxy"] ."');");
}
for($j=0; $j<count($this->objLayer[$i]->layer_style);$j++){
if($parent){
Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js 2007-01-19 10:10:45 UTC (rev 1015)
+++ trunk/mapbender/http/javascripts/map_obj.js 2007-01-22 01:17:20 UTC (rev 1016)
@@ -160,6 +160,16 @@
gui_layer_maxscale,
gui_layer_wfs_featuretype );
}
+function layer_addEpsg(epsg,minx,miny,maxx,maxy){
+ var j=wms[wms.length-1].objLayer.length-1;
+ var k=wms[wms.length-1].objLayer[j].layer_epsg.length;
+ wms[wms.length-1].objLayer[j].layer_epsg[k]=new Array();
+ wms[wms.length-1].objLayer[j].layer_epsg[k]["epsg"]=epsg;
+ wms[wms.length-1].objLayer[j].layer_epsg[k]["minx"]=minx;
+ wms[wms.length-1].objLayer[j].layer_epsg[k]["miny"]=miny;
+ wms[wms.length-1].objLayer[j].layer_epsg[k]["maxx"]=maxx;
+ wms[wms.length-1].objLayer[j].layer_epsg[k]["maxy"]=maxy;
+}
function wms_layer(
layer_parent,
wms_layer_uid,
More information about the Mapbender_commits
mailing list