maps: download planet2.mamaps instead of planet.mamaps
- Commit
b022cfe3b1d3326caa6fb22a7bef956938edb0a7- Author
- vayun-mathur <[email protected]>
- When
- 2026-10-14 01:14 UTC (1 month ago)
- Parents
85e35fb
Point the three archive URLs (renderer BASEMAP_ARCHIVE_URL, test ORIGIN, maps BASEMAP_ARCHIVE_URL) at planet2.mamaps; doc comments follow. Local on-disk name stays basemap.mamaps (role-named, URL is never used as the filename), so no sideload/import change. No upload script exists in the repo (publish_r2.sh was deleted in Sept; build_graph.ps1 only builds local world.mamaps) - the planet2.mamaps object name takes effect at publish time outside the repo.
Diff
library/map/src/main/java/com/vayunmathur/library/map/MapNative.kt
diff --git a/library/map/src/main/java/com/vayunmathur/library/map/MapNative.kt b/library/map/src/main/java/com/vayunmathur/library/map/MapNative.ktindex 0e947bb5d0..e708ac2fbc 100644--- a/library/map/src/main/java/com/vayunmathur/library/map/MapNative.kt+++ b/library/map/src/main/java/com/vayunmathur/library/map/MapNative.kt@@ -44,7 +44,7 @@ internal object MapNative { * * [localPath] is an optional path to a `.mamaps` archive already on the device. When * it names an existing file the renderer reads that file directly and does no- * networking at all; `null` or empty keeps the built-in `planet.mamaps` URL and its+ * networking at all; `null` or empty keeps the built-in `planet2.mamaps` URL and its * range cache unchanged. */ external fun create(
library/map/src/main/java/com/vayunmathur/library/map/MapOptions.kt
diff --git a/library/map/src/main/java/com/vayunmathur/library/map/MapOptions.kt b/library/map/src/main/java/com/vayunmathur/library/map/MapOptions.ktindex 5ce7a0466a..0792ade54d 100644--- a/library/map/src/main/java/com/vayunmathur/library/map/MapOptions.kt+++ b/library/map/src/main/java/com/vayunmathur/library/map/MapOptions.kt@@ -64,7 +64,7 @@ data class MapOptions( val layerOptions: LayerOptions = LayerOptions(), /** * Where tiles come from. [TileSource.Server] (default) streams range requests for- * `planet.mamaps` over HTTP with a disk range cache; [TileSource.LocalFile] reads a+ * `planet2.mamaps` over HTTP with a disk range cache; [TileSource.LocalFile] reads a * pushed `.mamaps` archive from the app's external files dir and does no networking. * Today only `maps` pushes an archive, so every other app stays on the default. */@@ -89,7 +89,7 @@ enum class MapBody { * Where the renderer reads its tiles from. */ enum class TileSource {- /** Stream `planet.mamaps` range requests over HTTP, cached on disk. */+ /** Stream `planet2.mamaps` range requests over HTTP, cached on disk. */ Server, /** Read a pushed `.mamaps` archive from external files; no networking. Falls back to * [Server] when no archive file is present, so a missing push degrades to streaming
library/map/src/main/java/com/vayunmathur/library/map/VectorMap.kt
diff --git a/library/map/src/main/java/com/vayunmathur/library/map/VectorMap.kt b/library/map/src/main/java/com/vayunmathur/library/map/VectorMap.ktindex b59d3e3aa1..f2fd5202be 100644--- a/library/map/src/main/java/com/vayunmathur/library/map/VectorMap.kt+++ b/library/map/src/main/java/com/vayunmathur/library/map/VectorMap.kt@@ -32,8 +32,8 @@ import kotlin.math.roundToInt /** * The vector map. *- * Renders the planet-scale v8 single-file `planet.mamaps` archive- * (`data.vayunmathur.com/planet.mamaps`: 9 layers, 128-byte header) with our own+ * Renders the planet-scale v8 single-file `planet2.mamaps` archive+ * (`data.vayunmathur.com/planet2.mamaps`: 9 layers, 128-byte header) with our own * Vulkan renderer. No third-party tile CDN and no API key, which is the whole point: * watermarked, and that broke the basemap in five apps (#615). *
library/map/src/main/rust/src/lib.rs
diff --git a/library/map/src/main/rust/src/lib.rs b/library/map/src/main/rust/src/lib.rsindex b7b34d5958..48e5077dc4 100644--- a/library/map/src/main/rust/src/lib.rs+++ b/library/map/src/main/rust/src/lib.rs@@ -2,7 +2,7 @@ //! //! Replaces the CARTO raster basemap in findfamily, photos, weather, taxi and //! fooddelivery (#615) with our own renderer over the planet-scale v7-//! single-file `planet.mamaps` archive at `data.vayunmathur.com/planet.mamaps`+//! single-file `planet2.mamaps` archive at `data.vayunmathur.com/planet2.mamaps` //! (12 layers, 128-byte header). //! //! # Layout
library/map/src/main/rust/src/tile/cache.rs
diff --git a/library/map/src/main/rust/src/tile/cache.rs b/library/map/src/main/rust/src/tile/cache.rsindex 93a9d4a8bf..5c461490e5 100644--- a/library/map/src/main/rust/src/tile/cache.rs+++ b/library/map/src/main/rust/src/tile/cache.rs@@ -284,8 +284,8 @@ mod tests { } } - const URL: &str = "https://data.vayunmathur.com/planet.mamaps";- const ORIGIN: &str = "v1|https://data.vayunmathur.com/planet.mamaps";+ const URL: &str = "https://data.vayunmathur.com/planet2.mamaps";+ const ORIGIN: &str = "v1|https://data.vayunmathur.com/planet2.mamaps"; fn cache_with(dir: &Path, clock: Arc<AtomicU64>, max_bytes: u64) -> RangeCache { let c = clock.clone();
library/map/src/main/rust/src/tile/source/urls.rs
diff --git a/library/map/src/main/rust/src/tile/source/urls.rs b/library/map/src/main/rust/src/tile/source/urls.rsindex 305873ab06..9b120850d0 100644--- a/library/map/src/main/rust/src/tile/source/urls.rs+++ b/library/map/src/main/rust/src/tile/source/urls.rs@@ -1,6 +1,6 @@ /// Where this renderer reads its tiles from: the planet-scale v8 single-file /// full `.mamaps` archive (9 layers, 128-byte header).-pub const BASEMAP_ARCHIVE_URL: &str = "https://data.vayunmathur.com/planet.mamaps";+pub const BASEMAP_ARCHIVE_URL: &str = "https://data.vayunmathur.com/planet2.mamaps"; /// Bumped when the on-disk cache layout changes, so old entries are dropped rather than /// misread. The URL is in the marker too, because the archive is republished under the
maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.kt
diff --git a/maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.kt b/maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.ktindex cad0425f73..960bc4e6a4 100644--- a/maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.kt+++ b/maps/src/main/java/com/vayunmathur/maps/util/MapTileCache.kt@@ -19,7 +19,7 @@ object MapTileCache { /** Where [BASEMAP_ARCHIVE_FILE] is fetched from on a first launch that has no copy yet. */ const val BASEMAP_ARCHIVE_URL =- "https://data.vayunmathur.com/planet.mamaps"+ "https://data.vayunmathur.com/planet2.mamaps" /** * The single source of truth for the streamed basemap PMTiles URL.