Why is sendPointToClient protected? I’m assuming that would be the main interface to the component, so shouldn’t that be public? Maybe I’m mis-understanding the intended usage.
Kind of yes. It is implementing the HasValue interface for Point (from JTS project). So the idea is to use setValue/getValue, or even better, bind a property of your DTO/Entity whose type is Point using Binder.
In my add-on projects the best documentation usually is in the tests directory. Lazy me.
https://github.com/mstahv/leaflet-for-flow/blob/master/src/test/java/org/vaadin/DemoView.java
I hope I’ll find some time to improve the addon, like by providing more base layers and to support other geometry types.
Gotcha. Thanks, Matti. I’m still a little behind with my V10-groove. :-)