Package | Description |
---|---|
com.gwidgets.api.leaflet.options |
Modifier and Type | Method and Description |
---|---|
MapOptions.Builder |
MapOptions.Builder.attributionControl(java.lang.Boolean attributionControl)
Whether the attribution control is added to the map by default.
|
MapOptions.Builder |
MapOptions.Builder.bounceAtZoomLimits(java.lang.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(java.lang.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(java.lang.Boolean closePopupOnClick)
Set it to false if you don't want popups to close when user clicks the map.
|
MapOptions.Builder |
MapOptions.Builder.doubleClickZoom(java.lang.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(java.lang.Boolean dragging)
Whether the map is draggable with mouse/touch or not.
|
MapOptions.Builder |
MapOptions.Builder.fadeAnimation(java.lang.Boolean fadeAnimation)
Whether the tile fade animation is enabled.
|
MapOptions.Builder |
MapOptions.Builder.inertia(java.lang.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(java.lang.Number inertiaDeceleration)
The rate with which the inertial movement slows down, in pixels/second2.
|
MapOptions.Builder |
MapOptions.Builder.inertiaMaxSpeed(java.lang.Number inertiaMaxSpeed)
Max speed of the inertial movement, in pixels/second.
|
MapOptions.Builder |
MapOptions.Builder.inertiaThreshold(java.lang.Number 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(java.lang.Boolean keyboard)
Makes the map focusable and allows users to navigate the map with keyboard arrows and +/- keys.
|
MapOptions.Builder |
MapOptions.Builder.keyboardPanOffset(java.lang.Number keyboardPanOffset)
Amount of pixels to pan when pressing an arrow key.
|
MapOptions.Builder |
MapOptions.Builder.keyboardZoomOffset(java.lang.Number keyboardZoomOffset)
Number of zoom levels to change when pressing + or - key.
|
MapOptions.Builder |
MapOptions.Builder.layers(ILayer[] layers)
Layers that will be added to the map initially.
|
MapOptions.Builder |
MapOptions.Builder.markerZoomAnimation(java.lang.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.maxZoom(java.lang.Number maxZoom)
Maximum zoom level of the map.
|
MapOptions.Builder |
MapOptions.Builder.scrollWheelZoom(java.lang.Boolean scrollWheelZoom)
Whether the map can be zoomed by using the mouse wheel.
|
MapOptions.Builder |
MapOptions.Builder.tap(java.lang.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(java.lang.Number 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(java.lang.Boolean touchZoom)
Whether the map can be zoomed by touch-dragging with two fingers.
|
MapOptions.Builder |
MapOptions.Builder.trackResize(java.lang.Boolean trackResize)
Whether the map automatically handles browser window resize to update itself.
|
MapOptions.Builder |
MapOptions.Builder.worldCopyJump(java.lang.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(java.lang.Boolean zoomAnimation)
Whether the tile zoom animation is enabled.
|
MapOptions.Builder |
MapOptions.Builder.zoomAnimationThreshold(java.lang.Number zoomAnimationThreshold)
Won't animate zoom if the zoom difference exceeds this value.
|
MapOptions.Builder |
MapOptions.Builder.zoomControl(java.lang.Boolean zoomControl)
Whether the zoom control is added to the map by default.
|