diff --git a/maps/src/main/java/com/gluonhq/maps/MapView.java b/maps/src/main/java/com/gluonhq/maps/MapView.java index 705117f..3a47ed4 100644 --- a/maps/src/main/java/com/gluonhq/maps/MapView.java +++ b/maps/src/main/java/com/gluonhq/maps/MapView.java @@ -35,6 +35,8 @@ import javafx.animation.KeyFrame; import javafx.animation.KeyValue; import javafx.animation.Timeline; +import javafx.beans.property.ReadOnlyDoubleProperty; +import javafx.beans.property.ReadOnlyDoubleWrapper; import javafx.geometry.Point2D; import javafx.scene.image.Image; import javafx.scene.layout.Region; @@ -149,6 +151,14 @@ public double getZoom() { return baseMap.getZoom(); } +/** + * Returns the actual zoom level property of this map. + * @return the zoom level property. + */ + public ReadOnlyDoubleProperty zoom() { + return baseMap.zoom(); + } + /** * Request the map to position itself around the specified center *