Modern Apps git

← Modern-Apps.git

library:map: point archive URLs back at planet.mamaps until planet2 uploads

Commit
f5bc1741485976ed3ac78c85ba7ebafd5eae57c3
Author
vayun-mathur <[email protected]>
When
2026-10-14 02:58 UTC (1 month ago)
Parents
5683420

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 e708ac2fbc..0e947bb5d0 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 `planet2.mamaps` URL and its+     * networking at all; `null` or empty keeps the built-in `planet.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 0792ade54d..5ce7a0466a 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-     * `planet2.mamaps` over HTTP with a disk range cache; [TileSource.LocalFile] reads a+     * `planet.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 `planet2.mamaps` range requests over HTTP, cached on disk. */+    /** Stream `planet.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 f2fd5202be..b59d3e3aa1 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 `planet2.mamaps` archive- * (`data.vayunmathur.com/planet2.mamaps`: 9 layers, 128-byte header) with our own+ * Renders the planet-scale v8 single-file `planet.mamaps` archive+ * (`data.vayunmathur.com/planet.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 48e5077dc4..b7b34d5958 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 `planet2.mamaps` archive at `data.vayunmathur.com/planet2.mamaps`+//! single-file `planet.mamaps` archive at `data.vayunmathur.com/planet.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 5c461490e5..93a9d4a8bf 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/planet2.mamaps";-    const ORIGIN: &str = "v1|https://data.vayunmathur.com/planet2.mamaps";+    const URL: &str = "https://data.vayunmathur.com/planet.mamaps";+    const ORIGIN: &str = "v1|https://data.vayunmathur.com/planet.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 9b120850d0..305873ab06 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/planet2.mamaps";+pub const BASEMAP_ARCHIVE_URL: &str = "https://data.vayunmathur.com/planet.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 960bc4e6a4..cad0425f73 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/planet2.mamaps"+        "https://data.vayunmathur.com/planet.mamaps"      /**      * The single source of truth for the streamed basemap PMTiles URL.