diff --git a/etc/db/schema-template.sql b/etc/db/schema-template.sql index 723473b..72f0155 100644 --- a/etc/db/schema-template.sql +++ b/etc/db/schema-template.sql @@ -1240,6 +1240,7 @@ CREATE VIEW _SURVEY__TEMPLATE_.raw_lines_summary_geometry AS rls.length, rls.azimuth, rls.remarks, + rls.ntbp, g.geometry FROM (_SURVEY__TEMPLATE_.raw_lines_summary rls JOIN g USING (sequence)); diff --git a/lib/www/client/source/src/views/Map.vue b/lib/www/client/source/src/views/Map.vue index 83cca9d..f745aba 100644 --- a/lib/www/client/source/src/views/Map.vue +++ b/lib/www/client/source/src/views/Map.vue @@ -101,15 +101,25 @@ const layers = { onEachFeature (feature, layer) { const p = feature.properties; if (feature.geometry) { + + const ntbp = p.ntbp + ? " (NTBP)" + : ""; + + const remarks = p.remarks + ? "
"+p.remarks + : ""; + const popup = feature.geometry.type == "Point" - ? `Raw sequence ${feature.properties.sequence}
Point ${feature.properties.line} / ${feature.properties.point}
${feature.properties.objref}
${feature.properties.tstamp}` - : `Raw sequence ${p.sequence}
+ ? `Raw sequence ${feature.properties.sequence}${ntbp}
Point ${feature.properties.line} / ${feature.properties.point}
${feature.properties.objref}
${feature.properties.tstamp}` + : `Raw sequence ${p.sequence}${ntbp}
Line ${p.line}
${p.num_points} points${p.missing_shots ? " ("+p.missing_shots+" missing)" : ""}
${Math.round(p.length)} m ${p.azimuth.toFixed(1)}°
${p.duration}
-
${p.fsp}@ ${ftstamp(p.ts0)}
${p.lsp}@ ${ftstamp(p.ts1)}
`; +
${p.fsp}@ ${ftstamp(p.ts0)}
${p.lsp}@ ${ftstamp(p.ts1)}
${remarks}`; layer.bindTooltip(popup, {sticky: true}); + } } }), @@ -129,6 +139,11 @@ const layers = { }, onEachFeature (feature, layer) { const p = feature.properties; + + const remarks = p.remarks + ? "
"+p.remarks + : ""; + const popup = feature.geometry.type == "Point" ? `Final sequence ${p.sequence}
Point ${p.line} / ${p.point}
${p.objref}
${p.tstamp}` : `Final sequence ${p.sequence}
@@ -136,7 +151,7 @@ const layers = { ${p.num_points} points${p.missing_shots ? " ("+p.missing_shots+" missing)" : ""}
${Math.round(p.length)} m ${p.azimuth.toFixed(1)}°
${p.duration}
-
${p.fsp}@ ${ftstamp(p.ts0)}
${p.lsp}@ ${ftstamp(p.ts1)}
`; +
${p.fsp}@ ${ftstamp(p.ts0)}
${p.lsp}@ ${ftstamp(p.ts1)}
${remarks}`; // : `Final sequence ${feature.properties.sequence}
Line ${feature.properties.line}
${feature.properties.num_points} points
From ${feature.properties.ts0}
until ${feature.properties.ts0}`; layer.bindTooltip(popup, {sticky: true}); }