Disable editing layers on load from external source (esri) #1520
-
I'm using
The issue is, I can't find a way to elegantly disable editing of these layers on load. What has worked is the following:
But the issue is, I would need to trigger this code every time the map view changes and esri-leaflet loads more layers. I would like to avoid this due to performance concerns. Is there a way to elegantly disable editing for the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
You can set the option
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. That did seem to work. Any idea how to fix the Typescript issue? I do have
|
Beta Was this translation helpful? Give feedback.
You can try to overwrite it like we do with the Leaflet Layer Options:
leaflet-geoman/leaflet-geoman.d.ts
Lines 1 to 12 in c8961ef