landview mapserver application and treatment of layers

J. Parapar listario at GMAIL.COM
Mon Apr 10 04:01:12 PDT 2006


Hi Dylan

In order to work, the Landview JavaScript needs that the HTML legend
fullfils some requirements. One is that the legend form must be called
layers. If you save the Landview page with Firefox you can see the
legend code and you can guess other requirements of the legend
template.

To mantain the layer status you can use the [if name=layer_status
value=...] tag. (Take a look at 
http://mapserver.gis.umn.edu/docs/howto/html_legend)

Best regards,
Jorge

2006/4/7, Dylan Beaudette <dylan.beaudette at gmail.com>:
> Greetings,
>
> I have been struggling with getting layers to function properly with the
> landview DHTML application.
>
> Currently, all of my layers defined in a mapfile, are set to DEFAULT. I would
> like to be able to toggle them from the legend (and HTML legend) so I have
> started setting key layers to ON .
>
> However, when i do this none of these layers show up on the map. If i
> explicitly define a layer to be on in the URL with layers=layer1 layer2 ...
> they layers appear on the map, but the checkbox next the the legend entry is
> not checked. checking or unchecking the box has no effect.
>
> also, with every load of the page, I am getting the following error:
> Error: document.layers has no properties
> Source Line: 226
>
> any thoughts on what might be happening ?
>
> --
> Dylan Beaudette
> Soils and Biogeochemistry Graduate Group
> University of California at Davis
> 530.754.7341
>



More information about the MapServer-users mailing list