<p>Hi Yves, i don't know if i understand you question, but it's possible to use
the map.getZoom() function in an OpenLayers.Style.<br />
<br />
I'm using it for a proportional symbol analysis, with a featureStyle featuring a
context radius for the features, and the radius is function of the zoom level.
</p><pre>                function featureStyle() {<br />                        styleCircle = new
OpenLayers.Style(<br />                                    {<br />                                       
fillOpacity: 0.7,<br />                                        pointRadius:
&quot;${radius}&quot;,<br />                                        strokeColor:
&quot;#fae318&quot;,<br />                                            strokeWidth: 1,<br />                                            fillColor:  
&quot;${couleur}&quot;              <br />                                    },{<br />                    
                   context: {                               <br />                            
               radius: function(feature) {  <br />                                            
   surf = surf* Math.pow(2,map.getZoom()-4)    <br />                                         
      return surf;<br />                                            },<br />                                            couleur:
function(feature) {<br />                                                var maxV = 10;<br />                                                var comp =
Math.round(feature.attributes.count*255/maxV);<br />                                                return
&quot;#&quot;+RGBtoHex(comp,255-comp,0);<br />                                            }<br />                               
        } // End of obj context<br />                                    }<br />                            
   ); // End of obj OpenLayers.Style<br />                                styleMap = new
OpenLayers.StyleMap({'default':styleCircle});<br />                        return styleMap;<br
/>                }</pre><p>(Code inspired by examples on
http://www.geotribu.net/)</p><p></p><p>Hope this helps :)</p><p>Laurent</p><pre
/><br />
<br />
----------------------------------------------------------------<br />
This message was sent using IMP, the Internet Messaging Program.<br />