From b4679fe2c277f3d57cabfc7546ffd92e39cb445c Mon Sep 17 00:00:00 2001 From: Andreas Plesch Date: Sat, 9 Nov 2019 09:10:44 -0500 Subject: [PATCH] Update sc_Ventura_swarm_Nov2019.html --- x3dom/sc_Ventura_swarm_Nov2019.html | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/x3dom/sc_Ventura_swarm_Nov2019.html b/x3dom/sc_Ventura_swarm_Nov2019.html index b6b2b65..f83eda1 100644 --- a/x3dom/sc_Ventura_swarm_Nov2019.html +++ b/x3dom/sc_Ventura_swarm_Nov2019.html @@ -5,7 +5,7 @@ - CFM and the RidgeCrest M7.1 earthquake + CFM and the Ventura M3.5 swarm @@ -74,7 +74,7 @@
-

The 2019 M6.4 and M7.1 Ridgecrest sequence

+

The 2019 M3.4 Ventura swarm

Doubleclick to recenter
@@ -93,16 +93,16 @@

The 2019 M6.4 and M7.1 Ridgecrest sequence

- - - - - + + + + + - + @@ -572,7 +572,7 @@

The 2019 M6.4 and M7.1 Ridgecrest sequence

//loadTraces(); - //attachonclick(document.querySelectorAll('inline[url*=CFM5]')); + attachonclick(document.querySelectorAll('inline[url*=CFM5]')); var isMobile = navigator.userAgent.includes("obi"); @@ -610,7 +610,7 @@

The 2019 M6.4 and M7.1 Ridgecrest sequence

// EventsSourceUrl += '&minmagnitude=' + minMagnitude; // EventsSourceUrl += '&eventtype=earthquake&orderby=time'; //https://raw.githubusercontent.com/andreasplesch/VR-GeoCal/master/x3dom/earthquakes/queryUSGS070719_8amEDT.geojson - let let EventsSourceUrl = 'https://raw.githubusercontent.com/andreasplesch/VR-GeoCal/master/x3dom/earthquakes/sc_ventura_1.dloc_a_dd.geojson'; + let EventsSourceUrl = 'https://raw.githubusercontent.com/andreasplesch/VR-GeoCal/master/x3dom/earthquakes/sc_ventura_1.dloc_a_dd.geojson'; d3.json(EventsSourceUrl).then(function(data){ let counter = 0, index = 0, coordindex="", km2deg = 1/110, m2deg = km2deg/1000; point="", color=""; eqData = data; @@ -650,7 +650,7 @@

The 2019 M6.4 and M7.1 Ridgecrest sequence

for (var lon=0; lon<360; lon += 360/steps) { x = r*Math.cos(lon*d2r); y = r*Math.sin(lon*d2r); - point += [y*m2degLat + c[1], x*m2degLon + c[0], z-c[2]*1000].join()+' '; + point += [y*m2degLat + c[1], x*m2degLon + c[0], z+c[2]*1.000].join()+' '; if (lat < 90) { if (lon < (360 - 360/steps)) { coordindex += [index++, index, index+steps, index+steps-1].join()+',-1 '; @@ -784,6 +784,7 @@

The 2019 M6.4 and M7.1 Ridgecrest sequence

function attachonclick(elements) { elements.forEach(el => { el.setAttribute('onclick','showName(event)'); }); } + function showName(e) { let name = e.target.getAttribute('DEF'); document.querySelector('#faultInfo').textContent=name;