Package | Description |
---|---|
com.gwidgets.api.leaflet.options |
Modifier and Type | Method and Description |
---|---|
MapOptions.Builder |
MapOptions.Builder.attributionControl(Boolean attributionControl)
Whether the attribution control is added to the map by default.
|
MapOptions.Builder |
MapOptions.Builder.bounceAtZoomLimits(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.
|
MapOptions.Builder |
MapOptions.Builder.boxZoom(Boolean boxZoom)
Whether the map can be zoomed to a rectangular area specified by dragging the mouse while pressing shift.
|
MapOptions.Builder |
MapOptions.Builder.closePopupOnClick(Boolean closePopupOnClick)
Set it to false if you don't want popups to close when user clicks the map.
|
MapOptions.Builder |
MapOptions.Builder.doubleClickZoom(Boolean doubleClickZoom)
Whether the map can be zoomed in by double clicking on it and zoomed out by double clicking while holding shift.
|
MapOptions.Builder |
MapOptions.Builder.dragging(Boolean dragging)
Whether the map is draggable with mouse/touch or not.
|
MapOptions.Builder |
MapOptions.Builder.fadeAnimation(Boolean fadeAnimation)
Whether the tile fade animation is enabled.
|
MapOptions.Builder |
MapOptions.Builder.inertia(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.
|
MapOptions.Builder |
MapOptions.Builder.inertiaDeceleration(double inertiaDeceleration)
The rate with which the inertial movement slows down, in pixels/second2.
|
MapOptions.Builder |
MapOptions.Builder.inertiaMaxSpeed(double inertiaMaxSpeed)
Max speed of the inertial movement, in pixels/second.
|
MapOptions.Builder |
MapOptions.Builder.inertiaThreshold(double inertiaThreshold)
Number of milliseconds that should pass between stopping the movement and releasing the mouse or touch to prevent inertial movement.
|
MapOptions.Builder |
MapOptions.Builder.keyboard(Boolean keyboard)
Makes the map focusable and allows users to navigate the map with keyboard arrows and +/- keys.
|
MapOptions.Builder |
MapOptions.Builder.keyboardPanDelta(double keyboardPanDelta)
Amount of pixels to pan when pressing an arrow key.
|
MapOptions.Builder |
MapOptions.Builder.layers(Layer[] layers)
Layers that will be added to the map initially.
|
MapOptions.Builder |
MapOptions.Builder.markerZoomAnimation(Boolean markerZoomAnimation)
Whether markers animate their zoom with the zoom animation, if disabled they will disappear for the length of the animation.
|
MapOptions.Builder |
MapOptions.Builder.maxBounds(LatLngBounds maxBounds)
When this option is set, the map restricts the view to the given geographical bounds, bouncing the user back when he tries to pan outside the view.
|
MapOptions.Builder |
MapOptions.Builder.maxBoundsViscosity(double maxBoundsViscosity)
If maxBounds is set, this option will control how solid the bounds are when dragging the map around.
|
MapOptions.Builder |
MapOptions.Builder.maxZoom(Double maxZoom)
Maximum zoom level of the map.
|
MapOptions.Builder |
MapOptions.Builder.preferCanvas(Boolean preferCanvas)
Whether Paths should be rendered on a Canvas renderer.
|
MapOptions.Builder |
MapOptions.Builder.renderer(Renderer renderer)
The default method for drawing vector layers on the map.
|
MapOptions.Builder |
MapOptions.Builder.scrollWheelZoom(Boolean scrollWheelZoom)
Whether the map can be zoomed by using the mouse wheel.
|
MapOptions.Builder |
MapOptions.Builder.tap(Boolean tap)
Enables mobile hacks for supporting instant taps (fixing 200ms click delay on iOS/Android) and touch holds (fired as contextmenu events).
|
MapOptions.Builder |
MapOptions.Builder.tapTolerance(double tapTolerance)
The max number of pixels a user can shift his finger during touch for it to be considered a valid tap.
|
MapOptions.Builder |
MapOptions.Builder.touchZoom(Boolean touchZoom)
Whether the map can be zoomed by touch-dragging with two fingers.
|
MapOptions.Builder |
MapOptions.Builder.trackResize(Boolean trackResize)
Whether the map automatically handles browser window resize to update itself.
|
MapOptions.Builder |
MapOptions.Builder.transform3DLimit(double transform3DLimit)
Defines the maximum size of a CSS translation transform.
|
MapOptions.Builder |
MapOptions.Builder.wheelDebounceTime(double wheelDebounceTime)
Limits the rate at which a wheel can fire (in milliseconds).
|
MapOptions.Builder |
MapOptions.Builder.wheelPxPerZoomLevel(double wheelPxPerZoomLevel)
How many scroll pixels (as reported by L.DomEvent.getWheelDelta) mean a change of one full zoom level.
|
MapOptions.Builder |
MapOptions.Builder.worldCopyJump(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.
|
MapOptions.Builder |
MapOptions.Builder.zoomAnimation(Boolean zoomAnimation)
Whether the tile zoom animation is enabled.
|
MapOptions.Builder |
MapOptions.Builder.zoomAnimationThreshold(double zoomAnimationThreshold)
Won't animate zoom if the zoom difference exceeds this value.
|
MapOptions.Builder |
MapOptions.Builder.zoomControl(Boolean zoomControl)
Whether the zoom control is added to the map by default.
|
MapOptions.Builder |
MapOptions.Builder.zoomDelta(double zoomDelta)
Controls how much the map's zoom level will change after a zoomIn(), zoomOut(), pressing + or - on the keyboard, or using the zoom controls.
|
MapOptions.Builder |
MapOptions.Builder.zoomSnap(double zoomSnap)
Forces the map's zoom level to always be a multiple of this, particularly right after a fitBounds() or a pinch-zoom.
|
Copyright © 2018 G-Widgets. All rights reserved.