Closed hhkaos closed 3 years ago
This looks like a useful snippet. We'll just want to remove the const fl to fit with the standards we discussed earlier.
Yep!, you are right!
useful indeed!
so only view.map.layers.find( l => l.title === "${1:LayerTitle}");
with the prefix findLayer
sounds great to me
PR done!
I took the idea from this script that Maarten from Esri Netherlands published on its CoolScripts repo.
Prefix: findLayer Description: Snippet:
Code: