how do i get different map types on flutter
I am using fluttermaps to get the basic osm(open street map)layer to appear. it works but I am trying to add more options. Does anyone have any tips on where to go. I have this so far and its working…
I am using fluttermaps to get the basic osm(open street map)layer to appear. it works but I am trying to add more options. Does anyone have any tips on where to go. I have this so far and its working…
I'm trying to create a map using flutter_maps, but when I add a GestureDetector to the markers, some errors appear MarkerLayer( markers: [ Marker( point: LatLng(-22.3285, -49.0523), width: 65, height: 50, builder: (context) => GestureDetector( onTap: () { //nothing yet…
i want to show a map with marker on the user current location but it won't for some reason the map work well but the marker for the user when i try to show it i face this error am…
Not sure what I am doing wrong. I specify my assets in pubspec.yml like so assets: - assets/markers/station.png - assets/markers/other/ - assets/markers/files/ and try loading it as a marker image with flutter map: child: FlutterMap( options: MapOptions( center: const LatLng(32.8150,…
i am using fluttermap with MapBox tiles. This is my map: FlutterMap( options: MapOptions( center: userLocation ?? bikePosition ?? LatLng(46.94809, 7.44744), zoom: 8.0, minZoom: 4.0, maxZoom: 18.0, interactiveFlags: InteractiveFlag.all & ~InteractiveFlag.rotate, ), nonRotatedChildren: [ isSatellite ? TileLayer( urlTemplate: "https://api.mapbox.com/styles/v1/twinnerag/cllnbkuiw000c01pe82l86m0s/tiles/256/{z}/{x}/{y}@2x?access_token=pk.eyJ1IjoidHdpbm5lcmFnIiwiYSI6ImNsbG1ib3FmdDFoZWEzY3Q2ODRoamloN2UifQ.FVQHAk7oy1RCyvlDqeZW5A", )…
How to disable map rotation in flutter_map while zooming? I tried this way: MapOptions( interactiveFlags: InteractiveFlag.pinchZoom | InteractiveFlag.drag, zoom: 15.0, ), But this always disable rotation. I only want to temporarily disable rotation when zooming. Is this possible?
I'm getting a json response in the format "category1": { "Winter": [ "Woolen Clothes", "Rain Coats", "sweater" ] }, "category2": { "Summer": [ "Sun Glass", "Cotton Clothes", "Ice Creams" ] }, How can i convert this to an object. I…
I have a Map like following: final Map<String, dynamic> question = { 'rating': { 'added': false, } }; And I want to use it inside another Map like below: final Map<String, dynamic> book = { 'detail': { 'questions': [ question…
What I am trying to do is creating a variable that can hold the following data: questiion = { 'title': '', 'description': '', 'questionTitle': '', 'option1Text': '', 'option2Text': '', 'option3Text': '', 'option1Correctness': false, 'option2Correctness': false, 'option3Correctness': false, 'questionNumber' : 1…
I get this error in my code where I get stocks data from an API and the link changes according to a for loop on a list in the same class. my code is below. ive tried calling the code…