|
@@ -1,6 +1,9 @@
|
|
|
-import View from 'ol/View';
|
|
|
|
|
import {OSM} from 'ol/source';
|
|
import {OSM} from 'ol/source';
|
|
|
import {Tile} from 'ol/layer';
|
|
import {Tile} from 'ol/layer';
|
|
|
|
|
+import {View} from 'ol';
|
|
|
|
|
+
|
|
|
|
|
+import env from './env.config.json';
|
|
|
|
|
+import i18n from './translations.json';
|
|
|
|
|
|
|
|
function getHostname() {
|
|
function getHostname() {
|
|
|
const url = window.location.href;
|
|
const url = window.location.href;
|
|
@@ -12,6 +15,7 @@ function getHostname() {
|
|
|
export const AppConfig = {
|
|
export const AppConfig = {
|
|
|
useProxy: false,
|
|
useProxy: false,
|
|
|
//proxyPrefix: '../8085/',
|
|
//proxyPrefix: '../8085/',
|
|
|
|
|
+ geonamesUser: env.geonamesUser,
|
|
|
default_layers: [
|
|
default_layers: [
|
|
|
new Tile({
|
|
new Tile({
|
|
|
source: new OSM({
|
|
source: new OSM({
|
|
@@ -67,12 +71,14 @@ export const AppConfig = {
|
|
|
tracking: false,
|
|
tracking: false,
|
|
|
routing: false,
|
|
routing: false,
|
|
|
permalink: false,
|
|
permalink: false,
|
|
|
- language: false,
|
|
|
|
|
legend: false,
|
|
legend: false,
|
|
|
feature_table: false,
|
|
feature_table: false,
|
|
|
|
|
+ draw: false,
|
|
|
},
|
|
},
|
|
|
- sidebarPosition: 'left',
|
|
|
|
|
|
|
+ status_manager_url: '/statusmanager/',
|
|
|
|
|
+ sidebarPosition: 'right',
|
|
|
sizeMode: 'fullscreen',
|
|
sizeMode: 'fullscreen',
|
|
|
|
|
+ translationOverrides: i18n,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
export default AppConfig;
|
|
export default AppConfig;
|