| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import View from 'ol/View';
- import {OSM} from 'ol/source';
- import {Tile} from 'ol/layer';
- function getHostname() {
- const url = window.location.href;
- const urlArr = url.split('/');
- const domain = urlArr[2];
- return urlArr[0] + '//' + domain;
- }
- export const AppConfig = {
- useProxy: false,
- //proxyPrefix: '../8085/',
- default_layers: [
- new Tile({
- 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,
- }),
- ],
- popUpDisplay: 'hover',
- queryPoint: 'hidden',
- project_name: 'erra/map',
- default_view: new View({
- center: [2433348.3022471312, 7744501.813885343],
- zoom: 3.6,
- units: 'm',
- }),
- advanced_form: true,
- datasources: [
- {
- title: 'Metadata catalogue',
- url: 'https://polirural-cat.lesprojekt.cz/micka2/csw',
- language: 'eng',
- type: 'micka',
- code_list_url:
- 'https://polirural-cat.lesprojekt.cz/micka2/util/codelists.php?_dc=1440156028103&language=eng&page=1&start=0&limit=25&filter=%5B%7B%22property%22%3A%22label%22%7D%5D',
- },
- ],
- hostname: {
- default: {
- title: 'Default',
- type: 'default',
- editable: false,
- url: getHostname(),
- },
- },
- panelWidths: {},
- // allowAddExternalDatasets: false,
- panelsEnabled: {
- composition_browser: false,
- feature_crossfilter: false,
- info: false,
- saveMap: false,
- sensors: false,
- tracking: false,
- routing: false,
- permalink: false,
- language: false,
- legend: false,
- feature_table: false,
- },
- sidebarPosition: 'left',
- sizeMode: 'fullscreen',
- };
- export default AppConfig;
|