Interface AnimationOptions
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
MapOptions
- All Known Implementing Classes:
DefaultMapOptions
Animation Options
- Since:
- 2020-03-06
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the maximum size of a CSS translation transform.doubleReturns the zoom difference above which zoom will not be animated.booleanReturns whether the tile fade animation is enabled.booleanReturns whether markers animate their zoom with the zoom animation.booleanReturns whether the map zoom animation is enabled.voidsetFadeAnimation(boolean fadeAnimation) Whether the tile fade animation is enabled.voidsetMarkerZoomAnimation(boolean markerZoomAnimation) Whether markers animate their zoom with the zoom animation, if disabled they will disappear for the length of the animation.voidsetTransform3DLimit(double transform3DLimit) Defines the maximum size of a CSS translation transform.voidsetZoomAnimation(boolean zoomAnimation) Whether the map zoom animation is enabled.voidsetZoomAnimationThreshold(double zoomAnimationThreshold) Won't animate zoom if the zoom difference exceeds this value.
-
Method Details
-
isZoomAnimation
boolean isZoomAnimation()Returns whether the map zoom animation is enabled.- Returns:
trueif the map zoom animation is enabled
-
setZoomAnimation
void setZoomAnimation(boolean zoomAnimation) Whether the map zoom animation is enabled. By default it's enabled in all browsers that support CSS3 Transitions except Android.- Parameters:
zoomAnimation- whether the map zoom animation is enabled
-
getZoomAnimationThreshold
double getZoomAnimationThreshold()Returns the zoom difference above which zoom will not be animated.- Returns:
- the maximum zoom difference that will still be animated
-
setZoomAnimationThreshold
void setZoomAnimationThreshold(double zoomAnimationThreshold) Won't animate zoom if the zoom difference exceeds this value.- Parameters:
zoomAnimationThreshold- the max zoom animation difference
-
isFadeAnimation
boolean isFadeAnimation()Returns whether the tile fade animation is enabled.- Returns:
trueif the tile fade animation is enabled
-
setFadeAnimation
void setFadeAnimation(boolean fadeAnimation) Whether the tile fade animation is enabled. By default it's enabled in all browsers that support CSS3 Transitions except Android.- Parameters:
fadeAnimation- if true the tile fade animation will be enabled
-
isMarkerZoomAnimation
boolean isMarkerZoomAnimation()Returns whether markers animate their zoom with the zoom animation.- Returns:
trueif markers animate their zoom with the zoom animation
-
setMarkerZoomAnimation
void setMarkerZoomAnimation(boolean markerZoomAnimation) Whether markers animate their zoom with the zoom animation, if disabled they will disappear for the length of the animation. By default it's enabled in all browsers that support CSS3 Transitions except Android.- Parameters:
markerZoomAnimation- if true markers will animate their zoom with the zoom animation
-
getTransform3DLimit
double getTransform3DLimit()Returns the maximum size of a CSS translation transform.- Returns:
- the maximum size of a CSS translation transform
-
setTransform3DLimit
void setTransform3DLimit(double transform3DLimit) Defines the maximum size of a CSS translation transform. The default value should not be changed unless a web browser positions layers in the wrong place after doing a large panBy.- Parameters:
transform3DLimit- the maximum size of a CSS translation transform
-