Use Font Awesome 5 icons as SVG for POI layers
where iD Tagging Schema references "fas-*" icons. For now, only use selected FA 5 SVG files for overpass layers (without loading any FA 5 JS, CSS or font) and stick with FA 4.7 for everything else.
This commit is contained in:
parent
87858b36e4
commit
7bcbb1a8e4
3 changed files with 23 additions and 0 deletions
|
|
@ -190,6 +190,8 @@ BR.LayersConfig = L.Class.extend({
|
|||
markerSign = `<img class="icon-invert" src="dist/images/${icon.substr(5)}-11.svg" />`;
|
||||
} else if (icon && icon.startsWith('temaki-')) {
|
||||
markerSign = `<img class="icon-invert" src="dist/images/${icon.substr(7)}.svg" width="11" />`;
|
||||
} else if (icon && icon.startsWith('fas-')) {
|
||||
markerSign = `<img class="icon-invert" src="dist/images/${icon.substr(4)}.svg" width="11" />`;
|
||||
}
|
||||
|
||||
return Object.assign(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue