Class ZoomOptions
java.lang.Object
org.vaadin.addons.componentfactory.leaflet.options.ZoomOptions
- All Implemented Interfaces:
Serializable
Some of the Map methods which modify the zoom level take in an options
parameter.x
- Since:
- 2020-03-11
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether zooming is animated.voidsetAnimate(boolean animate) If not specified, zoom animation will happen if the zoom origin is inside the current view.
-
Constructor Details
-
ZoomOptions
public ZoomOptions()
-
-
Method Details
-
isAnimate
public boolean isAnimate()Returns whether zooming is animated.- Returns:
- the animate
-
setAnimate
public void setAnimate(boolean animate) If not specified, zoom animation will happen if the zoom origin is inside the current view. If true, the map will attempt animating zoom disregarding where zoom origin is. Setting false will make it always reset the view completely without animation.- Parameters:
animate- the animate to set
-