[mapserver-dev] Scalebar enhancement

Tamas Szekeres szekerest at gmail.com
Sun Mar 1 13:29:45 PST 2015


I've prepared a commit for the proposed option here:

https://github.com/mapserver/mapserver/issues/5075

Let me know it it does make sense.

I'm still thinking about the option to switch that feature off/on according
to the user preference. We might also think to add this enhancement to the
embedded scalebars only, though I think in most cases the scalebar is used
in embedded mode.

Best regards,

Tamas



2015-02-03 16:39 GMT+01:00 Lime, Steve D (MNIT) <Steve.Lime at state.mn.us>:

>  Maybe these should just be default behaviors instead of something
> configured. They seem like nice improvements to core functionality.
>
>
>
> Steve
>
>
>
> *From:* mapserver-dev-bounces at lists.osgeo.org [mailto:
> mapserver-dev-bounces at lists.osgeo.org] *On Behalf Of *Tamas Szekeres
> *Sent:* Tuesday, February 03, 2015 2:41 AM
> *To:* mapserver-dev at lists.osgeo.org
> *Subject:* [mapserver-dev] Scalebar enhancement
>
>
>
> Hi Devs,
>
>
>
> We'd like to implement a small enhancement for the embedded scalebar
> rendering to provide a better visual appearance in all cases.
>
>
>
> 1. Provide an option to display 'friendly' numbers using multiple of  of
> 1,10,100,1000,  etc... or 200,2000, etc... or 5,50,500,5000, etc... This
> may result that the actual width of the scalebar may become slightly
> different as what have been specified, but that's not a problem in our use
> case.
>
>
>
> 2. Allow to switch the displayed unit between m and km automatically
> according to the displayed distance values. For example 1000m would be
> displayed as 1km automatically.
>
>
>
> Does this make sense?
>
>
>
> How do we expect to configure this behavior? Should that be a special
> 'scalebar style' or new scalebar parameters would be reasonable to be
> added? I'd however avoid to introduce a new parameter for each option.
>
>
>
> Thanks,
>
>
>
> Tamas
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20150301/79cdbfe7/attachment.html>


More information about the mapserver-dev mailing list