@JsType(isNative=true, namespace="<global>", name="Object") public class MapOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MapOptions.Builder
The Class Builder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAttributionControl()
Gets Whether the attribution control is added to the map by default.
|
boolean |
getBounceAtZoomLimits()
Gets whether the map zooms beyond min/max zoom and then bounce back when pinch-zooming.
|
boolean |
getBoxZoom()
Gets Whether the map can be zoomed to a rectangular area specified by dragging the mouse while pressing shift.
|
LatLng |
getCenter()
Gets the Initial geographical center of the map.
|
boolean |
getClosePopupOnClick()
Gets whether the popups close when user clicks the map.
|
boolean |
getDoubleClickZoom()
Gets Whether the map can be zoomed in by double clicking on it and zoomed out by double clicking while holding shift.
|
boolean |
getDragging()
Gets Whether the map be draggable with mouse/touch or not.
|
boolean |
getFadeAnimation()
Gets Whether the tile fade animation is enabled.
|
boolean |
getInertia()
Gets whether the 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.
|
double |
getInertiaDeceleration()
Gets the rate with which the inertial movement slows down, in pixels/second2.
|
double |
getInertiaMaxSpeed()
Gets the Max speed of the inertial movement, in pixels/second.
|
boolean |
getKeyboard()
Gets whether the map id focusable and allows users to navigate the map with keyboard arrows and +/- keys.
|
double |
getKeyboardPanDelta() |
double |
getKeyboardPanOffset()
Gets Amount of pixels to pan when pressing an arrow key.
|
Layer[] |
getLayers()
Gets the Layers that will be added to the map initially.
|
boolean |
getMarkerZoomAnimation()
Gets Whether markers animate their zoom with the zoom animation, if disabled they will disappear for the length of the animation.
|
LatLngBounds |
getMaxBounds()
Gets the bounds that restricts the view if the option is set
default null
|
double |
getMaxBoundsViscosity() |
double |
getMaxZoom()
Gets Maximum zoom level of the map.
|
double |
getMinZoom()
Gets Minimum zoom level of the map.
|
boolean |
getPreferCanvas() |
Renderer |
getRenderer() |
boolean |
getScrollWheelZoom()
Gets Whether the map can be zoomed by using the mouse wheel.
|
boolean |
getTap()
Gets mobile hacks for supporting instant taps (fixing 200ms click delay on iOS/Android) and touch holds (fired as contextmenu events).
|
double |
getTapTolerance()
Gets The max number of pixels a user can shift his finger during touch for it to be considered a valid tap.
|
boolean |
getTouchZoom()
Gets Whether the map can be zoomed by touch-dragging with two fingers.
|
boolean |
getTrackResize()
Gets Whether the map automatically handles browser window resize to update itself.
|
double |
getTransform3DLimit() |
double |
getWheelDebounceTime() |
double |
getWheelPxPerZoomLevel() |
boolean |
getWorldCopyJump()
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.
|
double |
getZoom()
Gets Initial map zoom.
|
boolean |
getZoomAnimation()
Gets Whether the tile zoom animation is enabled.
|
double |
getZoomAnimationThreshold()
Gets the value that will disable zoom animation if exceeded
default 4
|
boolean |
getZoomControl()
Gets Whether the zoom control is added to the map by default.
|
double |
getZoomDelta() |
double |
getZoomSnap() |
@JsOverlay public final LatLng getCenter()
@JsOverlay public final double getZoom()
@JsOverlay public final Layer[] getLayers()
@JsOverlay public final double getMinZoom()
@JsOverlay public final double getMaxZoom()
@JsOverlay public final LatLngBounds getMaxBounds()
@JsOverlay public final boolean getDragging()
@JsOverlay public final boolean getTouchZoom()
@JsOverlay public final boolean getScrollWheelZoom()
@JsOverlay public final boolean getDoubleClickZoom()
@JsOverlay public final boolean getBoxZoom()
@JsOverlay public final boolean getTap()
@JsOverlay public final double getTapTolerance()
@JsOverlay public final boolean getTrackResize()
@JsOverlay public final boolean getWorldCopyJump()
@JsOverlay public final boolean getClosePopupOnClick()
@JsOverlay public final boolean getBounceAtZoomLimits()
@JsOverlay public final boolean getKeyboard()
@JsOverlay public final double getKeyboardPanOffset()
@JsOverlay public final boolean getInertia()
@JsOverlay public final double getInertiaDeceleration()
@JsOverlay public final double getInertiaMaxSpeed()
@JsOverlay public final boolean getZoomControl()
@JsOverlay public final boolean getAttributionControl()
@JsOverlay public final boolean getFadeAnimation()
@JsOverlay public final boolean getZoomAnimation()
@JsOverlay public final double getZoomAnimationThreshold()
@JsOverlay public final boolean getMarkerZoomAnimation()
@JsOverlay public final boolean getPreferCanvas()
@JsOverlay public final Renderer getRenderer()
@JsOverlay public final double getKeyboardPanDelta()
@JsOverlay public final double getWheelDebounceTime()
@JsOverlay public final double getWheelPxPerZoomLevel()
@JsOverlay public final double getZoomSnap()
@JsOverlay public final double getZoomDelta()
@JsOverlay public final double getMaxBoundsViscosity()
@JsOverlay public final double getTransform3DLimit()
Copyright © 2018 G-Widgets. All rights reserved.