mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
Move utils to v0.2, MAX_ZOOM
This commit is contained in:
parent
ad8770a6e5
commit
b97f1ccdbe
6
Cargo.lock
generated
6
Cargo.lock
generated
@ -1894,7 +1894,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "martin-tile-utils"
|
||||
version = "0.1.6"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"approx",
|
||||
]
|
||||
@ -3620,9 +3620,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tilejson"
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0366d033d74f8a24237057ba082c8fd9b06111028baff00056689af5e4d28995"
|
||||
checksum = "4456a8bde0c9c9de96db90d0a74ef225035669c6176ee00ff692f8f6c0d94475"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
@ -48,7 +48,7 @@ insta = "1"
|
||||
itertools = "0.12"
|
||||
json-patch = "1.2"
|
||||
log = "0.4"
|
||||
martin-tile-utils = { path = "./martin-tile-utils", version = "0.1.0" }
|
||||
martin-tile-utils = { path = "./martin-tile-utils", version = "0.2.0" }
|
||||
mbtiles = { path = "./mbtiles", version = "0.8.0" }
|
||||
num_cpus = "1"
|
||||
pbf_font_tools = { version = "2.5.0", features = ["freetype"] }
|
||||
|
@ -2,7 +2,7 @@ lints.workspace = true
|
||||
|
||||
[package]
|
||||
name = "martin-tile-utils"
|
||||
version = "0.1.6"
|
||||
version = "0.2.0"
|
||||
authors = ["Yuri Astrakhan <YuriAstrakhan@gmail.com>", "MapLibre contributors"]
|
||||
description = "Utilites to help with map tile processing, such as type and compression detection. Used by the MapLibre's Martin tile server."
|
||||
keywords = ["maps", "tiles", "mvt", "tileserver"]
|
||||
|
@ -9,6 +9,8 @@ use std::fmt::Display;
|
||||
pub const EARTH_CIRCUMFERENCE: f64 = 40_075_016.685_578_5;
|
||||
pub const EARTH_RADIUS: f64 = EARTH_CIRCUMFERENCE / 2.0 / PI;
|
||||
|
||||
pub const MAX_ZOOM: u8 = 30;
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
pub enum Format {
|
||||
Gif,
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
source: mbtiles/tests/mbtiles.rs
|
||||
source: mbtiles/tests/copy.rs
|
||||
expression: actual_value
|
||||
---
|
||||
[[]]
|
Loading…
Reference in New Issue
Block a user