-
Notifications
You must be signed in to change notification settings - Fork 7
/
multi.dart
80 lines (78 loc) · 2.32 KB
/
multi.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import 'package:flutter/material.dart';
import 'package:universe/universe.dart';
class MultiPolygonMap extends StatelessWidget {
const MultiPolygonMap({super.key});
@override
Widget build(BuildContext context) {
return U.OpenStreetMap(
center: [51.555158, -0.108343],
zoom: 15,
polygons: U.PolygonLayer(
[
[
[51.556550, -0.108717],
[51.555936, -0.109532],
[51.555796, -0.109715],
[51.555469, -0.110004],
[51.555422, -0.109961],
[51.555162, -0.110251],
[51.555135, -0.110219],
[51.554909, -0.110444],
[51.554855, -0.110380],
[51.554688, -0.110509],
[51.554635, -0.110326],
[51.554582, -0.110326],
[51.554235, -0.109801],
[51.554101, -0.110026],
[51.553968, -0.109833],
[51.553908, -0.109919],
[51.553888, -0.109897],
[51.553781, -0.109886],
[51.553748, -0.108234],
[51.553981, -0.107011],
[51.553895, -0.106807],
[51.553834, -0.106754],
[51.553968, -0.106593],
[51.554048, -0.106732],
[51.554375, -0.106861],
[51.555015, -0.106850],
[51.555369, -0.106936],
[51.555616, -0.107033],
[51.555782, -0.107140],
[51.555996, -0.107333],
[51.556236, -0.107494],
[51.556543, -0.107666],
[51.556603, -0.107698],
],
[
[51.557904, -0.104146],
[51.558384, -0.102365],
[51.557370, -0.101657],
[51.556956, -0.103524],
],
[
[51.555436, -0.105466],
[51.555436, -0.104651],
[51.554642, -0.104619],
[51.553681, -0.104511],
[51.553634, -0.104908],
[51.554615, -0.105252],
[51.554875, -0.105327],
],
[
[51.556850, -0.115734],
[51.556249, -0.116849],
[51.557904, -0.119274],
[51.558531, -0.117987],
[51.557570, -0.116592],
],
],
stroke: true,
strokeColor: Colors.red,
strokeWidth: 1.6,
fillColor: Colors.pink,
fillOpacity: 0.4,
),
);
}
}