Added support for event type explosion.

This commit is contained in:
Kasper D. Fischer 2014-09-16 11:11:51 +00:00
parent e24ed63022
commit 1ac4702a75
Notes: subgit 2018-03-07 17:59:04 +01:00
r737 www/trunk
3 changed files with 10 additions and 3 deletions

View File

@ -420,6 +420,9 @@ $(document).ready(function() {
case 'earthquake':
typetext += 'tektonisches Erdbeben (Stern)';
break;
case 'explosion':
typetext += 'Explosion (Sechseck)';
break;
case 'induced or triggered event':
typetext += '(bergbau-)induziertes Ereignis (Kreis)';
break;

View File

@ -61,6 +61,12 @@ function addEventMarker(id, lat, lng, mag, type) {
case 'earthquake':
marker = L.starMarker(L.latLng(lat, lng), markerOptions);
break;
case 'explosion':
markerOptions['numberOfSides'] = 6;
markerOptions['radius'] = 2.0*markerOptions['radius'];
markerOptions['innerRadius'] = 0.3*markerOptions['radius'];
marker = L.regularPolygonMarker(L.latLng(lat, lng), markerOptions);
break;
case 'quarry blast':
markerOptions['numberOfPoints'] = 7;
markerOptions['innerRadius'] = 0.3*markerOptions['radius'];

View File

@ -106,7 +106,7 @@ var config = {
markerColorH: 'red',
minMag: 1.2,
minMagDelta: 0.1,
typeWhitelist: ['earthquake', 'induced or triggered event', 'quarry blast'],
typeWhitelist: ['earthquake', 'induced or triggered event', 'quarry blast', 'explosion'],
},
map: {
zoomDefault: 9,
@ -192,6 +192,4 @@ $(document).ready(function() {
heightStyle: 'content',
animate: 200,
});
});