[Mapbender-dev] mapbender 2.2.3 on mapbender_dev
Michael Schulz
mschulz at webgis.de
Wed Apr 5 10:59:59 EDT 2006
Hi,
think i found the "problem":
- in class_wms.php - updateObjInDb - around line 1008:
if($gui_layer_maxscale[$lastLayer_index]<=$this->objLayer[$i]->layer_maxscale)
$sql .= $gui_layer_maxscale[$lastLayer_index] . ", ";
} else { $sql .= $this->objLayer[$i]->layer_maxscale . ", ";}
When the updated wms has no ScaleHint defined, then layer_maxscale is
set to 0, thus any gui_layer settings (which are, when set, usually > 0)
will be overwritten.
Maybe we should check two things:
1) when no ScaleHint is defined (layer_maxscale==0)
or
2) when the gui_layer_maxscale is smaller than the Scalehint value
then use the values from the gui_layer, otherwise use the ScaleHint values:
if($this->objLayer[$i]->layer_maxscale == 0 ||
$gui_layer_maxscale[$lastLayer_index]<=$this->objLayer[$i]->layer_maxscale)
$sql .= $gui_layer_maxscale[$lastLayer_index] . ", ";
} else { $sql .= $this->objLayer[$i]->layer_maxscale . ", ";}
What do you think?
Michael
Michael Schulz schrieb:
> Hi,
>
> not sure, maybe this behaviour is already known:
>
> After updating a wms, the gui_layers max_scale settings are always set
> to 0, instead of taking an already existing value. min_scale settings
> are preserved.
>
> Greetings from the South (of Germany), Michael
>
--
-----------------------------------------------------------
Michael Schulz mschulz at webgis.de
in medias res Gesellschaft für Informationstechnologie mbH
In den Weihermatten 66 Tel +49 (0)761 556959-5
79108 Freiburg Fax +49 (0)761 556959-6
www.webgis.de / www.zopecms.de
-----------------------------------------------------------
NEU ++ UMN MapServer Hosting ++ http://www.webgis.de ++ NEU
-----------------------------------------------------------
More information about the Mapbender_dev
mailing list