The icon for the Locate widget does not appear in IE11 and I've replaced it like so:
.esri-icon-locate:before {
content: "\e949";
}
But it still doesn't appear. Tried on IE11 on multiple PCs but still doesn't appear. Anyone know how to fix this?
Solved! Go to Solution.
Still broken in 4.10 for IE.
The span inside Locator div should have class='esri-icon esri-icon-locate', but it has only class='esri-icon'.
I solved it with CSS
.esri-locate .esri-icon:before {
content: "\e630";
}
.esri-locate .esri-icon-loading-indicator:before {
content: "\e65e";
}
.esri-locate .esri-icon {
font-family: 'CalciteWebCoreIcons' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Only way I found to get around it is:
setTimeout(function(){
locateBtn.domNode.innerHTML = "<span aria-hidden='true' class='esri-icon esri-icon-locate'></span><span class='esri-icon-font-fallback-text'>Find my location</span>";
}, 3000);
Still broken in 4.10 for IE.
The span inside Locator div should have class='esri-icon esri-icon-locate', but it has only class='esri-icon'.
I solved it with CSS
.esri-locate .esri-icon:before {
content: "\e630";
}
.esri-locate .esri-icon-loading-indicator:before {
content: "\e65e";
}
.esri-locate .esri-icon {
font-family: 'CalciteWebCoreIcons' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
This bug seems to be fixed with 4.12