hslayers-ng
hslayers-ng copied to clipboard
Layer is editable when editable is disabled in config
Bug
Describe the bug
Layer can be edited even though there is the editor: {editable: false} property in the layer's properties. Tested for point layer.
To Reproduce Steps to reproduce the behavior:
- Set '
editor: {editable: false}' in layer properties - Click on layer's feature
- See it shows in default style when hovered
- Try to drag the clicked point
- See it moves
Expected behavior
When editable is set to false, it shouldn't be possible to drag the features and the style shall not change on hover.
Screenshots
Additional context Initially discovered due to the styles applied on hover.