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:
parent
7dbcf1e82c
commit
498f2ca7d6
2 changed files with 5 additions and 2 deletions
|
|
@ -192,7 +192,9 @@ class _genericMapState extends State<genericMap> {
|
||||||
'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png';
|
'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png';
|
||||||
break;
|
break;
|
||||||
case FireMapLayer.osmcGrey:
|
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;
|
break;
|
||||||
case FireMapLayer.esri:
|
case FireMapLayer.esri:
|
||||||
baseLayer =
|
baseLayer =
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,8 @@ class MonitoredAreasPage extends StatelessWidget {
|
||||||
children: [
|
children: [
|
||||||
new TileLayer(
|
new TileLayer(
|
||||||
urlTemplate:
|
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:
|
userAgentPackageName:
|
||||||
'com.example.fires_flutter'),
|
'com.example.fires_flutter'),
|
||||||
new PolylineLayer(
|
new PolylineLayer(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue