I want to use the bootstrap glyphicon set as markers for a kml layer in an application using openlayers 3. I have tried the following:
var shopStyle = new ol.style.Style({
image: new ol.style.Icon({
anchor: [0.5, 0.5],
size: [50, 50],
opacity: 1,
scale: 0.25,
src: $('<span class="glyphicon glyphicon-shopping-cart"></span>')
})
});
This doesn't work - the layer isn't rendered at all. What is the right way to do it?