Comments (8)
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.
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.
from flutter_map_line_editor.
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.
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.
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
from flutter_map_line_editor.
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.
Yes, there duplicate markers on the first leg . thanks you
from flutter_map_line_editor.
Super, thanks for the update. I'll add that change to git.
from flutter_map_line_editor.
Related Issues (20)
- hardcoded DragMarker size HOT 5
- null safety HOT 5
- License? HOT 1
- How do you compute the area of the polygon? HOT 2
- Non-nullable instance field 'polyEditor' must be initialized. HOT 3
- Moving Polygon/Polyline HOT 1
- FLUTTER_MAP RELATIONS: New Documentation HOT 1
- Markes not dragging HOT 20
- Update LatLng2 to 0.8.1 HOT 2
- Please update cupertino icons on nullsafety branch HOT 2
- Web support HOT 2
- no filled colors on polygon HOT 6
- Make it compatible with latlong2 0.8.1 as in dragmarker HOT 7
- Markers not dragging - again HOT 3
- Inbetween point of a line not quite accurate on low zooms. HOT 5
- Is a point inside of polygon? HOT 1
- Next version HOT 2
- Drag marker does not update polygon points HOT 2
- Feature request: option to make start/end of polyline non-editable
- Featrue request: make a config option for long-press on tap to remove points
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_map_line_editor.