Skip to content

Commit

Permalink
Move utils to v0.2, MAX_ZOOM
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Dec 9, 2023
1 parent ad8770a commit b97f1cc
Show file tree
Hide file tree
Showing 26 changed files with 28 additions and 26 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion martin-tile-utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lints.workspace = true

[package]
name = "martin-tile-utils"
version = "0.1.6"
version = "0.2.0"
authors = ["Yuri Astrakhan <[email protected]>", "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"]
Expand Down
2 changes: 2 additions & 0 deletions martin-tile-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
source: mbtiles/tests/mbtiles.rs
source: mbtiles/tests/copy.rs
expression: actual_value
---
[[]]
Expand Down

0 comments on commit b97f1cc

Please sign in to comment.