My flutter map, i've taken out my api key. I've tried with mapbox and thunderforest. Both have the same effect.
body: FlutterMap(
options: MapOptions(
center: LatLng(57.1498817, -2.1950666),
zoom: 10.0,
),
layers: [
new TileLayerOptions(
urlTemplate: "https://tile.thunderforest.com/neighbourhood/{z}/{x}/{y}.png?apikey=<apikey>",
),
MarkerLayerOptions(
markers: getLocationsMarkers(),
),
],
),
I've solved my issue by moving to google_maps_flutter. There's a markers example in the examples folder.
The same issue, actually.
To @reidterror and anyone who experiences the same issue: You have to add <uses-permission android:name="android.permission.INTERNET"/> permission to the root of your AndroidManifest.xml to fix it. Not sure why it happens, since it's needed for debugging only, but it fixed it for me.
Most helpful comment
To @reidterror and anyone who experiences the same issue: You have to add
<uses-permission android:name="android.permission.INTERNET"/>permission to the root of yourAndroidManifest.xmlto fix it. Not sure why it happens, since it's needed for debugging only, but it fixed it for me.