[Mapserver-users] automatically resize

Eric Bridger eric at gomoos.org
Fri Apr 11 04:17:44 PDT 2003


You can use SYMBOLSCALE in a LAYER in your map file which works with
both CLASS MINSIZE, MAXSIZE and LABEL MINSIZE MAXSIZE to scale both the
symbol and text.  You'll need to use truetype fonts and play around with
the SYMBOLSCALE value which changes with the zoom-in/out.  

Here's an example:
LAYER
  NAME "cities"
  TYPE POINT
  DATA "/mapserver/data/vector/tiger/cities"
  STATUS DEFAULT
  LABELITEM "PLACE"
  SYMBOLSCALE 1320000
  CLASS
    NAME "City"
    SYMBOL "circle"
    COLOR  255 255 0
    OUTLINECOLOR  0 0 0
    SIZE  8
    LABEL
      TYPE TRUETYPE
      FONT helr
      SIZE 9
      COLOR 0 0 0
      ANTIALIAS TRUE
      POSITION AUTO
      PARTIALS FALSE
      MAXSIZE 13
      MINSIZE 8
    END
  END
END



On Fri, 2003-04-11 at 03:08, Jehng-Jung Kao wrote:
> Dear List,
> 
> Is there any way to resize label based on the display size (zoom-in/out)
> instead of a fixed size?
> 
> Jehng-Jung Kao
> | Jehng-Jung Kao, Professor	Email: jjkao at ensys.ev.nctu.edu.tw
> | Inst. of Environ. Engrg.	Tel/Fax: +886-3-5731869/5731759 
> | National Chiao Tung Univ., 75 Po-Ai St., Hsinchu, Taiwan 30090, ROC.
> | http://green.ev.nctu.edu.tw/~jjkao
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 





More information about the MapServer-users mailing list