[OpenLayers-Users] help with vector(circle)

Valeria Muñoz valemunoz at gmail.com
Fri Jul 17 15:59:00 EDT 2009


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/20090717/b95002c0/attachment.html


More information about the Users mailing list