Closed zozeei closed 4 years ago
I followed your suggestion. But only points show up, no line connecting those points (as in the picture). Do you know how can I fix this problem?
Is it possible to do a barebones minimal example showing the issue.
I don't think you'd get lines, as that's only if you are using polylines.....if you are using a polygon and using those points (it must be the exact same list of points, not a copy, as it edits in place). I would expect you to get markers where your polygon points are (and midway along the polygon edge), but I've never tried it with polygons. I am happy to poke about and take a look though....
Thanks,
Ian
On Fri, Aug 21, 2020 at 9:44 AM zozeei notifications@github.com wrote:
I followed your suggestion. But only points show up, no line connecting those points (as in the picture). Do you know how can I fix this problem?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ibrierley/flutter_map_line_editor/issues/3#issuecomment-678121795, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5YN5IF2UE53RHOHNRM5LTSBYXYDANCNFSM4QFS2PSA .
It's working now! The problem was I misread your code. Thank you very much. I attached the solution.
Super, thanks for the feedback and the image. I guess you could also give the polygon a border when editing or something to make it look a little more like the polyline editor.
I suspect it can support them. Basically it just takes a list of points, which it changes in place.
If that list is then used to draw a polygon, I think it shouldn't care. The code doesn't care what anything is, other than a list of points to change.
Give it a go and let me know if it doesn't work.