Related questions
how to add markers with OpenLayers 3
I'm trying to add makers on a OpenLayers 3 map.
The only example I have found is this one in the OpenLayers example list.
But the example uses ol.Style.Icon instead of something like OpenLayers.Marker in OpenLayers 2.
First Question
…
Adding event handler to feature in OpenLayers 3?
I am using the following code to add a feature to a vector layer in OpenLayers 3 (OL3):
marker = new ol.Feature({
geometry: new ol.geom.Point([longitude, latitude]),
name: "Location Marker"
});
markerStyle = new ol.style.Style({
image: new ol.style.…