Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions maps/src/main/java/com/gluonhq/maps/MapView.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*
Expand Down