New answers tagged

1

Add an ol.interaction.Select to your map. It allows multi-selects (shift+click), and sends an array of selected and deselected features in its 'select' event. It uses an ol.Collection to store selection results. For instance: var int_select = new ol.interaction.Select({ features: new ol.Collection(); }); map.addInteraction(int_select); int_select.on('...


1

I think you're just forgetting about the popupAnchor option of L.Icon/L.DivIcon.



Top 50 recent answers are included