Explorar el Código

feat: use lighter background map

Switch to CartoDB from OSM.org
jmacura hace 5 años
padre
commit
e51da16bc3
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  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,