io.github.albertus82.jface.maps.leaflet.LeafletMapControl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jface-utils Show documentation
Show all versions of jface-utils Show documentation
Java SWT/JFace Utility Library including a Preferences Framework, Lightweight HTTP Server and macOS support.
package io.github.albertus82.jface.maps.leaflet;
public enum LeafletMapControl {
/** A basic zoom control with two buttons (zoom in and zoom out). */
ZOOM("zoom"),
/**
* A simple scale control that shows the scale of the current center of screen
* in metric (m/km) and imperial (mi/ft) systems.
*/
SCALE("scale"),
/**
* The attribution control allows you to display attribution data in a small
* text box on a map.
*/
ATTRIBUTION("attribution"),
/**
* 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>)'
* })
* }
*
*/
LAYERS("layers");
private final String constructor;
private LeafletMapControl(final String constructor) {
this.constructor = constructor;
}
public String getConstructor() {
return constructor;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy