Sfoglia il codice sorgente

feat: use lighter background map

Switch to CartoDB from OSM.org
jmacura 5 anni fa
parent
commit
e51da16bc3
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      src/app.module.js

+ 8 - 1
src/app.module.js

@@ -53,7 +53,14 @@ angular
     //proxyPrefix: '../8085/',
     default_layers: [
       new Tile({
-        source: new OSM(),
+        source: new OSM({
+          url:
+            'https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png',
+          attributions: [
+            '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors,',
+            '<a href="https://carto.com/attributions">CARTO</a>',
+          ],
+        }),
         title: 'OpenStreetMap',
         base: true,
         removable: false,