From 498f2ca7d66d5874140f3ad887e758fd2fc39df7 Mon Sep 17 00:00:00 2001 From: vjrj Date: Thu, 5 Mar 2026 19:38:59 +0100 Subject: [PATCH] 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 --- lib/genericMap.dart | 4 +++- lib/monitoredAreas.dart | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/genericMap.dart b/lib/genericMap.dart index 39b3545..a15858d 100644 --- a/lib/genericMap.dart +++ b/lib/genericMap.dart @@ -192,7 +192,9 @@ class _genericMapState extends State { '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 = diff --git a/lib/monitoredAreas.dart b/lib/monitoredAreas.dart index 8a74261..44240bc 100644 --- a/lib/monitoredAreas.dart +++ b/lib/monitoredAreas.dart @@ -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(