Explorar el Código

🐛 safely fill-in a geonames username

jmacura hace 4 años
padre
commit
27544ee1f9
Se han modificado 3 ficheros con 6 adiciones y 0 borrados
  1. 1 0
      .gitignore
  2. 2 0
      src/app.config.ts
  3. 3 0
      src/env.config.json.example

+ 1 - 0
.gitignore

@@ -34,3 +34,4 @@ pidfile
 src/Attractivity.json
 src/Attractivity.csv
 /.vs
+env.config.json

+ 2 - 0
src/app.config.ts

@@ -7,6 +7,7 @@ import {View} from 'ol';
 import {get as getProjection, transform} from 'ol/proj';
 import {register} from 'ol/proj/proj4';
 
+import env from './env.config.json';
 import i18n from './translations.json';
 
 proj4.defs(
@@ -177,6 +178,7 @@ export const krajeLayer = new VectorLayer({
 
 export const AppConfig = {
   //proxyPrefix: '../8085/',
+  geonamesUser: env.geonamesUser,
   default_layers: [osmLayer],
   popUpDisplay: 'hover',
   project_name: 'erra/map',

+ 3 - 0
src/env.config.json.example

@@ -0,0 +1,3 @@
+{
+  "geonamesUser": "example"
+}