I'm developing an application using openlayers 3.11.2. I have a point layer. I want to style this layer using font-icon base of this question. When I use FontAwesome
fonticon, It work correctyl, But when I use My fonticon
, It dose not work correctyl.
Note:
I created my fontIcon at icomoon.io.
Where is the problem?
Edit:
I define the style as follow:
var style = new ol.style.Style({
text: new ol.style.Text({
text: '\e900',
font: 'normal 18px MyFontIcon',
textBaseline: 'Bottom',
fill: new ol.style.Fill({
color: 'white',
})
})
});