I have a service that returns an array of images with 4 coordinates each (top-left, top-right, bottom-left, bottom-right).
Is there a way to display these images over a map? This is my style function so far, but only the stroke is appearing:
function(feature) { var EO = feature.get('source'); return [new ol.style.Style({ image: new ol.style.Icon({ src: EO.image, rotateWithView: true, }), stroke: new ol.style.Stroke({ color: '#00F', width: 1 }) })] }
أكثر...
Is there a way to display these images over a map? This is my style function so far, but only the stroke is appearing:
function(feature) { var EO = feature.get('source'); return [new ol.style.Style({ image: new ol.style.Icon({ src: EO.image, rotateWithView: true, }), stroke: new ol.style.Stroke({ color: '#00F', width: 1 }) })] }
أكثر...