Google Maps JavaScript API v3 Reference

Terakhir diperbarui pada Senin, 5 Mei 2025

Ini adalah indeks semua class, metode, dan antarmuka di Maps JavaScript API versi 3.60.

Untuk informasi tambahan, lihat Catatan Rilis dan Pembuatan Versi.

Klik nama item apa pun untuk melihat dokumentasi mendetail.

Konsep Global

google.maps

namespace google.maps

Metode Statis: importLibrary

Konstanta: version

Setelan

Class setelan

Metode Statis: getInstance

Properti: BetaexperienceIds, fetchAppCheckToken

Antarmuka MapsAppCheckTokenResult

Sistem acara

class peristiwa

Metode Statis: addListener, addListenerOnce, clearInstanceListeners, clearListeners, hasListeners, removeListener, trigger, addDomListener, addDomListenerOnce

Antarmuka MapsEventListener

Metode: remove

Class MVCObject

Metode: addListener, bindTo, get, notify, set, setValues, unbind, unbindAll

Class MVCArray

Metode: clear, forEach, getArray, getAt, getLength, insertAt, pop, push, removeAt, setAt

Acara: insert_at, remove_at, set_at

Antarmuka ErrorEvent

Properti: error

Error

Class MapsNetworkError

Properti: code, endpoint

Class MapsRequestError
class MapsServerError
Konstanta MapsNetworkErrorEndpoint

Konstanta: DIRECTIONS_ROUTE, DISTANCE_MATRIX, ELEVATION_ALONG_PATH, ELEVATION_LOCATIONS, FLEET_ENGINE_GET_DELIVERY_VEHICLE, FLEET_ENGINE_GET_TRIP, FLEET_ENGINE_GET_VEHICLE, FLEET_ENGINE_LIST_DELIVERY_VEHICLES, FLEET_ENGINE_LIST_TASKS, FLEET_ENGINE_LIST_VEHICLES, FLEET_ENGINE_SEARCH_TASKS, GEOCODER_GEOCODE, MAPS_MAX_ZOOM, PLACES_AUTOCOMPLETE, PLACES_DETAILS, PLACES_FIND_PLACE_FROM_PHONE_NUMBER, PLACES_FIND_PLACE_FROM_QUERY, PLACES_GATEWAY, PLACES_GET_PLACE, PLACES_LOCAL_CONTEXT_SEARCH, PLACES_NEARBY_SEARCH, PLACES_SEARCH_TEXT, STREETVIEW_GET_PANORAMA

Maps

Maps

Class MapElement

Properti: center, headingInteractionDisabled, innerMap, internalUsageAttributionIds, mapId, renderingType, tiltInteractionDisabled, zoom

Metode: BetaaddEventListener, BetaremoveEventListener

Peristiwa: gmp-zoomchange

BetaAntarmuka MapElementOptions

Properti: center, headingInteractionDisabled, internalUsageAttributionIds, mapId, renderingType, tiltInteractionDisabled, zoom

Class ZoomChangeEvent
Class peta

Properti: controls, data, mapTypes, overlayMapTypes

Metode: fitBounds, getBounds, getCenter, getClickableIcons, BetagetDatasetFeatureLayer, getDiv, getFeatureLayer, getHeading, getHeadingInteractionEnabled, getInternalUsageAttributionIds, getMapCapabilities, getMapTypeId, getProjection, getRenderingType, getStreetView, getTilt, getTiltInteractionEnabled, getZoom, moveCamera, panBy, panTo, panToBounds, setCenter, setClickableIcons, setHeading, setHeadingInteractionEnabled, setMapTypeId, setOptions, setRenderingType, setStreetView, setTilt, setTiltInteractionEnabled, setZoom

Konstanta: DEMO_MAP_ID

Peristiwa: bounds_changed, center_changed, click, contextmenu, dblclick, drag, dragend, dragstart, heading_changed, idle, isfractionalzoomenabled_changed, mapcapabilities_changed, maptypeid_changed, mousemove, mouseout, mouseover, projection_changed, renderingtype_changed, tilesloaded, tilt_changed, zoom_changed, rightclick

Antarmuka MapOptions

Properti: backgroundColor, cameraControl, cameraControlOptions, center, clickableIcons, colorScheme, controlSize, disableDefaultUI, disableDoubleClickZoom, draggableCursor, draggingCursor, fullscreenControl, fullscreenControlOptions, gestureHandling, heading, headingInteractionEnabled, internalUsageAttributionIds, isFractionalZoomEnabled, keyboardShortcuts, mapId, mapTypeControl, mapTypeControlOptions, mapTypeId, maxZoom, minZoom, noClear, renderingType, restriction, rotateControl, rotateControlOptions, scaleControl, scaleControlOptions, scrollwheel, streetView, streetViewControl, streetViewControlOptions, styles, tilt, tiltInteractionEnabled, zoom, zoomControl, zoomControlOptions, draggable, panControl, panControlOptions

Antarmuka MapTypeStyle

Properti: elementType, featureType, stylers

Antarmuka MapMouseEvent

Properti: domEvent, latLng

Metode: stop

Antarmuka IconMouseEvent

Properti: placeId

Konstanta ColorScheme

Konstanta: DARK, FOLLOW_SYSTEM, LIGHT

Konstanta MapTypeId

Konstanta: HYBRID, ROADMAP, SATELLITE, TERRAIN

Class MapTypeRegistry

Metode: set

Antarmuka MapRestriction

Properti: latLngBounds, strictBounds

Class TrafficLayer

Metode: getMap, setMap, setOptions

Antarmuka TrafficLayerOptions

Properti: autoRefresh, map

Class TransitLayer

Metode: getMap, setMap

Class BicyclingLayer

Metode: getMap, setMap

BetaAntarmuka CameraOptions

Properti: center, heading, tilt, zoom

Antarmuka VisibleRegion

Properti: farLeft, farRight, latLngBounds, nearLeft, nearRight

Konstanta RenderingType

Konstanta: RASTER, UNINITIALIZED, VECTOR

Antarmuka MapCapabilities

Properti: isAdvancedMarkersAvailable, isDataDrivenStylingAvailable, isWebGLOverlayViewAvailable

WebGL

Class WebGLOverlayView

Metode: getMap, onAdd, onContextLost, onContextRestored, onDraw, onRemove, onStateUpdate, requestRedraw, requestStateUpdate, setMap

Antarmuka WebGLDrawOptions

Properti: gl, transformer

Antarmuka WebGLStateOptions

Properti: gl

Antarmuka CoordinateTransformer

Metode: fromLatLngAltitude, getCameraParams

Antarmuka CameraParams

Properti: center, heading, tilt, zoom

Koordinat

Class LatLng

Metode: equals, lat, lng, toJSON, toString, toUrlValue

Antarmuka LatLngLiteral

Properti: lat, lng

LatLngBounds class

Metode: contains, equals, extend, getCenter, getNorthEast, getSouthWest, intersects, isEmpty, toJSON, toSpan, toString, toUrlValue, union

Konstanta: MAX_BOUNDS

Antarmuka LatLngBoundsLiteral

Properti: east, north, south, west

LatLngAltitude class

Properti: altitude, lat, lng

Metode: equals, toJSON

LatLngAltitudeLiteral interface

Properti: altitude, lat, lng

Class titik

Properti: x, y

Metode: equals, toString

Kelas ukuran

Properti: height, width

Metode: equals, toString

Antarmuka padding

Properti: bottom, left, right, top

Antarmuka CircleLiteral

Properti: center, radius

BetaClass Orientation3D

Properti: heading, roll, tilt

Metode: equals, toJSON

BetaAntarmuka Orientation3DLiteral

Properti: heading, roll, tilt

BetaClass Vector3D

Properti: x, y, z

Metode: equals, toJSON

BetaAntarmuka Vector3DLiteral

Properti: x, y, z

Gaya visual berbasis data

Antarmuka FeatureLayer

Properti: BetadatasetId, featureType, isAvailable, style

Metode: addListener

Acara: click, mousemove

Konstanta FeatureType

Konstanta: ADMINISTRATIVE_AREA_LEVEL_1, ADMINISTRATIVE_AREA_LEVEL_2, COUNTRY, BetaDATASET, LOCALITY, POSTAL_CODE, SCHOOL_DISTRICT

typedef FeatureStyleFunction
Antarmuka FeatureStyleFunctionOptions

Properti: feature

Antarmuka FeatureStyleOptions

Properti: fillColor, fillOpacity, strokeColor, strokeOpacity, strokeWeight

Antarmuka fitur

Properti: featureType

Antarmuka PlaceFeature

Properti: placeId

Metode: fetchPlace

Beta