All Implemented Interfaces:
Serializable, Identifiable, ExecutableFunctions

public class ZoomControl extends LeafletControl
A basic zoom control with two buttons (zoom in and zoom out). It is put on the map by default unless you set its zoomControl option to false. Extends Control.
Since:
2020-03-06
Version:
1.0
Author:
Gabor Kokeny Email: kokeny19@gmail.com
See Also:
  • Constructor Details

    • ZoomControl

      public ZoomControl()
      Creates a new zoom control.
  • Method Details

    • getZoomInText

      public String getZoomInText()
      Gets the text set on the zoom-in button.
      Returns:
      the zoom-in button text
    • setZoomInText

      public void setZoomInText(String zoomInText)
      Sets the text shown on the zoom-in button.
      Parameters:
      zoomInText - the zoom-in button text
    • getZoomInTitle

      public String getZoomInTitle()
      Gets the title (tooltip) set on the zoom-in button.
      Returns:
      the zoom-in button title
    • setZoomInTitle

      public void setZoomInTitle(String zoomInTitle)
      Sets the title (tooltip) shown on the zoom-in button.
      Parameters:
      zoomInTitle - the zoom-in button title
    • getZoomOutText

      public String getZoomOutText()
      Gets the text set on the zoom-out button.
      Returns:
      the zoom-out button text
    • setZoomOutText

      public void setZoomOutText(String zoomOutText)
      Sets the text shown on the zoom-out button.
      Parameters:
      zoomOutText - the zoom-out button text
    • getZoomOutTitle

      public String getZoomOutTitle()
      Gets the title (tooltip) set on the zoom-out button.
      Returns:
      the zoom-out button title
    • setZoomOutTitle

      public void setZoomOutTitle(String zoomOutTitle)
      Sets the title (tooltip) shown on the zoom-out button.
      Parameters:
      zoomOutTitle - the zoom-out button title