Map search added to global search. Preview cards are displayed for all results in new Map tab.
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run

Map viewer has simple search.

Map search databases can be downloaded from CDN, or built locally. Map searches can be built offline, but will not have enriched things like state names downloaded from Wikidata.
This commit is contained in:
Roland 2026-04-11 20:09:30 -06:00
parent aaa3c0aff7
commit c726654de9
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
21 changed files with 1831 additions and 62 deletions

View file

@ -38,6 +38,33 @@ install_pmtiles() {
install_pmtiles || echo "pmtiles CLI installation failed, continuing..."
# --- Install/upgrade tippecanoe (for map search index building) ---
install_tippecanoe() {
TIPPECANOE_VERSION="2.79.0"
# Check if already installed at correct version.
if command -v tippecanoe-decode &>/dev/null; then
CURRENT=$(tippecanoe --version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' || echo "")
if [ "$CURRENT" = "$TIPPECANOE_VERSION" ]; then
echo "tippecanoe ${TIPPECANOE_VERSION} already installed"
return 0
fi
fi
echo "Building tippecanoe ${TIPPECANOE_VERSION}..."
apt-get install -y build-essential libsqlite3-dev zlib1g-dev
TIPPECANOE_BUILD_DIR=$(mktemp -d)
curl -fsSL "https://github.com/felt/tippecanoe/archive/refs/tags/${TIPPECANOE_VERSION}.tar.gz" \
| tar -xz -C "${TIPPECANOE_BUILD_DIR}" --strip-components=1
cd "${TIPPECANOE_BUILD_DIR}" && make -j$(nproc) && make install
rm -rf "${TIPPECANOE_BUILD_DIR}"
tippecanoe --version
}
install_tippecanoe || echo "tippecanoe installation failed, continuing..."
# --- Migrate from old map stack (runs once) ---
MARKER_FILE="/opt/wrolpi/.protomaps_installed"