<div dir="ltr">Hi there, <div>thanks for your input.<div><br></div><div style>But if you look my image mockup of what I m trying to display , I want to style the station along with some of its attributes (sort of symbols composition, not just the point one) .</div>
<div style>I'd be glad if you could update my example here <a href="http://jsfiddle.net/jLEYS/3/">http://jsfiddle.net/jLEYS/3/</a> to show me how I could achieve that using the StyleMap</div><div style><br></div><div style>
Regards,</div><div style>Yves</div><div style><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/5 Sergeant_york <span dir="ltr"><<a href="mailto:electronicpanda@gmail.com" target="_blank">electronicpanda@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">var style = new OpenLayers.Style({<br>
    externalGraphic: '${graphicFunction}',<br>
     graphicYOffset: '${graphicYOffsetFunction}',<br>
     graphicXOffset: '${graphicXOffsetFunction}',<br>
    /* etc... */<br>
}, {<br>
    context: {<br>
        graphicFunction: function(feature) {<br>
            if(feature.attributes.type=='bike') return '/bike.png';<br>
            else if(feature.attributes.type=='hospital') return<br>
'/hospital.png';<br>
            /*etc...*/<br>
        },<br>
        graphicYOffsetFunction: function(feature){<br>
            if(feature.attributes.type=='bike') return 10;<br>
            else if(feature.attributes.type=='hospital') return -10;<br>
            /*etc...*/<br>
        }, /*etc...*/<br>
    }<br>
});<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/Vector-layer-and-multiple-symbolizers-tp5032127p5032322.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/Vector-layer-and-multiple-symbolizers-tp5032127p5032322.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</div></div></blockquote></div><br></div>