Tag Info

Hot answers tagged


Feature creation can be kind of tricky in OpenLayers 3. There aren't any official examples for ol.source.Vector layers, most of them are working with GeoJSON, or some other data exchange format. I have managed to create a working fiddle. Let me explain some of the key aspects of achieving your task. var layerLines = new ol.layer.Vector({ source: new ...


After searching a little deeper, I just remembered that vector layer in OL is drawn on canvas. So it's easier to work with since HTML5 canvas has the 'color-blend' property called globalCompositeOperation. //First get the DOM Element of the layer var div = document.getElementById(buffer_layer.id); //Then get the canvas element; //it returns an array, so ...

Only top voted, non community-wiki answers of a minimum length are eligible