Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 793 Bytes

Flutter - Lab 09 10.md

File metadata and controls

27 lines (23 loc) · 793 Bytes

Flutter - Geolocation, Geocoding, and Maps

Dependencies Required

flutter pub add geocoding
flutter pub add geolocator
flutter pub add flutter_map
flutter pub add latlong2

https://pub.dev/packages/geocoding https://pub.dev/packages/geolocator https://pub.dev/packages/flutter_map https://pub.dev/packages/latlong2

My Token

TileLayer(
    urlTemplate:
        'https://api.mapbox.com/styles/v1/sethdev/ckhrbzrlt06no19o4kc067jyh/tiles/256/{z}/{x}/{y}@2x?access_token=pk.eyJ1Ijoic2V0aGRldiIsImEiOiJja2hyYmZjYTgwOTA4MzVvc2UzbHlrcnM3In0.0qLWJ57FdfSwf25r5hzHgA',
    additionalOptions: const {
      'accessToken':
          'pk.eyJ1Ijoic2V0aGRldiIsImEiOiJja2hyYmZjYTgwOTA4MzVvc2UzbHlrcnM3In0.0qLWJ57FdfSwf25r5hzHgA',
      'id': 'mapbox.mapbox-streets-v8'
    }),