title: Openlayers marker size
body: <p>I have an openlayers map with markers added as geometry vector points. In the style option I set a size for each. However, the problem is, that if I zoom in or zoom out, they all become the same size until I load the entire page again. In other words, once I zoom in or out, they are all the same.</p>
  
  <pre><code>var layer_style = OpenLayers.Util.extend({},
  OpenLayers.Feature.Vector.style['default']);
  var style = OpenLayers.Util.extend({}, layer_style);
  
  var pointLayer = new OpenLayers.Layer.Vector("Point Layer");
  
  map.addLayers([terrain, road, satellite, hybrid, pointLayer]);
  var lonlat = new OpenLayers.LonLat(0, 140);
  lonlat.transform(proj, map.getProjectionObject());
  map.setCenter(lonlat, 2);
  
  var point = new OpenLayers.Geometry.Point(-40, -40);
  point = point.transform(proj, map.getProjectionObject());
  style.pointRadius = 10;
  var pointFeature = new OpenLayers.Feature.Vector(point, null, style);
  pointLayer.addFeatures([pointFeature]);
  
  var point = new OpenLayers.Geometry.Point(-40, -40);
  point = point.transform(proj, map.getProjectionObject());
  style.pointRadius = 40;
  var pointFeature = new OpenLayers.Feature.Vector(point, null, style);
  pointLayer.addFeatures([pointFeature]);
  </code></pre>
  
  <p>When I load this, I get two markers, one size 10, the other 40. But when I zoom in or out, they all become same size.</p>