flutter_map icon indicating copy to clipboard operation
flutter_map copied to clipboard

Add Polygons drawing

Open yostrokon opened this issue 8 years ago • 8 comments

Is it possible to implement polygons drawing feature?

yostrokon avatar Jul 29 '18 07:07 yostrokon

Actually, have an idea how to do this

Path path = new Path(); path.addPolygon(offsets, true);

final paint = Paint() ..style = PaintingStyle.fill; canvas.drawPath(path, paint);

yostrokon avatar Sep 05 '18 06:09 yostrokon

Yes, we have a polyline layer already that can be used as a reference

johnpryan avatar Sep 05 '18 18:09 johnpryan

Sure. Just to find the time and selfeducate about git things ) Also have an idea to extend polyline to geodesic arcs based on same name plugin from leaflet.

yostrokon avatar Sep 05 '18 20:09 yostrokon

Cool - you can use the plugin API so that your layer can access the MapState similar to the polyline layer

johnpryan avatar Sep 14 '18 16:09 johnpryan

any improvements on this is there any way to draw a polygon on a map?

DanialV avatar Jan 26 '19 15:01 DanialV

What can't you do with a polyline out of interest ? Is it the filling of it ?

ibrierley avatar Jan 26 '19 16:01 ibrierley

@DanialV There's a polygon layer now https://github.com/johnpryan/flutter_map/blob/master/lib/src/layer/polygon_layer.dart

johnpryan avatar Feb 03 '19 01:02 johnpryan

@DanialV There's a polygon layer now https://github.com/johnpryan/flutter_map/blob/master/lib/src/layer/polygon_layer.dart

how can i use it ? and how it work ? please guide me.

billbull21 avatar Apr 22 '21 04:04 billbull21