Constructor and Description |
---|
control() |
Modifier and Type | Method and Description |
---|---|
static Attribution |
attribution(ControlAttributionOptions options)
The attribution control allows you to display attribution data in a small text box on a map.
|
static Layers |
layers(com.google.gwt.core.client.JavaScriptObject baseLayers,
com.google.gwt.core.client.JavaScriptObject overlays,
ControlLayersOptions options)
The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the detailed example).
|
static Scale |
scale(ControlScaleOptions options)
A simple scale control that shows the scale of the current center of screen in metric (m/km) and imperial (mi/ft) systems.
|
static Zoom |
zoom(ControlZoomOptions options)
A basic zoom control with two buttons (zoom in and zoom out).
|
@JsMethod public static Zoom zoom(ControlZoomOptions options)
options
- the Zoom options@JsMethod public static Attribution attribution(ControlAttributionOptions options)
options
- the Attribution options@JsMethod public static Layers layers(com.google.gwt.core.client.JavaScriptObject baseLayers, com.google.gwt.core.client.JavaScriptObject overlays, ControlLayersOptions options)
baseLayers
- the base layersoverlays
- the overlays layersoptions
- the Layers options@JsMethod public static Scale scale(ControlScaleOptions options)
L.control.scale().addTo(map);
options
- the Scale optionsCopyright © 2018 G-Widgets. All rights reserved.