| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import View from 'ol/View';
- import {OSM} from 'ol/source';
- import {Tile} from 'ol/layer';
- import {nuts2Layer, nuts3Layer} from './app.service';
- 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,
- }),
- nuts3Layer,
- nuts2Layer,
- ],
- popUpDisplay: 'hover',
- 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,
- saveMap: false,
- sensors: false,
- tracking: false,
- routing: false,
- permalink: false,
- language: false,
- legend: false,
- },
- sizeMode: 'fullscreen',
- }
- export default AppConfig;
|