Enum LeafletMapControl
- java.lang.Object
-
- java.lang.Enum<LeafletMapControl>
-
- io.github.albertus82.jface.maps.leaflet.LeafletMapControl
-
- All Implemented Interfaces:
Serializable
,Comparable<LeafletMapControl>
public enum LeafletMapControl extends Enum<LeafletMapControl>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTION
The attribution control allows you to display attribution data in a small text box on a map.LAYERS
The layers control gives users the ability to switch between different base layers and switch overlays on/off.SCALE
A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems.ZOOM
A basic zoom control with two buttons (zoom in and zoom out).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getConstructor()
static LeafletMapControl
valueOf(String name)
Returns the enum constant of this type with the specified name.static LeafletMapControl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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: '© <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: © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: © <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 nameNullPointerException
- if the argument is null
-
getConstructor
public String getConstructor()
-
-