Closed philip-firstorder closed 4 years ago
Do you mean like a polygon the user creates by clinking the points in? This would be quite impossible to fit into how all of it works now (you click a toolbar button and the marker is added to the area and then you can move/resize it). So I'd say this would be a v2 feature at a minimum.
Yes a polygon where the user clicks the points in. With a double-click at the end to finish the editing. Like here https://svgjs.com/svg.draw.js/demo/index.html
You could add a 5 point polygon marker to the area when you click a toolbar button, but you should then also be able to create new intermediary nodes when you grab touch+move the lines.
My company started implementing this feature today, based on this Leaflet example http://leaflet.github.io/Leaflet.draw/docs/examples/edithandlers.html
Will keep you updated on the progress and open a pull-request when finished.
After testing with various initial shapes for the polygon, we reached the conclusion that a hexagon is the most suited because:
For polygon will use the GeoJSON standard notation.
Hi Philip,
It looks like you are getting quite advanced there. Cool stuff!
Having said that, I'd prefer to keep marker.js simple(r) and would ask you to keep this feature in your own fork.
Thank you for understanding.
You could add a 5 point polygon marker to the area when you click a toolbar button, but you should then also be able to create new intermediary nodes when you grab touch+move the lines.
Hello Phillip. Just wondering if you ever implemented the polygon custom marker shape on a separate fork ? I'm looking for that exact functionality on top of markerjs to allow users to annotate polygons on top of an image.
thanks.
I need a polygon marker to annotate contour areas.
Is there anything planned? Or would you accept pull requests if I have a go at it?