mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Expose zoom_level
This commit is contained in:
parent
a447084674
commit
dbf14b97e6
@ -385,6 +385,10 @@ impl ViewRegion {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn zoom_level(&self) -> u8 {
|
||||
self.z
|
||||
}
|
||||
|
||||
pub fn is_in_view(&self, &world_coords: &WorldTileCoords) -> bool {
|
||||
world_coords.x <= self.max_tile.x + self.padding
|
||||
&& world_coords.y <= self.max_tile.y + self.padding
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user