From f374ee0a1c5c6c9ca87d91d761f5c6ba0c2bc839 Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Thu, 15 May 2014 12:50:56 +0000 Subject: [PATCH] Added parametes to set map centre. Added station size config for all NL stations. --- www/misc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/www/misc.js b/www/misc.js index 84f4ed3..713b5cf 100644 --- a/www/misc.js +++ b/www/misc.js @@ -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']); };