Added parametes to set map centre. Added station size config for all NL stations.

This commit is contained in:
Kasper D. Fischer 2014-05-15 12:50:56 +00:00
parent 855826d2bb
commit f374ee0a1c
Notes: subgit 2018-03-07 17:58:56 +01:00
r654 www/trunk

View File

@ -121,7 +121,10 @@ var config = {
GE_IBBN: 10,
GR_BUG: 10,
GR_KAST: 10,
NL_HGN: 3,
NL_OPLO: 3,
NL_VKB: 3,
NL_WIT: 3,
NL_WTSB: 3,
},
},
@ -136,6 +139,9 @@ $(document).ready(function() {
if ( parameters['baselayer'] ) {
config['map']['baselayer'] = parameters['baselayer'][0];
};
if ( Number(parameters['lat']) && Number(parameters['lon']) ) {
config['map']['centerDefault'] = [Number(parameters['lat']), Number(parameters['lon'])];
};
if ( Number(parameters['minmag']) ) {
config['event']['minMag'] = Number(parameters['minmag']);
};