diff --git a/www/events.js b/www/events.js index 0d4a738..76fd74b 100644 --- a/www/events.js +++ b/www/events.js @@ -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; diff --git a/www/map.js b/www/map.js index 23d1516..7e164cc 100644 --- a/www/map.js +++ b/www/map.js @@ -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']; diff --git a/www/misc.js b/www/misc.js index f93bfaf..66de0d7 100644 --- a/www/misc.js +++ b/www/misc.js @@ -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, }); - }); -