Hey everyone,
We would like to use Leaflet Draw to allow users to draw polygons for things like avoidance zones, but that doesn’t seem possible using the current module.
If its possible, I’d love to learn how, but if it isn’t, what would be the best way to enable this?
I never used Leaflet draw app and configured API on current component,
I believe it used to create, modify, and delete various geometric shapes directly on maps.
If you are exploring alternative then identical tool/props available in ignition is geoJSON and vector layer.
Perspective - Adding GeoJSON Shapes
Indeed, Leaflet draw adds ui elements basically. The geojson and layers are great for the actual rendering, but I was hoping to not need to re-implement the act of clicking on the map etc. It is not too much work, but thought I’d check.
After some more searching, it seems maybe creating a custom component would be the way to use this, since then I can use the libraries directly.
Have you any experience with that?
Thanks for the info! I haven’t worked on creating custom components myself, so I don’t have experience with that yet.