<div class="gmail_extra">Hi Martin, <br><br>I think you should change the "temporary" style not the "default" style.<br><br>Maybe this works for you. I haven't tried<br><br>function handleMeasurements(event) {<br>
var geometry = event.geometry;<br>
var measure = event.measure;<br>
if (measure.toFixed(3) > 10000){<br>
new_style_properties = {'fillColor':'#FF3300','<blockquote class="gmail_quote">fillOpacity': .5,<br>
'strokeColor': '#FF3300', 'strokeWidth': 2};<br>
new_style = new OpenLayers.Style();<br>
new_style.addRules([<br>
new OpenLayers.Rule({symbolizer: new_style_properties})<br>
]);<br>
var new_styleMap = new OpenLayers.StyleMap({"<b>temporary</b>": new_style});<br>
drawControls.handlerOptions.layerOptions = {styleMap: new_styleMap}<br>
}<br>
}</blockquote><br><br>-- <br>Saludos,<br><br>Bolo<br><a href="http://www.geoinquiets.cat" target="_blank">www.geoinquiets.cat</a><br><br>
</div>