Преглед на файлове

feat: use lighter background map

Switch to CartoDB from OSM.org
jmacura преди 5 години
родител
ревизия
e51da16bc3
променени са 1 файла, в които са добавени 8 реда и са изтрити 1 реда
  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,