landview mapserver application and treatment of layers
Dylan Beaudette
dylan.beaudette at GMAIL.COM
Wed Apr 12 07:48:25 PDT 2006
Steve,
Thanks for the reply. Here is a link to the mapserver application in
question:
http://tinyurl.com/mrdp5
Dylan
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.
>
> Steve
>
>>>> Dylan Beaudette <dylan.beaudette at GMAIL.COM> 04/07/06 12:28 PM >>>
> 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
>
>
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
More information about the MapServer-users
mailing list