Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ cloud-run-key-file.json
file_system_store
.DS_Store

# Generated at runtime by dash_extensions.javascript.assign() — do not commit
assets/dashExtensions_default.js

# Created by .ignore support plugin (hsz.mobi)
### VisualStudioCode template
.vscode/*
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ numpy = "==1.26.3"
dash-iconify = "*"
scipy = "==1.12.0"
kgcpy = "*"
dash-leaflet = "*"

[dev-packages]
cleanpy = "*"
Expand Down
44 changes: 26 additions & 18 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import dash_bootstrap_components as dbc
from dash_extensions.enrich import DashProxy, ServersideOutputTransform
from flask import send_file

app = DashProxy(
__name__,
Expand All @@ -10,6 +11,24 @@
)
TIMEOUT = 600


@app.server.route("/geojson/locations")
def serve_locations_geojson():
return (
send_file(
"assets/data/locations.geojson.gz",
mimetype="application/json",
as_attachment=False,
download_name="locations.geojson",
conditional=True,
),
{
"Content-Encoding": "gzip",
"Cache-Control": "public, max-age=31536000, immutable",
},
)


app.index_string = """<!DOCTYPE html>
<html lang="en-US">
<head>
Expand Down
2,850 changes: 2,849 additions & 1 deletion assets/animations/page_not_found.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions assets/cluster.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.marker-cluster-small {
background-color: rgba(248, 249, 250, 0.6);
}
.marker-cluster-medium {
background-color: rgba(172, 227, 251, 0.6);
}
.marker-cluster-large {
background-color: rgba(35, 139, 230, 0.6);
}
.marker-cluster-small div {
background-color: rgba(240, 247, 249, 0.8);
}
.marker-cluster-medium div {
background-color: rgba(172, 227, 251, 0.8);
}
.marker-cluster-large div {
background-color: rgba(35, 139, 230, 0.8);
}
Loading
Loading