Fix: Use CartoDB Positron for osmcGrey layer (reliable b/n tiles)

CartoDB Positron (light_all) is a modern, reliable replacement for the
deprecated Stamen Toner and tiles.wmflabs.org. It provides a clean
grayscale/minimalist map style with excellent availability.

- Updated FireMapLayer.osmcGrey to use CartoDB Positron
- Updated monitoredAreas TileLayer to use CartoDB Positron
- Keeps subdomains configuration for load distribution
- Fixes: Unreliable tile server DNS issues
This commit is contained in:
vjrj 2026-03-05 19:38:59 +01:00
parent 7dbcf1e82c
commit 498f2ca7d6
2 changed files with 5 additions and 2 deletions

View file

@ -192,7 +192,9 @@ class _genericMapState extends State<genericMap> {
'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png';
break;
case FireMapLayer.osmcGrey:
baseLayer = 'https://tile.openstreetmap.org/{z}/{x}/{y}.png';
baseLayer =
'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png';
subdomains = ['a', 'b', 'c', 'd'];
break;
case FireMapLayer.esri:
baseLayer =

View file

@ -80,7 +80,8 @@ class MonitoredAreasPage extends StatelessWidget {
children: [
new TileLayer(
urlTemplate:
"https://tile.openstreetmap.org/{z}/{x}/{y}.png",
"https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",
subdomains: ['a', 'b', 'c', 'd'],
userAgentPackageName:
'com.example.fires_flutter'),
new PolylineLayer(