Added config for station color. Changed colors of events to blue.
This commit is contained in:
parent
1c947c98d2
commit
49b9e492ac
Notes:
subgit
2018-03-07 17:58:53 +01:00
r642 www/trunk
@ -30,8 +30,8 @@ function addStationMarker(id, lat, lng) {
|
|||||||
var corners = [L.latLng(lat+2*a, lng), L.latLng(lat-a, lng+b), L.latLng(lat-a, lng-b)];
|
var corners = [L.latLng(lat+2*a, lng), L.latLng(lat-a, lng+b), L.latLng(lat-a, lng-b)];
|
||||||
var marker = L.polygon(corners,
|
var marker = L.polygon(corners,
|
||||||
{
|
{
|
||||||
fillColor: "#1C771C",
|
fillColor: config['station']['markerColor'],
|
||||||
color: "#1C771C",
|
color: config['station']['markerColor'],
|
||||||
weight: 1,
|
weight: 1,
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
fillOpacity: config['station']['markerOpacity'],
|
fillOpacity: config['station']['markerOpacity'],
|
||||||
|
16
www/misc.js
16
www/misc.js
@ -100,8 +100,8 @@ var config = {
|
|||||||
event: {
|
event: {
|
||||||
evaluationBlacklist: ['automatic', 'preliminary', 'rejected'],
|
evaluationBlacklist: ['automatic', 'preliminary', 'rejected'],
|
||||||
markerOpacity: 0.3,
|
markerOpacity: 0.3,
|
||||||
markerColor: '#FFD500',
|
markerColor: 'blue',
|
||||||
markerColorH: '#FF0000',
|
markerColorH: 'red',
|
||||||
minMag: 1.2,
|
minMag: 1.2,
|
||||||
minMagDelta: 0.1,
|
minMagDelta: 0.1,
|
||||||
typeWhitelist: ['earthquake', 'induced or triggered event', 'quarry blast'],
|
typeWhitelist: ['earthquake', 'induced or triggered event', 'quarry blast'],
|
||||||
@ -114,6 +114,7 @@ var config = {
|
|||||||
latlngDelta: 0.1,
|
latlngDelta: 0.1,
|
||||||
},
|
},
|
||||||
station: {
|
station: {
|
||||||
|
markerColor: 'darkgreen',
|
||||||
markerOpacity: 0.5,
|
markerOpacity: 0.5,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@ -127,11 +128,14 @@ $(document).ready(function() {
|
|||||||
if ( Number(parameters['minmag']) ) {
|
if ( Number(parameters['minmag']) ) {
|
||||||
config['event']['minMag'] = Number(parameters['minmag']);
|
config['event']['minMag'] = Number(parameters['minmag']);
|
||||||
};
|
};
|
||||||
if ( parameters['markercolor'] ) {
|
if ( parameters['eventcolor'] ) {
|
||||||
config['event']['markerColor'] = parameters['markercolor'];
|
config['event']['markerColor'] = parameters['eventcolor'];
|
||||||
};
|
};
|
||||||
if ( parameters['markercolorh'] ) {
|
if ( parameters['eventcolorh'] ) {
|
||||||
config['event']['markerColorH'] = parameters['markercolorh'];
|
config['event']['markerColorH'] = parameters['eventcolorh'];
|
||||||
|
};
|
||||||
|
if ( parameters['stationcolor'] ) {
|
||||||
|
config['station']['markerColor'] = parameters['stationcolor'];
|
||||||
};
|
};
|
||||||
if ( Number(parameters['timespan']) ) {
|
if ( Number(parameters['timespan']) ) {
|
||||||
config['map']['timespan'] = Number(parameters['timespan']);
|
config['map']['timespan'] = Number(parameters['timespan']);
|
||||||
|
Loading…
Reference in New Issue
Block a user