Skip to content

Commit

Permalink
fix: default zoom levels
Browse files Browse the repository at this point in the history
removed logs
  • Loading branch information
farfromrefug committed Mar 7, 2023
1 parent 3634a6f commit f9220d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src-tauri/src/tiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ pub fn get_tile_details(path: &Path) -> Result<TileMeta> {
grid_format: None,
bounds: None,
center: None,
minzoom: None,
maxzoom: None,
minzoom: Some(0),
maxzoom: Some(19),
description: None,
attribution: None,
layer_type: None,
Expand All @@ -277,7 +277,7 @@ pub fn get_tile_details(path: &Path) -> Result<TileMeta> {
.prepare(r#"SELECT name, value FROM metadata WHERE value IS NOT NULL"#)
.unwrap();
let mut metadata_rows = statement.query([]).unwrap();
println!("get_tile_details {}", path.clone().to_str().unwrap());
// println!("get_tile_details {}", path.clone().to_str().unwrap());

while let Some(row) = metadata_rows.next().unwrap() {
let label: String = row.get(0).unwrap();
Expand Down Expand Up @@ -308,7 +308,7 @@ pub fn get_tile_details(path: &Path) -> Result<TileMeta> {
_ => (),
}
}
println!("get_tile_details done {}", path.clone().to_str().unwrap());
// println!("get_tile_details done {}", path.clone().to_str().unwrap());

Ok(metadata)
}
Expand Down

0 comments on commit f9220d4

Please sign in to comment.