All Superinterfaces:
Serializable
All Known Subinterfaces:
MapOptions
All Known Implementing Classes:
DefaultMapOptions

public interface AnimationOptions extends Serializable
Animation Options
Since:
2020-03-06
Version:
1.0
Author:
Gabor Kokeny Email: kokeny19@gmail.com
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the maximum size of a CSS translation transform.
    double
    Returns the zoom difference above which zoom will not be animated.
    boolean
    Returns whether the tile fade animation is enabled.
    boolean
    Returns whether markers animate their zoom with the zoom animation.
    boolean
    Returns whether the map zoom animation is enabled.
    void
    setFadeAnimation(boolean fadeAnimation)
    Whether the tile fade animation is enabled.
    void
    setMarkerZoomAnimation(boolean markerZoomAnimation)
    Whether markers animate their zoom with the zoom animation, if disabled they will disappear for the length of the animation.
    void
    setTransform3DLimit(double transform3DLimit)
    Defines the maximum size of a CSS translation transform.
    void
    setZoomAnimation(boolean zoomAnimation)
    Whether the map zoom animation is enabled.
    void
    setZoomAnimationThreshold(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:
      true if 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:
      true if 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:
      true if 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