New method `setInteractive(interactive)` for interactive layers
See original GitHub issueFor interactive layers (layers with the interactive
option, or extending the virtual InteractiveLayer
class), we could provide a setInteractive
method to change the state after the layer is created.
As it is now, there’s no way to change the interactive state after a layer has been created, causing issues like #5441.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:11
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Is there a way to make FeatureGroup or LayerGroup un ...
L.Layer.include({ setInteractive: function (interactive) { if (this. ... Note this only works for elements that have a getElement() method.
Read more >Interactive feature input—ArcGIS Pro | Documentation
Select a feature layer from the map. Browse to a feature class. Interactive input—add a new layer and interactively create features. Feature input...
Read more >Touch events - Notes of Phaser 3 - GitHub Pages
Register interactive¶. Call gameObject.setInteractive(...) to register touch input of Game Object before listening touching events. Set hit area ...
Read more >H.map.Style - HERE Developer
setInteractive (layerIds, interactive) ... Returned configuration object represents the extracted layers and can be used for creating a new H.map.
Read more >Record Set interactive table input - Esri Community
This is done using the recordset data type (much in the same way as a feature set allows interactive drawing) and a template...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Made this little function as a “plugin”:
Just call it like every other function e.g.
layer.setInteractive(true)
orlayerGroup.setInteractive(false)
.Thanks @Jadaw1n ! That worked like a charm, here it is in Typescript for anyone who wants it: