I have an OpenLayers3 map on my local filesystem, and I want a point layer to use SVG icons. This seems to fail silently:
var style = new ol.style.Style({ image: new ol.style.Icon({ size: [95, 95], src: "styles/transport_aerodrome.svg" })});Is this because the SVG, since it is a local file, does not have content-type, but OL3 needs SVGs to have content-type: image/svg+xml? Or is there another reason this fails, and a way to fix it?
أكثر...
var style = new ol.style.Style({ image: new ol.style.Icon({ size: [95, 95], src: "styles/transport_aerodrome.svg" })});Is this because the SVG, since it is a local file, does not have content-type, but OL3 needs SVGs to have content-type: image/svg+xml? Or is there another reason this fails, and a way to fix it?
أكثر...