Skip to content

Commit

Permalink
fix: tilejson examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKreil committed Jan 2, 2025
1 parent 1599046 commit 0531786
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions versatiles_core/src/utils/tilejson/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//!
//! # Example
//! ```rust
//! # use versatiles::types::{TileJSON, Blob};
//! # use versatiles_core::{types::*, utils::*};
//! # async fn example() -> Result<(), anyhow::Error> {
//! let json_text = r#"
//! {
Expand Down Expand Up @@ -115,7 +115,7 @@ impl TileJSON {
///
/// # Examples
/// ```
/// # use versatiles::types::{TileJSON, JsonObject};
/// # use versatiles_core::{types::*, utils::*};
/// # let tj = TileJSON::default();
/// let json_obj = tj.as_object();
/// ```
Expand Down Expand Up @@ -214,7 +214,7 @@ impl TileJSON {
///
/// # Examples
/// ```
/// # use versatiles::types::{TileJSON, GeoBBox};
/// # use versatiles_core::{types::*, utils::*};
/// let mut tj = TileJSON::default();
/// tj.limit_bbox(GeoBBox(-180.0, -90.0, 0.0, 10.0));
/// // If `tj.bounds` was None, now it's set; otherwise they are intersected.
Expand All @@ -231,7 +231,7 @@ impl TileJSON {
///
/// # Examples
/// ```
/// # use versatiles::types::TileJSON;
/// # use versatiles_core::{types::*, utils::*};
/// # let mut tj = TileJSON::default();
/// tj.set_byte("minzoom", 3).unwrap();
/// tj.limit_min_zoom(5);
Expand All @@ -245,7 +245,7 @@ impl TileJSON {
///
/// # Examples
/// ```
/// # use versatiles::types::TileJSON;
/// # use versatiles_core::{types::*, utils::*};
/// # let mut tj = TileJSON::default();
/// tj.set_byte("maxzoom", 15).unwrap();
/// tj.limit_max_zoom(10);
Expand Down

0 comments on commit 0531786

Please sign in to comment.