[mapserver-users] Label size proportion to geometry size
Jackey Cheung
cheung.jackey at gmail.com
Tue Apr 13 01:45:26 PDT 2010
Hi all,
Say, I have two polygon in the same layer, and they are at the same logical
group/level on the map. Means that both feature should be drawn and labeled
at the same scale. However, one polygon is much larger than (say 10 times
larger) than the other. Currently, I let MapServer to handle the scaling
automatically, so that in a display scale, the label of the larger one looks
too small while the larger one looks gigantic.
My thought is straight forward: tie the font size to the size of the
polygon. However, since the label must be scaled with respect to the map
display scale, it has to be dynamic; further, since they belongs to the same
logical group, they'll eventually be in the same size when zoomed in enough.
My first thought is to bind the MINSIZE to a data attribute, so that they
start with different font sizes and eventually scaled to the same MAXSIZE.
But the MINSIZE/MAXSIZE cannot be used in this way.
Any suggestions?
P.S. I'm not using mapscript, just map file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100413/a7a44fbf/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: de.png
Type: image/png
Size: 8693 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100413/a7a44fbf/attachment.png>
More information about the MapServer-users
mailing list