I am developing a project in which I have to migrate from Openlayers to leaflet and I have a question about the interactions since in Openlayers they can be defined with different Properties such as:
var obCreationInteraction = new ol.interaction.Select({
removeCondition: ol.events.condition.always,
style: new ol.style.Style({
image: new ol.style.Icon(({
anchor: [0.5, 1],
anchorXUnits: 'fraction',
anchorYUnits: 'fraction',
opacity: 0.8,
scale: 0.25,
src: '../GC/resources/images/marker-geopoint.png'
}))
})
});
In leaflet you can only define the map which interaction you want and which you do not, but you can not add properties to the interaction. Another issue is that there are not all interactions in Openlayers .
How to solve the interactions in the Leaflet library?
Thank you!