Explorar o código

✨ add ortophoto layer

jmacura %!s(int64=3) %!d(string=hai) anos
pai
achega
f04637dfc6
Modificáronse 1 ficheiros con 19 adicións e 1 borrados
  1. 19 1
      src/app/app.component.ts

+ 19 - 1
src/app/app.component.ts

@@ -2,7 +2,7 @@ import {Component} from '@angular/core';
 
 import proj4 from 'proj4';
 import {GeoJSON} from 'ol/format';
-import {OSM, Vector as VectorSource} from 'ol/source';
+import {OSM, TileWMS, Vector as VectorSource} from 'ol/source';
 import {Stroke, Style} from 'ol/style';
 import {Tile, Vector as VectorLayer} from 'ol/layer';
 import {View} from 'ol';
@@ -156,6 +156,24 @@ export class AppComponent {
             removable: false,
           },
         }),
+        new Tile({
+          properties: {
+            title: 'Ortofoto ČÚZK',
+            base: true,
+            removable: false,
+            thumbnail: 'https://www.agrihub.sk/hsl-ng/img/orto.jpg',
+          },
+          source: new TileWMS({
+            url: 'https://geoportal.cuzk.cz/WMS_ORTOFOTO_PUB/WMService.aspx',
+            params: {
+              LAYERS: 'GR_ORTFOTORGB',
+            },
+            attributions: [
+              '© <a href="geoportal.cuzk.cz" target="_blank">ČÚZK</a>',
+            ],
+          }),
+          visible: false,
+        }),
         /* Thematic layers */
         new VectorLayer({
           properties: {