RE: [mapserver-users] Zoom Level Layer Changes

3 messages Options
Embed this post
Permalink
Nolte, Tim

RE: [mapserver-users] Zoom Level Layer Changes

Reply Threaded More More options
Print post
Permalink
Anything that would work with Fusion also? I did just try this setup and
as a result end up having multiple different scale layers showing up in
the layer control. While for the technical mapping people this isn't a
problem I need things to be super simple for non-technical/GIS users.

- Tim

----
Timothy J Nolte - [hidden email]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com

-----Original Message-----
From: Julien-Samuel Lacroix [mailto:[hidden email]]
Sent: Thursday, June 04, 2009 10:04 AM
To: Nolte, Tim
Cc: [hidden email]
Subject: Re: [mapserver-users] Zoom Level Layer Changes

If you are not using MapScript, I think the easiest way is to add a
second coverage layer that is OFF by default and put a MINSCALE 1200000
in the first Coverage layer.

Julien

Nolte, Tim wrote:

> OK, wondering if anyone has encountered this situation, and what I'm
> trying to accomplish. I have two groups of layers "Propagations" and
> "Coverage". The "Coverage" layers are on by default when first viewing
> the initial extents, the "Propagations" layers are off by default. The
> "Propagations" layers have a min/max scale of:
>
> MINSCALE 0
> MAXSCALE 1200000
>
> The "Coverage" layers can be on at any scale. Now here is what I want
to
> accomplish. When the users first loads the map I still want the
> "Coverage" layers to be ON and when the user zooms to a scale of
1200000
> or below I want the "Coverage" layers turned off and the
"Propagations"
> layers turned on. Now here's the catch, I still want the user to be
able
> to turn the "Coverage" layers back on at a scale of 1200000 or less. I
> tried adding a "STATUS" option at the CLASS level which didn't really
> work. I'm not sure if the only way to accomplish something like this
is
> with duplicating the layer definitions with different scales and
status?

>
> - Tim
>
> ----
> Timothy J Nolte - [hidden email]
> Network Planning Engineer
>
> iPCS Wireless, Inc.
> 4717 Broadmoor Ave, Suite G
> Kentwood, MI 49512
>
> Office: 616-656-5163
> PCS:    616-706-2438
> Fax:    616-554-6484
> Web: www.ipcswirelessinc.com
> _______________________________________________
> mapserver-users mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Dominic Gervais

RE: [mapserver-users] Zoom Level Layer Changes

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi Tim,
 
here's an Idea...
 
In your applicationdefinition file, add the <HideInvisibleLayers>true</HideInvisibleLayers> to the extension of your Legend Widget.
 
like this -->
 
<Widget xsi:type="WidgetType">
      <Name>Legend</Name>
      <Type>Legend</Type>
  <Extension xsi:type="CustomContentType">   
      <ShowMapFolder>false</ShowMapFolder>
      <ShowRootFolder>false</ShowRootFolder>
      <HideInvisibleLayers>true</HideInvisibleLayers>
  </Extension>
      <StatusItem/>
    </Widget>
 
AND IN YOUR MAPFILE:
 
In your FIRST coverage layer
 
    STATUS ON
    MINSCALEDENOM 120000
    MAXSCALEDENOM YOURMAXSCALE
 
In your SECOND coverage layer
 
    STATUS OFF
    MINSCALEDENOM 0
    MAXSCALEDENOM 120000
 
In your Propagations layer
 
    STATUS ON
    MINSCALEDENOM 0
    MAXSCALEDENOM 120000
 
Hope this helps!
 
Dominic

 


Internet Explorer 8 makes surfing easier. Get it now!
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Nolte, Tim

RE: RE: [mapserver-users] Zoom Level Layer Changes

Reply Threaded More More options
Print post
Permalink
Dominic,

Thanks for the response. Actually I already beat you to it. ;-) That was
the solution I came up with, I really didn't want to have to create
multiple layer definitions for the coverage layers but this does give me
what I want in the end.

- Tim

----
Timothy J Nolte - [hidden email]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:    616-706-2438
Fax:    616-554-6484
Web: www.ipcswirelessinc.com
-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Dominic
Gervais
Sent: Monday, June 08, 2009 9:31 AM
To: Liste Fusion
Subject: [fusion-users] RE: [mapserver-users] Zoom Level Layer Changes

Hi Tim,
 
here's an Idea...
 
In your applicationdefinition file, add the
<HideInvisibleLayers>true</HideInvisibleLayers> to the extension of your
Legend Widget.
 
like this -->
 
<Widget xsi:type="WidgetType">
      <Name>Legend</Name>
      <Type>Legend</Type>
  <Extension xsi:type="CustomContentType">    
      <ShowMapFolder>false</ShowMapFolder>
      <ShowRootFolder>false</ShowRootFolder>
      <HideInvisibleLayers>true</HideInvisibleLayers>
  </Extension>
      <StatusItem/>
    </Widget>
 
AND IN YOUR MAPFILE:
 
In your FIRST coverage layer
 
    STATUS ON
    MINSCALEDENOM 120000
    MAXSCALEDENOM YOURMAXSCALE
 
In your SECOND coverage layer
 
    STATUS OFF
    MINSCALEDENOM 0
    MAXSCALEDENOM 120000
 
In your Propagations layer
 
    STATUS ON
    MINSCALEDENOM 0
    MAXSCALEDENOM 120000
 
Hope this helps!
 
Dominic

 


________________________________

Internet Explorer 8 makes surfing easier. Get it now!
<http://go.microsoft.com/?linkid=9655264>
_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users