Labels for timezones layer

Stephen Lime steve.lime at dnr.state.mn.us
Tue Nov 23 10:42:57 PST 1999


I see, good point. Presently only lines are labeled at their visable center. I suppose that is possible with polygons
as well but I've had some concerns about the affects of clipping on area calculations and knowing 
whether a shape part was an internal or external ring so I haven't persued it. Ideally I'd like to use
MINFEATURESIZE in conjunction with polygons and lines. That would help control slivers. I need to
do some testing before this could be implemented.

steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Marc JACQUIN - GEOSYS Inc - Minneapolis <mjacquin at geosys-inc.com> 11/23/99 12:10PM >>>
Steve,

Already tried to do that but it is nt so obvious. To have the label display at the center of
the polygon the top and bottom 'little' maps must cover the equator area and very often, at
equator, timezones differ from what they are at a different latitude. I did told you I was
displaying the limits of the TZ. So limits would not match. Unless MapServer displays labels
centered on the displayed area of the polygon (not exactly at the center of the polygon).

Stephen Lime wrote:

> Can't be done, at least not without some custom coding. You might be able to
> create an interesting effect by stacking 3 maps on top of each other where:
>
>  - top map is narrow and displays only the timezone labels (centered)
>  - main map is defined as normal
>  - bottom map is narrow and displays only the timezone labels (centered)
>
> ----------------------------------------------------
> |                                                   |
> ----------------------------------------------------
> |                                                   |
> |                                                   |
> |                                                   |
> |                                                   |
> |                                                   |
> |                                                   |
> |                                                   |
> ----------------------------------------------------
> |                                                   |
> ----------------------------------------------------
>
> Extents would need to be constant between the 3 maps but that shouldn't be
> that hard to do. You'll need some javascript to do this unless you're developing
> a custom client. This is a sneaky way to add all sorts of effects to interfaces.
>
> Just an idea...
>
> Steve
>
> Stephen Lime
> Internet Applications Analyst
>
> Minnesota DNR
> 500 Lafayette Road
> St. Paul, MN 55155
> 651-297-2937
>
> >>> Marc JACQUIN - GEOSYS Inc - Minneapolis <mjacquin at geosys-inc.com> 11/23/99 10:27AM >>>
> Hi everyone,
>
> I am using the timezones layer (ESRI) and I would like to display the
> number of the zone. The problem is to display them at the top and the
> bottom of the map at any zoom factor, in other words not at the center
> of the polygon. I would like to avoid generating a specific point layer
> dynamically. Any idea ?
>
> Thanks,
>
> Marc




More information about the MapServer-users mailing list