diff --git a/tutorials/parquet_cesium.qmd b/tutorials/parquet_cesium.qmd index 986145f..7b7b367 100644 --- a/tutorials/parquet_cesium.qmd +++ b/tutorials/parquet_cesium.qmd @@ -897,10 +897,86 @@ This query implements Eric Kansa's authoritative `get_samples_at_geo_cord_locati ```{ojs} //| echo: false samples_combined = selectedSamplesCombined -combinedLoading ? md`(loading…)` : md`\`\`\` -${JSON.stringify(samples_combined, null, 2)} -\`\`\` -` +``` + +```{ojs} +//| echo: false +html`${ + combinedLoading ? + html`
Loading samples…
` + : + samples_combined && samples_combined.length > 0 ? + html`
+ + + + + + + + + + + + ${samples_combined.map((sample, i) => html` + + + + + + + + `)} + +
ThumbnailSampleDescriptionSiteLocation
+ ${sample.has_thumbnail ? + html` + ${sample.sample_label} + ` + : + html`
No image
` + } +
+
+ ${sample.sample_label} +
+ +
+
+ ${sample.sample_description || 'No description'} +
+
+
+ ${sample.sample_site_label} +
+ +
+ ${sample.latitude.toFixed(5)}°N
+ ${sample.longitude.toFixed(5)}°E +
+
+
+ Found ${samples_combined.length} sample${samples_combined.length !== 1 ? 's' : ''} +
` + : + html`
+ No samples found at this location via Path 1 (direct sampling events). +
` +}` ``` ## Geographic Location Classification