[OpenLayers-Users] Circle Function

Roald de Wit roald.dewit at lisasoft.com
Thu Apr 30 02:41:09 EDT 2009


Hi Kenny,

Would it be sufficient for you to just have a point on the map that gets
styled as a circle with a certain radius? Then it's quite easy: [1].

Regards, Roald

[1] http://pastebin.com/f2a72e1d4


Kenny wrote:
>
> Hi Guys,
>
>
>
> I have been trying for ages and can’t seem to get this working,
>
>
>
> Does anyone have a simple function for drawing a circle?
>
>
>
> I mean I want to pass certain variables via a link and it should
> simply draw a circle on the map.
>
>
>
> Ie:
>
>
>
> Function
> createCircle(lat,lng,radius,id,description,lineColour,fillColour){
>
>
>
> }
>
>
>
> <a
> href=”javascript:createCircle(’-25.12345’,’26.12345’,’250’,’1’,’Description’,’#00000,’#C0C0C0’)”>Circle</a>
>
>
>
> If possible, if I click on the circle it should display a popup with
> the details in the popup
>
>
>
> Thanks
>
>
>
> K-
>
>
>


--
Roald de Wit
Software Engineer
roald.dewit at lisasoft.com

Commercial Support for Open Source GIS Software
http://lisasoft.com/LISAsoft/SupportedProducts/



The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.



More information about the Users mailing list