[OpenLayers-Users] help with vector(circle)
Valeria Muñoz
valemunoz at gmail.com
Mon Jul 20 11:12:25 EDT 2009
thanks for the information.
RG
2009/7/17 Arnd Wippermann <arnd.wippermann at web.de>
> Hi,
>
> The circles you are seeing are symbols for the point features and no map
> objects. You have to use OpenLayers regularpolygon to draw a circle.
>
> Arnd
>
> ------------------------------
> *Von:* users-bounces at openlayers.org [mailto:users-bounces at openlayers.org]
> *Im Auftrag von *Valeria Muñoz
> *Gesendet:* Freitag, 17. Juli 2009 21:59
> *An:* users at openlayers.org
> *Betreff:* [OpenLayers-Users] help with vector(circle)
>
> Hi
> i have a problem with vector, i draw a point(circle) in my map with
> this code:
>
> var style_blue = OpenLayers.Util.extend({},
> OpenLayers.Feature.Vector.style['default']);
> style_blue.strokeColor = linea_color;
> style_blue.fillColor = color;
> if(opc>0)
> style_blue.fillOpacity=opc;
> else
> style_blue.fillOpacity=0.4;
> style_blue.stroke=false;
> style_blue.pointRadius=radio;
> var points = new OpenLayers.Geometry.Point(lon_circulo,lat_circulo);
> pointFeature = new OpenLayers.Feature.Vector(points, null, style_blue);
> vectorLayer.addFeatures([pointFeature]);
>
> this code draw the circle but my problem is that the circle does not fit to
> the zoom of the map, always has the same radio and what I need is to fit the
> map and as the zoom is the highest circle is also.
>
> do you know how can i do this?
>
> RG
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090720/f3896948/attachment.html
More information about the Users
mailing list