|
|
@@ -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: {
|