aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hittekaart/src/storage.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/hittekaart/src/storage.rs b/hittekaart/src/storage.rs
index 5c2d453..af743a9 100644
--- a/hittekaart/src/storage.rs
+++ b/hittekaart/src/storage.rs
@@ -293,6 +293,11 @@ impl MbTiles {
}
}
+ /// Returns the current name of the tile store.
+ pub fn name(&self) -> &str {
+ &self.name
+ }
+
/// Set (or unset) the description of this MBTiles tile store.
///
/// By default, no description will be written. If a description has been set, it can be
@@ -303,6 +308,11 @@ impl MbTiles {
.. self
}
}
+
+ /// Returns the current description of the tile store.
+ pub fn description(&self) -> Option<&str> {
+ self.description.as_deref()
+ }
}
impl Storage for MbTiles {