|
|
@@ -119,128 +119,131 @@ export class AppService {
|
|
|
console.log(evt);
|
|
|
});
|
|
|
/* Define and update the HsConfig configuration object */
|
|
|
- this.hsConfig.update({
|
|
|
- datasources: [
|
|
|
- /* You need to set up Layman in order to use it. See https://github.com/LayerManager/layman */
|
|
|
- /*{
|
|
|
+ this.hsConfig.update(
|
|
|
+ {
|
|
|
+ datasources: [
|
|
|
+ /* You need to set up Layman in order to use it. See https://github.com/LayerManager/layman */
|
|
|
+ /*{
|
|
|
title: 'Layman',
|
|
|
url: 'http://localhost:8087',
|
|
|
user: 'anonymous',
|
|
|
type: 'layman',
|
|
|
liferayProtocol: 'https',
|
|
|
},*/
|
|
|
- {
|
|
|
- title: 'Micka',
|
|
|
- url: 'https://hub.sieusoil.eu/cat/csw',
|
|
|
- language: 'eng',
|
|
|
- type: 'micka',
|
|
|
- },
|
|
|
- ],
|
|
|
- default_view: new View({
|
|
|
- projection: this.sjtskProjection,
|
|
|
- center: transform([16.964, 49.248], 'EPSG:4326', 'EPSG:5514'),
|
|
|
- zoom: 14,
|
|
|
- }),
|
|
|
- /* Use hslayers-server if you need to proxify your requests to other services. See https://www.npmjs.com/package/hslayers-server */
|
|
|
- proxyPrefix: window.location.hostname.includes('localhost')
|
|
|
- ? `${window.location.protocol}//${window.location.hostname}:8085/`
|
|
|
- : '/proxy/',
|
|
|
- useProxy: true,
|
|
|
- panelsEnabled: {
|
|
|
- composition_browser: false,
|
|
|
- info: false,
|
|
|
- saveMap: false,
|
|
|
- legend: false,
|
|
|
- tripPlanner: false,
|
|
|
- },
|
|
|
- componentsEnabled: {
|
|
|
- basemapGallery: true,
|
|
|
- },
|
|
|
- assetsPath: 'assets',
|
|
|
- symbolizerIcons: [
|
|
|
- {name: 'beach', url: '/assets/icons/beach17.svg'},
|
|
|
- {name: 'bicycles', url: '/assets/icons/bicycles.svg'},
|
|
|
- {name: 'coffee-shop', url: '/assets/icons/coffee-shop1.svg'},
|
|
|
- {name: 'mountain', url: '/assets/icons/mountain42.svg'},
|
|
|
- {name: 'warning', url: '/assets/icons/warning.svg'},
|
|
|
- ],
|
|
|
- popUpDisplay: 'hover',
|
|
|
- default_layers: [
|
|
|
- /* Baselayers */
|
|
|
- new Tile({
|
|
|
- source: new OSM(),
|
|
|
- visible: true,
|
|
|
- properties: {
|
|
|
- title: 'OpenStreetMap',
|
|
|
- base: true,
|
|
|
- removable: false,
|
|
|
+ {
|
|
|
+ title: 'Micka',
|
|
|
+ url: 'https://hub.sieusoil.eu/cat/csw',
|
|
|
+ language: 'eng',
|
|
|
+ type: 'micka',
|
|
|
},
|
|
|
+ ],
|
|
|
+ default_view: new View({
|
|
|
+ projection: this.sjtskProjection,
|
|
|
+ center: transform([16.964, 49.248], 'EPSG:4326', 'EPSG:5514'),
|
|
|
+ zoom: 14,
|
|
|
}),
|
|
|
- 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',
|
|
|
+ /* Use hslayers-server if you need to proxify your requests to other services. See https://www.npmjs.com/package/hslayers-server */
|
|
|
+ proxyPrefix: window.location.hostname.includes('localhost')
|
|
|
+ ? `${window.location.protocol}//${window.location.hostname}:8085/`
|
|
|
+ : '/proxy/',
|
|
|
+ useProxy: true,
|
|
|
+ panelsEnabled: {
|
|
|
+ composition_browser: false,
|
|
|
+ info: false,
|
|
|
+ saveMap: false,
|
|
|
+ legend: false,
|
|
|
+ tripPlanner: false,
|
|
|
+ },
|
|
|
+ componentsEnabled: {
|
|
|
+ basemapGallery: true,
|
|
|
+ },
|
|
|
+ assetsPath: 'assets',
|
|
|
+ symbolizerIcons: [
|
|
|
+ {name: 'beach', url: '/assets/icons/beach17.svg'},
|
|
|
+ {name: 'bicycles', url: '/assets/icons/bicycles.svg'},
|
|
|
+ {name: 'coffee-shop', url: '/assets/icons/coffee-shop1.svg'},
|
|
|
+ {name: 'mountain', url: '/assets/icons/mountain42.svg'},
|
|
|
+ {name: 'warning', url: '/assets/icons/warning.svg'},
|
|
|
+ ],
|
|
|
+ popUpDisplay: 'hover',
|
|
|
+ default_layers: [
|
|
|
+ /* Baselayers */
|
|
|
+ new Tile({
|
|
|
+ source: new OSM(),
|
|
|
+ visible: true,
|
|
|
+ properties: {
|
|
|
+ title: 'OpenStreetMap',
|
|
|
+ base: true,
|
|
|
+ removable: false,
|
|
|
},
|
|
|
- attributions: [
|
|
|
- '© <a href="geoportal.cuzk.cz" target="_blank">ČÚZK</a>',
|
|
|
- ],
|
|
|
}),
|
|
|
- visible: false,
|
|
|
- }),
|
|
|
- /* Thematic layers */
|
|
|
- imageWmsTLayer,
|
|
|
- new VectorLayer({
|
|
|
- properties: {
|
|
|
- title: 'LPIS (WFS)',
|
|
|
- synchronize: false,
|
|
|
- cluster: false,
|
|
|
- inlineLegend: true,
|
|
|
- editor: {
|
|
|
- editable: false,
|
|
|
+ new Tile({
|
|
|
+ properties: {
|
|
|
+ title: 'Ortofoto ČÚZK',
|
|
|
+ base: true,
|
|
|
+ removable: false,
|
|
|
+ thumbnail: 'https://www.agrihub.sk/hsl-ng/img/orto.jpg',
|
|
|
},
|
|
|
- sld: fieldSld,
|
|
|
- popUp: {
|
|
|
- attributes: [
|
|
|
- 'id_dpb',
|
|
|
- 'id_uz',
|
|
|
- 'nkod_dpb',
|
|
|
- 'kultura',
|
|
|
- 'svazitost',
|
|
|
- 'vymeram',
|
|
|
+ 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 */
|
|
|
+ imageWmsTLayer,
|
|
|
+ new VectorLayer({
|
|
|
+ properties: {
|
|
|
+ title: 'LPIS (WFS)',
|
|
|
+ synchronize: false,
|
|
|
+ cluster: false,
|
|
|
+ inlineLegend: true,
|
|
|
+ editor: {
|
|
|
+ editable: false,
|
|
|
+ },
|
|
|
+ sld: fieldSld,
|
|
|
+ popUp: {
|
|
|
+ attributes: [
|
|
|
+ 'id_dpb',
|
|
|
+ 'id_uz',
|
|
|
+ 'nkod_dpb',
|
|
|
+ 'kultura',
|
|
|
+ 'svazitost',
|
|
|
+ 'vymeram',
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ //path: 'User generated',
|
|
|
},
|
|
|
- //path: 'User generated',
|
|
|
- },
|
|
|
- minZoom: this.calcService.MIN_LPIS_VISIBLE_ZOOM,
|
|
|
- opacity: 0.7,
|
|
|
- source: lpisSource,
|
|
|
- }),
|
|
|
- new Tile({
|
|
|
- properties: {
|
|
|
- title: 'LPIS (WMS)',
|
|
|
- queryCapabilities: false,
|
|
|
- },
|
|
|
- maxZoom: this.calcService.MIN_LPIS_VISIBLE_ZOOM,
|
|
|
- source: new TileWMS({
|
|
|
- url: 'https://gis.lesprojekt.cz/cgi-bin/mapserv?map=/home/dima/maps/foodie/lpis.map',
|
|
|
- params: {
|
|
|
- LAYERS: 'lpis_borders', //'lpis_cultures'
|
|
|
- INFO_FORMAT: undefined,
|
|
|
- FORMAT: 'image/png; mode=8bit',
|
|
|
+ minZoom: this.calcService.MIN_LPIS_VISIBLE_ZOOM,
|
|
|
+ opacity: 0.7,
|
|
|
+ source: lpisSource,
|
|
|
+ }),
|
|
|
+ new Tile({
|
|
|
+ properties: {
|
|
|
+ title: 'LPIS (WMS)',
|
|
|
+ queryCapabilities: false,
|
|
|
},
|
|
|
- crossOrigin: 'anonymous',
|
|
|
+ maxZoom: this.calcService.MIN_LPIS_VISIBLE_ZOOM,
|
|
|
+ source: new TileWMS({
|
|
|
+ url: 'https://gis.lesprojekt.cz/cgi-bin/mapserv?map=/home/dima/maps/foodie/lpis.map',
|
|
|
+ params: {
|
|
|
+ LAYERS: 'lpis_borders', //'lpis_cultures'
|
|
|
+ INFO_FORMAT: undefined,
|
|
|
+ FORMAT: 'image/png; mode=8bit',
|
|
|
+ },
|
|
|
+ crossOrigin: 'anonymous',
|
|
|
+ }),
|
|
|
}),
|
|
|
- }),
|
|
|
- ],
|
|
|
- translationOverrides: i18n,
|
|
|
- }, 'default');
|
|
|
- this.hsLanguageService.setLanguage("en", null);
|
|
|
+ ],
|
|
|
+ translationOverrides: i18n,
|
|
|
+ },
|
|
|
+ 'default'
|
|
|
+ );
|
|
|
+ this.hsLanguageService.setLanguage('en', null);
|
|
|
}
|
|
|
}
|