[Mapserver-users] automatically resize

Charlton Purvis cpurvis at asg.sc.edu
Fri Jul 11 13:09:42 EDT 2003


Answered my own question.  Got it.

-----Original Message-----
From: Charlton Purvis 
Sent: Friday, July 11, 2003 9:45 AM
To: Eric Bridger
Cc: Mapserver List
Subject: RE: [Mapserver-users] automatically resize

Hey, Eric:

I'm having a booger of a time getting my symbols to resize w/ zooming.
Given your example, how does the SYMBOLSCALE number relate to your MAP
level SCALE (min and max)?  I'm also assuming that the circle and the
text label increase at the same rate w/ a zoom.  Is that right?

In my case, I am only interested in keeping my point layer connected.
So at the initial scale (133277), a size of 1 for a SYMBOL 4 (square) is
fine.  When I'm zoomed in (SCALE = 4999) my square points need to appear
much bigger so that they will appear connected.

Am I on the right track?

Thanks.

-----Original Message-----
From: Eric Bridger [mailto:eric at gomoos.org] 
Sent: Friday, April 11, 2003 7:18 AM
To: Jehng-Jung Kao
Cc: Mapserver List
Subject: Re: [Mapserver-users] automatically resize

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
> 


_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


_______________________________________________
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