-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmulti.dart
35 lines (32 loc) · 1.05 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
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:universe/universe.dart';
import '../shared.dart';
class MultiLayerMap extends StatelessWidget {
const MultiLayerMap({super.key});
@override
Widget build(BuildContext context) {
return U.MapBox(
accessToken: yourAccessTokenHere,
type: MapBoxType.Bright,
center: [48.858236, 2.294477],
zoom: 13,
tiles: [
// add environmental measurements map layer from SafeCast (http://safecast.org/)
U.TileLayer(
'https://s3.amazonaws.com/te512.safecast.org/{z}/{x}/{y}.png',
attribution:
'Data: © OpenStreetMap contributors | Style: © SafeCast',
maxZoom: 16,
),
// add map layer from OpenRailwayMap
U.TileLayer(
'https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png',
attribution:
'Data: © OpenStreetMap contributors | Style: © OpenRailwayMap',
maxZoom: 19,
),
],
);
}
}