Comments (3)
You could always take a look at https://github.com/ibrierley/flutter_map_line_editor if any use.
from flutter_map.
Well, I just used it and thanks for the recommendation; however, this example also overwrites the only one polygon which is drawn. I am trying to see more than one polygon on the map drawn and kept showing.
from flutter_map.
I believe the Every Door app does this for Polyline
s: https://discord.com/channels/951867686378409984/989576405580918804/1229341271072575509 & https://github.com/Zverik/every_door/blob/main/lib/screens/modes/notes.dart#L130. Maybe you can adapt this for Polygon
s.
The FMTC example app also supports drawing of polygons in two modes: either move the map, and the point is added at the center crosshairs on tap, or tap and the point is added at tap location. The code is at https://github.com/JaffaKetchup/flutter_map_tile_caching/tree/main/example/lib/screens/main/pages/region_selection, but it will need some decomposing as it does quite a lot more. (It's also GPL licensed).
However, this is out of scope for the core. We try to give options so that you can build solutions, we don't build the solutions ourself (with the exception perhaps of the RichAttributionWidget
).
from flutter_map.
Related Issues (20)
- [BUG] v7-beta: polygon becomes distorted & invisible (but remains interactive) when zoomed far in HOT 7
- [BUG] map rotation is always possible on web even with InteractiveFlag set to InteractiveFlag.none HOT 2
- Load data from an external GeoJSON file HOT 2
- [BUG] pinchZoomWinGestures, rotationThreshold (etc.?) not working
- [BUG] Map tiles from local storage not loading when internet speed is poor HOT 5
- [BUG] Cannot use the package on flutter 3.22 HOT 1
- [BUG] External `MapController` lifecycle not synced with widget when destroyed and rebuilt HOT 29
- [BUG] `Polygon`s and `Polyline`s don't update when `points` modified HOT 5
- Tiles don't load after building a release apk HOT 1
- [BUG] Too high `package:meta` dependency constraint HOT 5
- [BUG] Overlapping `Polygon`s with same colors cause cutting HOT 3
- [BUG] Alternative polygon renderer in 7.0 renderers multiple holes incorrectly HOT 2
- [BUG] Polygon simplification triggers crash on iOS in 7.0 HOT 7
- [FEATURE] Prevent pinch move while pinch zooming
- [BUG] FlutterFlow dependencies issue on meta 1.12.0 HOT 2
- [BUG] `Polygon` update detection doesn't detect changes to `holePointsList`
- [BUG] 7.0.0 -> 7.0.1 performance regression HOT 3
- [BUG] 7.0.1 MapOptions assertion fails even when new object instance is used HOT 1
- [FEATURE] Remove logger dependencies HOT 3
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.