Enum LeafletMapControl

    • Enum Constant Detail

      • ZOOM

        public static final LeafletMapControl ZOOM
        A basic zoom control with two buttons (zoom in and zoom out).
      • SCALE

        public static final LeafletMapControl SCALE
        A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems.
      • ATTRIBUTION

        public static final LeafletMapControl ATTRIBUTION
        The attribution control allows you to display attribution data in a small text box on a map.
      • LAYERS

        public static final LeafletMapControl LAYERS
        The layers control gives users the ability to switch between different base layers and switch overlays on/off. This control requires a value, e.g.:
         {
           "OpenStreetMap": L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
             maxZoom: 19,
             attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
           }).addTo(map),
           "OpenTopoMap": L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', {
             maxZoom: 17,
             attribution: 'Map data: &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: &copy; <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'
           })
         }
         
    • Method Detail

      • values

        public static LeafletMapControl[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LeafletMapControl c : LeafletMapControl.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LeafletMapControl valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getConstructor

        public String getConstructor()