skip to Main Content

Html – Fontawesome svg-icons in openlayers

I know similar questions have been asked before but their answers don't help me. I'm trying to use Fontawesome-Icons as markers in an Openlayers map like this: const svg = ` <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><!--!Font Awesome Free 6.5.2…

VIEW QUESTION

Javascript – Getting a filtered list from float32array results

Using this piece of code: function displayPixelValue(event) { const filteredLayers = map.getAllLayers().filter(function (layer) { return layer.get('name'); }); for (let i=0; i<filteredLayers.length; i++) { let reliefPattern = "_mbpd_"; if (filteredLayers[i].get('name').match(reliefPattern)) { const reliefValue = filteredLayers[i].getData(event.pixel); console.log(reliefValue); } } } map.on(['pointermove'], displayPixelValue);…

VIEW QUESTION
Back To Top
Search