-
Notifications
You must be signed in to change notification settings - Fork 7
/
multi.dart
37 lines (34 loc) · 863 Bytes
/
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
import 'package:flutter/material.dart';
import 'package:universe/universe.dart';
import '../shared.dart';
class MultiRectangleMap extends StatelessWidget {
const MultiRectangleMap({super.key});
@override
Widget build(BuildContext context) {
return U.MapBox(
accessToken: yourAccessTokenHere,
center: [-6.175329, 106.827253],
zoom: 15,
rectangles: U.RectangleLayer(
[
[
[-6.183200, 106.823205],
[-6.180427, 106.831809],
],
[
[-6.177590, 106.825007],
[-6.173344, 106.829234],
],
[
[-6.171083, 106.823290],
[-6.167542, 106.825307],
],
],
stroke: true,
strokeColor: Colors.yellow,
fillColor: Colors.lightBlue,
fillOpacity: 0.6,
),
);
}
}