fixing typo

This commit is contained in:
Kasper D. Fischer 2020-07-15 09:59:49 +02:00
parent 74085e5e6f
commit 5365914033
2 changed files with 7 additions and 2 deletions

2
.gitignore vendored
View File

@ -9,3 +9,5 @@ www/geolocationTable.js
www/stations.xml
.vscode/settings.json
www/index.html

View File

@ -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
};
@ -172,6 +172,9 @@ $(document).ready(function() {
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'])];
};