Hi Martin,

I think you should change the "temporary" style not the "default" style.

Maybe this works for you. I haven't tried

function handleMeasurements(event) {
   var geometry = event.geometry;
   var measure = event.measure;
   if (measure.toFixed(3) > 10000){
     new_style_properties = {'fillColor':'#FF3300','
>
> fillOpacity': .5,
> 'strokeColor': '#FF3300', 'strokeWidth': 2};
>      new_style = new OpenLayers.Style();
>      new_style.addRules([
>          new OpenLayers.Rule({symbolizer: new_style_properties})
>      ]);
>      var new_styleMap = new OpenLayers.StyleMap({"*temporary*":
> new_style});
>      drawControls.handlerOptions.layerOptions = {styleMap: new_styleMap}
>    }
> }



-- 
Saludos,

Bolo
www.geoinquiets.cat
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to