Skip to content

armgit / Aleph

Public Imported from GitHub
0

Give satellite imagery, terrain data, buildings, streetview photos to your LLM

Add google alert inside dashboard

Belluxxad68fc4a3c60
diff --git a/src/web/app.js b/src/web/app.js
index b0e645d..bee7983 100644
--- a/src/web/app.js
+++ b/src/web/app.js
@@ -3,6 +3,7 @@
const BASEMAP = "https://tiles.openfreemap.org/styles/positron";
const EMPTY = {type: "FeatureCollection", features: []};
const NAMES = {streetview: "Street View", satellite: "Satellite", osm: "OSM map", terrain: "Terrain", mesh: "3D mesh"};
+const GOOGLE = ["streetview", "satellite", "mesh"];
const STATES = {planned: "Planned", running: "Capturing", interrupted: "Interrupted", stopped: "Stopped",
failed: "Failed", complete: "Complete", unreadable: "Unreadable"};
const NUMBERS = ["step", "fov", "sphere_zoom", "satellite_zoom", "terrain_zoom", "mesh_level", "delay",
@@ -758,6 +759,7 @@ function readForm() {
function updateForm() {
const options = readForm();
for (const fieldset of $$(".source")) fieldset.classList.toggle("on", options.include.includes(fieldset.dataset.source));
+ $("#google-notice").hidden = !options.include.some(mode => GOOGLE.includes(mode));
for (const field of $$("[data-camera]")) field.hidden = (field.dataset.camera === "sphere") !== options.full_sphere;
for (const input of $$(".range input")) {
const range = input.parentElement, min = Number(input.min), max = Number(input.max);
diff --git a/src/web/index.html b/src/web/index.html
index cfe3630..a021e27 100644
--- a/src/web/index.html
+++ b/src/web/index.html
@@ -80,6 +80,10 @@
<section class="block">
<h2 class="label">Sources</h2>
+ <div id="google-notice" class="callout" hidden>
+ <p class="callout-title"><i data-icon="warning"></i>Google data</p>
+ <p>Street View, satellite imagery, and 3D meshes are © Google and its providers. Downloading them goes against Google's terms. You are responsible for how you use them.</p>
+ </div>
<fieldset class="source" data-source="streetview">
<label class="source-head"><input type="checkbox" name="include" value="streetview"><i data-icon="streetview"></i><span>Street View</span><output class="estimate"></output></label>
diff --git a/src/web/style.css b/src/web/style.css
index 769ddb5..ac9f351 100644
--- a/src/web/style.css
+++ b/src/web/style.css
@@ -294,6 +294,25 @@ input[type=range]::-moz-range-thumb { width: 24px; height: 18px; border: 0; bord
.area { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#area strong { font-weight: 600; }
+.callout {
+ margin-bottom: 12px;
+ padding: 10px 12px 11px;
+ border: 1px solid var(--accent);
+ background: color-mix(in srgb, var(--accent) 6%, var(--paper));
+ font-size: 12px;
+ line-height: 1.5;
+}
+.callout-title {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ margin-bottom: 5px;
+ color: var(--accent);
+ font: 600 10.5px/1.4 var(--mono);
+ letter-spacing: .08em;
+ text-transform: uppercase;
+}
+.callout-title .icon { width: 13px; height: 13px; }
.source { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.source:first-of-type { border-top: 0; }
.source-head {