Coder Social home page Coder Social logo

Comments (8)

ibrierley avatar ibrierley commented on July 17, 2024

It's not very clear from the image....in the issue you raised a few days ago, you were able to add points, so I'm wondering what you have that's different now ?

from flutter_map_line_editor.

zozeei avatar zozeei commented on July 17, 2024

Sorry, the image I sent was not very clear. I am sending a new one. The issue is that I cannot drag (edit) the line segment of point 1 and 3.
Screenshot_1599701875

from flutter_map_line_editor.

ibrierley avatar ibrierley commented on July 17, 2024

Ah yes, I think that makes sense logically, as there is no actual end point back to the start, it's assumed there is sort of an extra one inferred back to the beginning which it can't see.

Not quite sure the best way to handle that, as I'd prefer it not to know any underlying line or shape and just handle a set of points, but maybe there could be an option to infer an extra line back to the beginning. I'll have a ponder, but probably won't get chance to have a play for a day or so. In the interim, I guess you can add an extra point by dragging between 2 and 3, but that's a bit clunky to have to move the last bit each time, so does feel like it could do with something there to help.

from flutter_map_line_editor.

ibrierley avatar ibrierley commented on July 17, 2024

Ok, I've added an option addClosePathMarker : true/false. Set to true if you want the extra marker on a closed final section like a closed polygon. Set to false if a line. See if that helps.

from flutter_map_line_editor.

zozeei avatar zozeei commented on July 17, 2024

Thank you very much for your help! It's working fine now. I've changed from 0 to 2 in this line of code so that it can handle polygon type
1599789706108

from flutter_map_line_editor.

ibrierley avatar ibrierley commented on July 17, 2024

Ok thanks, what happened if the check > 0 was left instead of 2 out of interest (it makes sense for it to be > 2), were there duplicate markers on the first leg or something ?

from flutter_map_line_editor.

zozeei avatar zozeei commented on July 17, 2024

Yes, there duplicate markers on the first leg . thanks you

from flutter_map_line_editor.

ibrierley avatar ibrierley commented on July 17, 2024

Super, thanks for the update. I'll add that change to git.

from flutter_map_line_editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.