<div dir="ltr">Dear Steve,<div><br></div><div>How do you change the radius of the circle dynamically ? Can you elaborate more on this ?</div><div><br></div><div>My team is also trying to do the same thing like Ramya...</div>
<div><br></div><div>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...</div>
<div><br></div><div>Thanks,</div><div><br></div><div>--AD<br><br><div class="gmail_quote">On Tue, Sep 9, 2008 at 12:03 AM, Steve Lime <span dir="ltr">&lt;<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Create a layer in your mapfile like so:<br>
<br>
SYMBOL<br>
 &nbsp;NAME &#39;circle&#39;<br>
 &nbsp;TYPE ELLIPSE<br>
 &nbsp;FILLED TRUE<br>
 &nbsp;POINTS 1 1 END<br>
END<br>
<br>
LAYER<br>
 &nbsp;NAME &#39;myPoiint&#39;<br>
 &nbsp;TYPE POINT<br>
 &nbsp;STATUS OFF<br>
 &nbsp;CLASS<br>
 &nbsp; &nbsp;STYLE<br>
 &nbsp; &nbsp; &nbsp;COLOR 255 0 0<br>
 &nbsp; &nbsp; &nbsp;SIZE 15<br>
 &nbsp; &nbsp;END<br>
 &nbsp;END<br>
END<br>
<br>
Then in your script, the steps would be like so:<br>
<br>
1) get the &#39;myPoint&#39; layer<br>
2) add a point feature to it<br>
3) set the STATUS appropriately<br>
<br>
Now draw as normal. Assuming the point is in map coordinates you should see a red circle at the location<br>
you specified.<br>
<br>
Steve<br>
<br>
&gt;&gt;&gt; On 9/8/2008 at 11:15 AM, in message<br>
&lt;<a href="mailto:3702658f0809080915y38b42472le294cbda8e40b45e@mail.gmail.com">3702658f0809080915y38b42472le294cbda8e40b45e@mail.gmail.com</a>&gt;, &quot;ramya<br>
srinivasan&quot; &lt;<a href="mailto:hellomps@gmail.com">hellomps@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; iam using php/mapscript.I will have to display the point clicked by the user<br>
&gt; on the map. This is my task.Can u pls help me<br>
&gt;<br>
&gt; On Mon, Sep 8, 2008 at 9:18 PM, Steve Lime &lt;<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>&gt;wrote:<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt;&gt; Can you explain a bit more about your environment (CGI vs. MapScript),<br>
&gt;&gt; context of the need etc...?<br>
&gt;&gt;<br>
&gt;&gt; The easiest path will likely involve a point layer that you&#39;ll populate<br>
&gt;&gt; dynamically (with the click coordinate) and then display that point with a<br>
&gt;&gt; circle symbol. You can scale that symbol appropriately using a style SIZE<br>
&gt;&gt; and SIZEUNITS.<br>
&gt;&gt;<br>
&gt;&gt; Steve<br>
&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &quot;ramya srinivasan&quot; &lt;<a href="mailto:hellomps@gmail.com">hellomps@gmail.com</a>&gt; 09/07/08 10:51 AM &gt;&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt; &nbsp;* I want to draw a circle with the center clicked by the user on the<br>
&gt;&gt; map.Can anyone help me??*<br>
&gt;&gt; **<br>
&gt;&gt; *Thanks*<br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></div></blockquote></div><br></div></div>