Closed ramazanulucay closed 3 years ago
Hello @ramazanulucay , yes, sure.
There are several ways to achieve this:
if those points inside single layer -> use style function to dynamically style based on some feature properties (id, any other custom properties)
There is an old example https://jsfiddle.net/ghettovoice/m3j0zydr/. It shows how to color svg icons based on some feature property with vl-style-func
component.
if those points in a separate layers -> just define style for each layer with corresponding
<vl-layer-vector id="one">
<vl-source-vector :features="layerOneFeatures" />
<vl-style-box>
<vl-style-icon :src="//exmaple.com/marker1.png"></vl-style-icon>
</vl-style-box>
</vl-layer-vector>
Thank you @ghettovoice
Hi,
I want to use two icon for each point. Is it possible?
Thanks.