| 1 | import 'package:flutter_map/flutter_map.dart'; |
| 2 | import 'package:flutter_map_cancellable_tile_provider/flutter_map_cancellable_tile_provider.dart'; |
| 3 | import 'package:plane_pal/constants/main.dart'; |
| 4 | |
| 5 | TileLayer get openStreetMapTileLayer => TileLayer |
| 6 | urlTemplate: |
| 7 | 'https://api.mapbox.com/styles/v1/mapbox/streets-v12/tiles/{z}/{x}/{y}?access_token={accessToken}', |
| 8 | userAgentPackageName: 'com.phantomknight287.aero', |
| 9 | tileProvider: CancellableNetworkTileProvider(), |
| 10 | additionalOptions: const { |
| 11 | 'accessToken': MAPBOX_API_KEY, |
| 12 | }, |
| 13 | tileDimension: 512, |
| 14 | zoomOffset: -1, |
| 15 | ); |