|
@@ -32,6 +32,12 @@ function getHostname() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export const cartodbLayer = new Tile({
|
|
export const cartodbLayer = new Tile({
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ title: 'OpenStreetMap světlá',
|
|
|
|
|
+ base: true,
|
|
|
|
|
+ editor: {editable: false},
|
|
|
|
|
+ removable: false,
|
|
|
|
|
+ },
|
|
|
source: new XYZ({
|
|
source: new XYZ({
|
|
|
url:
|
|
url:
|
|
|
'https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png',
|
|
'https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png',
|
|
@@ -40,23 +46,26 @@ export const cartodbLayer = new Tile({
|
|
|
'© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors',
|
|
'© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors',
|
|
|
],
|
|
],
|
|
|
}),
|
|
}),
|
|
|
- title: 'OpenStreetMap světlá',
|
|
|
|
|
visible: true,
|
|
visible: true,
|
|
|
- base: true,
|
|
|
|
|
- editor: {editable: false},
|
|
|
|
|
- removable: false,
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const osmLayer = new Tile({
|
|
export const osmLayer = new Tile({
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ title: 'OpenStreetMap barevná',
|
|
|
|
|
+ base: true,
|
|
|
|
|
+ editor: {editable: false},
|
|
|
|
|
+ removable: false,
|
|
|
|
|
+ },
|
|
|
source: new OSM(),
|
|
source: new OSM(),
|
|
|
- title: 'OpenStreetMap barevná',
|
|
|
|
|
- base: true,
|
|
|
|
|
visible: false,
|
|
visible: false,
|
|
|
- editor: {editable: false},
|
|
|
|
|
- removable: false,
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const zm100Layer = new Tile({
|
|
export const zm100Layer = new Tile({
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ title: 'Mapa ČR 1:100 000',
|
|
|
|
|
+ base: true,
|
|
|
|
|
+ removable: false,
|
|
|
|
|
+ },
|
|
|
source: new TileWMS({
|
|
source: new TileWMS({
|
|
|
url: 'https://geoportal.cuzk.cz/WMS_ZM100_PUB/WMService.aspx',
|
|
url: 'https://geoportal.cuzk.cz/WMS_ZM100_PUB/WMService.aspx',
|
|
|
params: {
|
|
params: {
|
|
@@ -90,13 +99,15 @@ export const zm100Layer = new Tile({
|
|
|
matrixIds: [1, 2, 3],
|
|
matrixIds: [1, 2, 3],
|
|
|
}),
|
|
}),
|
|
|
}),*/
|
|
}),*/
|
|
|
- title: 'Mapa ČR 1:100 000',
|
|
|
|
|
- base: true,
|
|
|
|
|
visible: false,
|
|
visible: false,
|
|
|
- removable: false,
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const mcr500Layer = new Tile({
|
|
export const mcr500Layer = new Tile({
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ title: 'Mapa ČR 1:500 000',
|
|
|
|
|
+ base: true,
|
|
|
|
|
+ removable: false,
|
|
|
|
|
+ },
|
|
|
source: new TileWMS({
|
|
source: new TileWMS({
|
|
|
url: 'https://geoportal.cuzk.cz/WMS_MCR500/WMService.aspx',
|
|
url: 'https://geoportal.cuzk.cz/WMS_MCR500/WMService.aspx',
|
|
|
params: {
|
|
params: {
|
|
@@ -104,13 +115,17 @@ export const mcr500Layer = new Tile({
|
|
|
},
|
|
},
|
|
|
attributions: ['© <a href="geoportal.cuzk.cz" target="_blank">ČÚZK</a>'],
|
|
attributions: ['© <a href="geoportal.cuzk.cz" target="_blank">ČÚZK</a>'],
|
|
|
}),
|
|
}),
|
|
|
- title: 'Mapa ČR 1:500 000',
|
|
|
|
|
- base: true,
|
|
|
|
|
|
|
+
|
|
|
visible: false,
|
|
visible: false,
|
|
|
- removable: false,
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const ortofotoLayer = new Tile({
|
|
export const ortofotoLayer = new Tile({
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ title: 'Ortofoto ČÚZK',
|
|
|
|
|
+ base: true,
|
|
|
|
|
+ removable: false,
|
|
|
|
|
+ thumbnail: 'https://www.agrihub.sk/hsl-ng/img/orto.jpg',
|
|
|
|
|
+ },
|
|
|
source: new TileWMS({
|
|
source: new TileWMS({
|
|
|
url: 'https://geoportal.cuzk.cz/WMS_ORTOFOTO_PUB/WMService.aspx',
|
|
url: 'https://geoportal.cuzk.cz/WMS_ORTOFOTO_PUB/WMService.aspx',
|
|
|
params: {
|
|
params: {
|
|
@@ -118,11 +133,7 @@ export const ortofotoLayer = new Tile({
|
|
|
},
|
|
},
|
|
|
attributions: ['© <a href="geoportal.cuzk.cz" target="_blank">ČÚZK</a>'],
|
|
attributions: ['© <a href="geoportal.cuzk.cz" target="_blank">ČÚZK</a>'],
|
|
|
}),
|
|
}),
|
|
|
- title: 'Ortofoto ČÚZK',
|
|
|
|
|
- base: true,
|
|
|
|
|
visible: false,
|
|
visible: false,
|
|
|
- removable: false,
|
|
|
|
|
- thumbnail: 'https://www.agrihub.sk/hsl-ng/img/orto.jpg',
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const perc2color = (perc: number): string => {
|
|
export const perc2color = (perc: number): string => {
|
|
@@ -182,12 +193,14 @@ export const obce = new VectorSource({
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const obceIndexLayer = new VectorLayer({
|
|
export const obceIndexLayer = new VectorLayer({
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ editor: {editable: false},
|
|
|
|
|
+ autoLegend: false,
|
|
|
|
|
+ title: 'Obce ČR: Rural attractiveness index',
|
|
|
|
|
+ },
|
|
|
source: obce,
|
|
source: obce,
|
|
|
- editor: {editable: false},
|
|
|
|
|
- autoLegend: false,
|
|
|
|
|
visible: true,
|
|
visible: true,
|
|
|
style: indexStyle,
|
|
style: indexStyle,
|
|
|
- title: 'Obce ČR: Rural attractiveness index',
|
|
|
|
|
});
|
|
});
|
|
|
obceIndexLayer.set('popUp', {
|
|
obceIndexLayer.set('popUp', {
|
|
|
attributes: [
|
|
attributes: [
|
|
@@ -237,22 +250,24 @@ const masStyle = (feature) =>
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const masLayer = new VectorLayer({
|
|
export const masLayer = new VectorLayer({
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ editor: {editable: false},
|
|
|
|
|
+ title: 'MAS ČR',
|
|
|
|
|
+ attributions: ['© NS MAS ČR, http://nsmascr.cz/o-nas/'],
|
|
|
|
|
+ popUp: {
|
|
|
|
|
+ attributes: [
|
|
|
|
|
+ /*{attribute: 'mas_type', label: 'člen NS MAS?', displayFunction: (attr) => {TODO:}}*/
|
|
|
|
|
+ ],
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
source: new VectorSource({
|
|
source: new VectorSource({
|
|
|
format: new TopoJSON({dataProjection: 'EPSG:5514'}),
|
|
format: new TopoJSON({dataProjection: 'EPSG:5514'}),
|
|
|
url: require('./data/mas_2021.topojson').default,
|
|
url: require('./data/mas_2021.topojson').default,
|
|
|
overlaps: false,
|
|
overlaps: false,
|
|
|
}),
|
|
}),
|
|
|
- editor: {editable: false},
|
|
|
|
|
visible: false,
|
|
visible: false,
|
|
|
opacity: 0.8,
|
|
opacity: 0.8,
|
|
|
style: masStyle,
|
|
style: masStyle,
|
|
|
- title: 'MAS ČR',
|
|
|
|
|
- popUp: {
|
|
|
|
|
- attributes: [
|
|
|
|
|
- /*{attribute: 'mas_type', label: 'člen NS MAS?', displayFunction: (attr) => {TODO:}}*/
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
- attributions: ['© NS MAS ČR, http://nsmascr.cz/o-nas/'],
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const okresyStyle = new Style({
|
|
const okresyStyle = new Style({
|
|
@@ -263,16 +278,18 @@ const okresyStyle = new Style({
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const okresyLayer = new VectorLayer({
|
|
export const okresyLayer = new VectorLayer({
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ editor: {editable: false},
|
|
|
|
|
+ title: 'Okresy ČR',
|
|
|
|
|
+ attributions: ['CC-BY ČÚZK, 2021'],
|
|
|
|
|
+ },
|
|
|
source: new VectorSource({
|
|
source: new VectorSource({
|
|
|
format: new TopoJSON({dataProjection: 'EPSG:5514'}),
|
|
format: new TopoJSON({dataProjection: 'EPSG:5514'}),
|
|
|
url: require('./data/okresy_cr_20210310_5p_5514.topojson').default,
|
|
url: require('./data/okresy_cr_20210310_5p_5514.topojson').default,
|
|
|
overlaps: false,
|
|
overlaps: false,
|
|
|
}),
|
|
}),
|
|
|
- editor: {editable: false},
|
|
|
|
|
visible: false,
|
|
visible: false,
|
|
|
style: okresyStyle,
|
|
style: okresyStyle,
|
|
|
- title: 'Okresy ČR',
|
|
|
|
|
- attributions: ['CC-BY ČÚZK, 2021'],
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const krajeStyle = new Style({
|
|
const krajeStyle = new Style({
|
|
@@ -283,16 +300,18 @@ const krajeStyle = new Style({
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const krajeLayer = new VectorLayer({
|
|
export const krajeLayer = new VectorLayer({
|
|
|
|
|
+ properties: {
|
|
|
|
|
+ editor: {editable: false},
|
|
|
|
|
+ title: 'Kraje ČR',
|
|
|
|
|
+ attributions: ['CC-BY ČÚZK, 2021'],
|
|
|
|
|
+ },
|
|
|
source: new VectorSource({
|
|
source: new VectorSource({
|
|
|
format: new TopoJSON({dataProjection: 'EPSG:5514'}),
|
|
format: new TopoJSON({dataProjection: 'EPSG:5514'}),
|
|
|
url: require('./data/kraje_cr_20210310_5p_5514.topojson').default,
|
|
url: require('./data/kraje_cr_20210310_5p_5514.topojson').default,
|
|
|
overlaps: false,
|
|
overlaps: false,
|
|
|
}),
|
|
}),
|
|
|
- editor: {editable: false},
|
|
|
|
|
visible: true,
|
|
visible: true,
|
|
|
style: krajeStyle,
|
|
style: krajeStyle,
|
|
|
- title: 'Kraje ČR',
|
|
|
|
|
- attributions: ['CC-BY ČÚZK, 2021'],
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const AppConfig = {
|
|
export const AppConfig = {
|
|
@@ -307,7 +326,6 @@ export const AppConfig = {
|
|
|
projection: sjtskProjection,
|
|
projection: sjtskProjection,
|
|
|
center: transform([15.628, 49.864249], 'EPSG:4326', 'EPSG:5514'),
|
|
center: transform([15.628, 49.864249], 'EPSG:4326', 'EPSG:5514'),
|
|
|
zoom: 7.6,
|
|
zoom: 7.6,
|
|
|
- units: 'm',
|
|
|
|
|
}),
|
|
}),
|
|
|
advanced_form: true,
|
|
advanced_form: true,
|
|
|
datasources: [],
|
|
datasources: [],
|