All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.albertus82.jface.maps.leaflet.LeafletMapControl Maven / Gradle / Ivy

Go to download

Java SWT/JFace Utility Library including a Preferences Framework, Lightweight HTTP Server and macOS support.

There is a newer version: 20.1.0
Show newest version
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: '&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>)'
	 *   })
	 * }
	 * 
*/ 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