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:
Norbert Renner 2021-04-07 12:51:50 +02:00
parent 87858b36e4
commit 7bcbb1a8e4
3 changed files with 23 additions and 0 deletions

View file

@ -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(