[OpenLayers-Users] Circle Function

Christopher Schmidt crschmidt at metacarta.com
Thu Apr 30 07:22:48 EDT 2009


On Thu, Apr 30, 2009 at 07:53:17AM +0200, 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?

http://dev.openlayers.org/apidocs/files/OpenLayers/Geometry/Polygon-js.html#OpenLayers.Geometry.Polygon.createRegularPolygon

> 
>  
> 
> 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-
> 
>  
> 

> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list