The circle takes its size (or diameter) from the styleObj SIZE parameter. That 
value
is given in SIZEUNITS which defaults to PIXELS but can be a real-world unit as 
well.
You can set the SIZE a number of ways:

  - in the mapfile as a fixed value (e.g. SIZE 15)
  - in the mapfile bound to an attribute (e.g. SIZE [size_column])
  - in mapscript
  - dynamically via a URL with the CGI

The main limitation is that SIZE parameter *must* be an integer although that 
will be
changed in the next version. I'll try and work up a CGI-based example.

Steve

>>> "Atul Dravid" <[EMAIL PROTECTED]> 09/09/08 12:02 AM >>>
Dear Steve,
How do you change the radius of the circle dynamically ? Can you elaborate
more on this ?

My team is also trying to do the same thing like Ramya...

We have tried using the method Sucharita has suggested and it is working...
But it appears that your method may be simpler... But we are not able to
draw a circle with radius to be set dynamically...

Thanks,

--AD

On Tue, Sep 9, 2008 at 12:03 AM, Steve Lime <[EMAIL PROTECTED]>wrote:

> Create a layer in your mapfile like so:
>
> SYMBOL
>  NAME 'circle'
>  TYPE ELLIPSE
>  FILLED TRUE
>  POINTS 1 1 END
> END
>
> LAYER
>  NAME 'myPoiint'
>  TYPE POINT
>  STATUS OFF
>  CLASS
>    STYLE
>      COLOR 255 0 0
>      SIZE 15
>    END
>  END
> END
>
> Then in your script, the steps would be like so:
>
> 1) get the 'myPoint' layer
> 2) add a point feature to it
> 3) set the STATUS appropriately
>
> Now draw as normal. Assuming the point is in map coordinates you should see
> a red circle at the location
> you specified.
>
> Steve
>
> >>> On 9/8/2008 at 11:15 AM, in message
> <[EMAIL PROTECTED]>, "ramya
> srinivasan" <[EMAIL PROTECTED]> wrote:
> > Hi,
> > iam using php/mapscript.I will have to display the point clicked by the
> user
> > on the map. This is my task.Can u pls help me
> >
> > On Mon, Sep 8, 2008 at 9:18 PM, Steve Lime <[EMAIL PROTECTED]
> >wrote:
> >
> >> Can you explain a bit more about your environment (CGI vs. MapScript),
> >> context of the need etc...?
> >>
> >> The easiest path will likely involve a point layer that you'll populate
> >> dynamically (with the click coordinate) and then display that point with
> a
> >> circle symbol. You can scale that symbol appropriately using a style
> SIZE
> >> and SIZEUNITS.
> >>
> >> Steve
> >>
> >> >>> "ramya srinivasan" <[EMAIL PROTECTED]> 09/07/08 10:51 AM >>>
> >> Hi all,
> >>  * I want to draw a circle with the center clicked by the user on the
> >> map.Can anyone help me??*
> >> **
> >> *Thanks*
> >>
> >>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to