What is the bug?
This bug was introduced in flutter_map v3.1.0, v3.0.0 works as expected.
When rendering a TileLayer, setting the fastReplace flag to true prevents the layer from rendering.
What is the expected behaviour?
The layer should render.
How can we reproduce this issue?
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(home: MyHomePage());
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: FlutterMap(
options: MapOptions(),
children: <Widget>[
TileLayer(
urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
fastReplace: true,
),
],
),
);
}
}
Do you have a potential solution?
No response
Can you provide any other information?
No response
Platforms Affected
Android, iOS
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
Frequency
Consistently: Always occurs at the same time and location
Requirements
What is the bug?
This bug was introduced in flutter_map v3.1.0, v3.0.0 works as expected.
When rendering a
TileLayer, setting thefastReplaceflag to true prevents the layer from rendering.What is the expected behaviour?
The layer should render.
How can we reproduce this issue?
Do you have a potential solution?
No response
Can you provide any other information?
No response
Platforms Affected
Android, iOS
Severity
Obtrusive: Prevents normal functioning but causes no errors in the console
Frequency
Consistently: Always occurs at the same time and location
Requirements
flutter doctorfinds no relevant issues