I canβt find a way to move from a function in the selection event to a layer, which can be a part without going through all the functions of all layers of my map or saving the identifier of the artificial layer in each function to create. Is it not possible yet?
ol.js 3.7.0 ol.interaction.Selection β click β callback (event) {event.selected [0]}
In another part of my application, I would like to switch from a function to a layer to determine the style used in this function, in particular, regardless of whether it is visible.
ol.Feature.getStyle () || ol.Feature β (layer?) β getStyle ()
javascript maps openlayers-3
ryansstack
source share