Is there any way that I can create a marker in OpenLayers with an HTML icon?
Example in Mapbox:
marker.setIcon(
L.divIcon({
className: 'map_primary_marker_container',
html: "<div class='map_primary_marker'>TEXT</div><div class='map_primary_marker_bottom'></div>",
iconSize: [160, 50],
iconAnchor: [80, 40]
})
);
Best Answer
I found myself a solution, it's a tricky one but if anyone has a better idea please answer.