From 53659140331951a3e7f8109adf7fa450c2483451 Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Wed, 15 Jul 2020 09:59:49 +0200 Subject: [PATCH] fixing typo --- .gitignore | 2 ++ www/misc.js | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 43b91ee..21ddca3 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ www/geolocationTable.js www/stations.xml .vscode/settings.json + +www/index.html diff --git a/www/misc.js b/www/misc.js index 10ef58f..6d7dd45 100644 --- a/www/misc.js +++ b/www/misc.js @@ -25,7 +25,7 @@ /* calculate marker radius from magnitude * both formulas have equal radii at mag=1.2 */ function mag2radius(mag) { - return 3*mag; // radius proportional to magagnitude + return 3*mag; // radius proportional to magnitude // return 8.104*Math.pow(30,mag) // radius proportional to energy }; @@ -169,9 +169,12 @@ if (typeof console == "undefined") var console = { log: function() {} }; $(document).ready(function() { // parse query string var parameters = parseQueryString(); - if ( parameters['baselayer'] ) { + if ( parameters['baselayer']) { config['map']['baselayer'] = parameters['baselayer'][0]; }; + if ( parameters['basemap']) { + config['map']['baselayer'] = parameters['basemap'][0]; + }; if ( Number(parameters['lat']) && Number(parameters['lon']) ) { config['map']['centerDefault'] = [Number(parameters['lat']), Number(parameters['lon'])]; };