I am trying to display a random Flutter map using the flutter_maps package. When I was creating this, I couldn't find the 'layers' option under the map options. If I type layers I got an error "Parameter named 'layers' is not defined."
I have added all the required dependencies. How to solve this?
Code:
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong2/latlong.dart' as LatLng;
Container( //container 1
height: 800,
width: double.infinity,
child: FlutterMap(
options: MapOptions(
center: LatLng.LatLng(23.77176, 90.399452),
zoom: 8,
),
),
),