public class LeafletOptions
extends org.fujion.ancillary.Options
| Modifier and Type | Field and Description |
|---|---|
Boolean |
attributionControl
Whether an attribution control is added to the map by default.
|
Boolean |
bounceAtZoomLimits
Set it to false if you don't want the map to zoom beyond min/max zoom and then bounce back when pinch-zooming.
|
LatLng |
center
Initial geographic center of the map.
|
Double |
easeLinearity
No information.
|
Boolean |
fadeAnimation
Whether the tile fade animation is enabled.
|
Boolean |
inertia
If enabled, panning of the map will have an inertia effect where the map builds momentum while dragging and
continues moving in the same direction for some time.
|
Integer |
inertiaDeceleration
Max speed of the inertial movement, in pixels/second.
|
Boolean |
keyboard
Makes the map focusable and allows users to navigate the map with keyboard arrows and +/- keys.
|
Integer |
keyboardPanDelta
Amount of pixels to pan when pressing an arrow key.
|
Boolean |
markerZoomAnimation
Whether markers animate their zoom with the zoom animation, if disabled they will disappear for the length of
the animation.
|
Double |
maxBoundsViscosity
If maxBounds is set, this option will control how solid the bounds are when dragging the map around.
|
Integer |
maxZoom
Maximum zoom level of the map.
|
Integer |
minZoom
Minimum zoom level of the map.
|
Boolean |
preferCanvas
Whether Paths should be rendered on a Canvas renderer.
|
Boolean |
scrollWheelZoomBoolean
Whether the map can be zoomed by using the mouse wheel.
|
String |
scrollWheelZoomString
Whether the map can be zoomed by using the mouse wheel.
|
Boolean |
tap
Enables mobile hacks for supporting instant taps (fixing 200ms click delay on iOS/Android) and touch holds
(fired as contextmenu events).
|
Integer |
tapTolerance
The max number of pixels a user can shift his finger during touch for it to be considered a valid tap.
|
Boolean |
touchZoomBoolean
Whether the map can be zoomed by touch-dragging with two fingers.
|
String |
touchZoomString
Whether the map can be zoomed by touch-dragging with two fingers.
|
Double |
transform3DLimit
Defines the maximum size of a CSS translation transform.
|
Long |
wheelDebounceTime
Limits the rate at which a wheel can fire (in milliseconds).
|
Integer |
wheelPxPerZoomLevel
How many scroll pixels (as reported by L.DomEvent.getWheelDelta) mean a change of one full zoom level.
|
Boolean |
worldCopyJump
With this option enabled, the map tracks when you pan to another "copy" of the world and seamlessly jumps to the
original one so that all overlays like markers and vector layers are still visible.
|
Integer |
zoom
Initial map zoom level.
|
Boolean |
zoomAnimation
Whether the map zoom animation is enabled.
|
Double |
zoomAnimationThreshold
Won't animate zoom if the zoom difference exceeds this value.
|
Boolean |
zoomControl
Whether a zoom control is added to the map by default.
|
| Constructor and Description |
|---|
LeafletOptions() |
@Option public Boolean preferCanvas
Default: false
@Option public Boolean attributionControl
Default: true
@Option public Boolean zoomControl
Default: true
@Option public Integer zoom
@Option public Integer minZoom
@Option public Integer maxZoom
@Option(required=true) public LatLng center
@Option public Boolean zoomAnimation
Default: true
@Option public Double zoomAnimationThreshold
Default: 4
@Option public Boolean fadeAnimation
Default: true
@Option public Boolean markerZoomAnimation
Default: true
@Option public Double transform3DLimit
Default: 2^23
@Option public Boolean inertia
@Option public Integer inertiaDeceleration
Default: no limit
@Option public Double easeLinearity
Default: 0.2
@Option public Boolean worldCopyJump
Default: false
@Option public Double maxBoundsViscosity
Default: 0.0
@Option public Boolean keyboard
Default: true
@Option public Integer keyboardPanDelta
Default: 80
@Option(value="scrollWheelZoom") public Boolean scrollWheelZoomBoolean
Default: true
@Option(value="scrollWheelZoom") public String scrollWheelZoomString
@Option public Long wheelDebounceTime
Default: 40
@Option public Integer wheelPxPerZoomLevel
Default: 60
@Option public Boolean tap
Default: true
@Option public Integer tapTolerance
Default: 15
@Option(value="touchZoom") public Boolean touchZoomBoolean
Default: *
@Option(value="touchZoom") public String touchZoomString
Default: *
@Option public Boolean bounceAtZoomLimits
Default: true
Copyright © 2023 Fujion Framework. All rights reserved.