landview mapserver application and treatment of layers
dylan.beaudette at GMAIL.COM
Wed Apr 12 10:48:25 EDT 2006
Thanks for the reply. Here is a link to the mapserver application in
On Apr 10, 2006, at 6:31 PM, Steve Lime wrote:
> Dylan: Do you have an application to look at? The answer depends on
> the age of your landview code. Newer versions maintain layers as an
> associative arrary where layer name is the key and the value is either
> 1 or 0 (true or false). If you're using mapserv.js then you have a
> instance of the Mapserv object. If that is called, say 'myMap', then
> you'd manipulate the layers are using something like:
> myMap.layers[name] = true;
> There are a few methods in the in the mapserv.js file to help with
> this. The main one is called setlayer I believe. Again if you've got
> something to look at it would be much easier to help you debug.
>>>> Dylan Beaudette <dylan.beaudette at GMAIL.COM> 04/07/06 12:28 PM >>>
> I have been struggling with getting layers to function properly with
> 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
> 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
Soils and Biogeochemistry Graduate Group
University of California at Davis
More information about the mapserver-users