[mapserver-dev] Support for the MapInfo style zoom layeringoption.
Steve Lime
Steve.Lime at dnr.state.mn.us
Thu Jun 26 11:05:14 EDT 2008
Makes my head spin to use them in concert and I think it would be hard to debug problems. Seems like there
would be reasons to want ORs too:
((scale > 500) && (scale < 1000)) || (width < 1000)
Personally I'd keep it simple and allow one or the other. If we do pursue REQUIRES as an alternative then
that could support crazier expressions like above.
...WIDTH still reminds me of pixels. What about MINXLENGTH, MAXXLENGTH?
Steve
>>> On 6/26/2008 at 9:52 AM, in message
<f3b73b7d0806260752k69f9092dg6f14b932684b51e9 at mail.gmail.com>, "Tamas Szekeres"
<szekerest at gmail.com> wrote:
> 2008/6/26 Steve Lime <Steve.Lime at dnr.state.mn.us>:
>> We could establish precedence, if either of the scale values are set, then
> use those. If not, then check width.
>> That way you'd need just the two new members...
>>
>
> I think it's less restrictive to allow them all to be specified in
> parallel, and the layer would be displayed if all of the conditions
> are true, like
>
> MINSCALEDENOM 500
> MAXSCALEDENOM 1000
> MAXWIDTH 1000
>
> would be considered like: (scale > 500) && (scale < 1000) && (width < 1000)
>
>
> How about using the names MINZOOMWIDTH and MAXZOOMWIDTH?
>
>
> Tamas
>
>
>> Steve
>>
>>>>> On 6/25/2008 at 5:46 PM, in message
>> <f3b73b7d0806251546s3a82f8c8t9d1fbca169d2fb2a at mail.gmail.com>, "Tamas
> Szekeres"
>> <szekerest at gmail.com> wrote:
>>> Daniel,
>>>
>>> 2008/6/26 Daniel Morissette <dmorissette at mapgears.com>:
>>>> Tamas Szekeres wrote:
>>>>>
>>>>> Did you mean by adding 3 extra members to the layerObj or you are
>>>>> thinking about adding these new keywords only to the parser and the
>>>>> specified MINWIDTH/MAXWIDTH values would eventually be stored in the
>>>>> current minscaledemom/maxscaledenom members?
>>>>>
>>>>
>>>> I meant also adding 2 new members in the layerObj as well... I think this is
>>>> more or less what you initially suggested, right?
>>>>
>>>
>>> Yes that is exactly what I was proposing. How we distinguish between
>>> these 2 methods, should we think about an internal 'unspecified'
>>> value?
>>> like minwidth = -1 would mean that this parameter shouldn't actually
>>> be taken into account in msLayerIsVisible.
>>>
>>> Tamas
>>> _______________________________________________
>>> mapserver-dev mailing list
>>> mapserver-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>
>>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
More information about the mapserver-dev
mailing list