fixing typo
This commit is contained in:
parent
74085e5e6f
commit
5365914033
2
.gitignore
vendored
2
.gitignore
vendored
@ -9,3 +9,5 @@ www/geolocationTable.js
|
|||||||
www/stations.xml
|
www/stations.xml
|
||||||
|
|
||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
|
|
||||||
|
www/index.html
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
/* calculate marker radius from magnitude
|
/* calculate marker radius from magnitude
|
||||||
* both formulas have equal radii at mag=1.2 */
|
* both formulas have equal radii at mag=1.2 */
|
||||||
function mag2radius(mag) {
|
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
|
// 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() {
|
$(document).ready(function() {
|
||||||
// parse query string
|
// parse query string
|
||||||
var parameters = parseQueryString();
|
var parameters = parseQueryString();
|
||||||
if ( parameters['baselayer'] ) {
|
if ( parameters['baselayer']) {
|
||||||
config['map']['baselayer'] = parameters['baselayer'][0];
|
config['map']['baselayer'] = parameters['baselayer'][0];
|
||||||
};
|
};
|
||||||
|
if ( parameters['basemap']) {
|
||||||
|
config['map']['baselayer'] = parameters['basemap'][0];
|
||||||
|
};
|
||||||
if ( Number(parameters['lat']) && Number(parameters['lon']) ) {
|
if ( Number(parameters['lat']) && Number(parameters['lon']) ) {
|
||||||
config['map']['centerDefault'] = [Number(parameters['lat']), Number(parameters['lon'])];
|
config['map']['centerDefault'] = [Number(parameters['lat']), Number(parameters['lon'])];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user