Google Maps JavaScript API v3 Reference

עדכון אחרון: יום שני, 5 במאי 2025

זהו אינדקס של כל המחלקות, השיטות והממשקים בגרסה 3.60 של Maps JavaScript API.

מידע נוסף זמין בהערות הגרסה ובמאמר בנושא ניהול גרסאות.

כדי לראות תיעוד מפורט, לוחצים על שם הפריט.

מושגים גלובליים

google.maps

google.maps namespace

שיטות סטטיות: importLibrary

קבועים: version

הגדרות

הגדרות הכיתה

שיטות סטטיות: getInstance

מאפיינים: BetaexperienceIds, fetchAppCheckToken

ממשק MapsAppCheckTokenResult

מערכת אירועים

event class

Static Methods: addListener, addListenerOnce, clearInstanceListeners, clearListeners, hasListeners, removeListener, trigger, addDomListener, addDomListenerOnce

ממשק MapsEventListener

שיטות: remove

המחלקות MVCObject

‫Methods: addListener, bindTo, get, notify, set, setValues, unbind, unbindAll

MVCArray class

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

אירועים: insert_at, remove_at, set_at

ממשק ErrorEvent

מאפיינים: error

שגיאות

המחלק MapsNetworkError

מאפיינים: code, endpoint

המחלקות MapsRequestError
המחלקות MapsServerError
קבועי MapsNetworkErrorEndpoint

קבועים: 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

מפות

מפות

MapElement class

מאפיינים: center, headingInteractionDisabled, innerMap, internalUsageAttributionIds, mapId, renderingType, tiltInteractionDisabled, zoom

שיטות: BetaaddEventListener, BetaremoveEventListener

אירועים: gmp-zoomchange

בטאממשק MapElementOptions

מאפיינים: center, headingInteractionDisabled, internalUsageAttributionIds, mapId, renderingType, tiltInteractionDisabled, zoom

ZoomChangeEvent class
סוג המפה

מאפיינים: controls, data, mapTypes, overlayMapTypes

‫Methods: 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

קבועים: DEMO_MAP_ID

אירועים: 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

ממשק MapOptions

מאפיינים: 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

ממשק MapTypeStyle

מאפיינים: elementType, featureType, stylers

ממשק MapMouseEvent

מאפיינים: domEvent, latLng

שיטות: stop

ממשק IconMouseEvent

מאפיינים: placeId

קבועים של ערכת צבעים

קבועים: DARK, FOLLOW_SYSTEM, LIGHT

קבועים של MapTypeId

קבועים: HYBRID, ROADMAP, SATELLITE, TERRAIN

המחלקות MapTypeRegistry

שיטות: set

הממשק MapRestriction

מאפיינים: latLngBounds, strictBounds

TrafficLayer class

Methods: getMap, setMap, setOptions

ממשק TrafficLayerOptions

מאפיינים: autoRefresh, map

הסיווג TransitLayer

שיטות: getMap, setMap

BicyclingLayer class

שיטות: getMap, setMap

בטאממשק CameraOptions

מאפיינים: center, heading, tilt, zoom

ממשק VisibleRegion

מאפיינים: farLeft, farRight, latLngBounds, nearLeft, nearRight

קבועים של RenderingType

קבועים: RASTER, UNINITIALIZED, VECTOR

הממשק MapCapabilities

מאפיינים: isAdvancedMarkersAvailable, isDataDrivenStylingAvailable, isWebGLOverlayViewAvailable

WebGL

הסיווג WebGLOverlayView

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

ממשק WebGLDrawOptions

מאפיינים: gl, transformer

ממשק WebGLStateOptions

מאפיינים: gl

ממשק CoordinateTransformer

שיטות: fromLatLngAltitude, getCameraParams

ממשק CameraParams

מאפיינים: center, heading, tilt, zoom

Coordinates

הסיווג LatLng

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

ממשק LatLngLiteral

מאפיינים: lat, lng

המחלקות LatLngBounds

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

קבועים: MAX_BOUNDS

ממשק LatLngBoundsLiteral

מאפיינים: east, north, south, west

המחלקות LatLngAltitude

מאפיינים: altitude, lat, lng

שיטות: equals, toJSON

ממשק LatLngAltitudeLiteral

מאפיינים: altitude, lat, lng

סוג נקודה

מאפיינים: x, y

שיטות: equals, toString

סיווג מידות

מאפיינים: height, width

שיטות: equals, toString

ממשק של מרווחים פנימיים

מאפיינים: bottom, left, right, top

ממשק CircleLiteral

מאפיינים: center, radius

בטאהמחלקות Orientation3D

מאפיינים: heading, roll, tilt

שיטות: equals, toJSON

בטאממשק Orientation3DLiteral

מאפיינים: heading, roll, tilt

בטאהמחלקות Vector3D

מאפיינים: x, y, z

שיטות: equals, toJSON

בטאממשק Vector3DLiteral

מאפיינים: x, y, z

סגנון מבוסס-נתונים

ממשק FeatureLayer

מאפיינים: BetadatasetId, featureType, isAvailable, style

שיטות: addListener

אירועים: click, mousemove

קבועים של FeatureType

קבועים: ADMINISTRATIVE_AREA_LEVEL_1, ADMINISTRATIVE_AREA_LEVEL_2, COUNTRY, BetaDATASET, LOCALITY, POSTAL_CODE, SCHOOL_DISTRICT

הגדרת סוג FeatureStyleFunction
ממשק FeatureStyleFunctionOptions

מאפיינים: feature

ממשק FeatureStyleOptions

מאפיינים: fillColor, fillOpacity, strokeColor, strokeOpacity, strokeWeight

ממשק התכונה

מאפיינים: featureType

ממשק PlaceFeature

מאפיינים: placeId

שיטות: fetchPlace

בטאממשק DatasetFeature

מאפיינים: datasetAttributes, datasetId

ממשק FeatureMouseEvent

מאפיינים: features

אמצעי בקרה

ממשק CameraControlOptions

מאפיינים: position

ממשק FullscreenControlOptions

מאפיינים: position

ממשק MapTypeControlOptions

מאפיינים: mapTypeIds, position, style

קבועי MapTypeControlStyle

קבועים: DEFAULT, DROPDOWN_MENU, HORIZONTAL_BAR

ממשק MotionTrackingControlOptions

מאפיינים: position

ממשק PanControlOptions

מאפיינים: position

ממשק RotateControlOptions

מאפיינים: position

ממשק ScaleControlOptions

מאפיינים: style

קבועים של ScaleControlStyle

קבועים: DEFAULT

ממשק StreetViewControlOptions

מאפיינים: position, sources

ממשק ZoomControlOptions

מאפיינים: position

קבועים של ControlPosition

קבועים: BLOCK_END_INLINE_CENTER, BLOCK_END_INLINE_END, BLOCK_END_INLINE_START, BLOCK_START_INLINE_CENTER, BLOCK_START_INLINE_END, BLOCK_START_INLINE_START, BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, INLINE_END_BLOCK_CENTER, INLINE_END_BLOCK_END, INLINE_END_BLOCK_START, INLINE_START_BLOCK_CENTER, INLINE_START_BLOCK_END, INLINE_START_BLOCK_START, LEFT_BOTTOM, LEFT_CENTER, LEFT_TOP, RIGHT_BOTTOM, RIGHT_CENTER, RIGHT_TOP, TOP_CENTER, TOP_LEFT, TOP_RIGHT

ספריית הגיאומטריה

encoding class

שיטות סטטיות: decodePath, encodePath

spherical class

שיטות סטטיות: computeArea, computeDistanceBetween, computeHeading, computeLength, computeOffset, computeOffsetOrigin, computeSignedArea, interpolate

poly class

שיטות סטטיות: containsLocation, isLocationOnEdge

ציור על המפה

סמנים מתקדמים

המחלקות AdvancedMarkerElement

מאפיינים: collisionBehavior, gmpClickable, gmpDraggable, map, position, title, zIndex, element, content

Methods: addEventListener, addListener, BetaremoveEventListener

אירועים: click, drag, dragend, dragstart, Betagmp-click

ממשק AdvancedMarkerElementOptions

מאפיינים: collisionBehavior, content, BetagmpClickable, gmpDraggable, map, position, title, zIndex

בטאAdvancedMarkerClickEvent class
המחלקות PinElement

מאפיינים: background, borderColor, element, glyph, glyphColor, scale

שיטות: BetaaddEventListener, BetaremoveEventListener

ממשק PinElementOptions

מאפיינים: background, borderColor, glyph, glyphColor, scale

חלון המידע

InfoWindow class

מאפיינים: isOpen

‫Methods: close, focus, getContent, getHeaderContent, getHeaderDisabled, getPosition, getZIndex, open, setContent, setHeaderContent, setHeaderDisabled, setOptions, setPosition, setZIndex

אירועים: close, closeclick, content_changed, domready, headercontent_changed, headerdisabled_changed, position_changed, visible, zindex_changed

ממשק InfoWindowOptions

מאפיינים: ariaLabel, content, disableAutoPan, headerContent, headerDisabled, maxWidth, minWidth, pixelOffset, position, zIndex

ממשק InfoWindowOpenOptions

מאפיינים: anchor, map, shouldFocus

מצולעים

מחלקת קו פוליגוני

‫Methods: getDraggable, getEditable, getMap, getPath, getVisible, setDraggable, setEditable, setMap, setOptions, setPath, setVisible

אירועים: click, contextmenu, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, rightclick

ממשק PolylineOptions

מאפיינים: clickable, draggable, editable, geodesic, icons, map, path, strokeColor, strokeOpacity, strokeWeight, visible, zIndex

ממשק IconSequence

מאפיינים: fixedRotation, icon, offset, repeat

סיווג פוליגונים

‫Methods: getDraggable, getEditable, getMap, getPath, getPaths, getVisible, setDraggable, setEditable, setMap, setOptions, setPath, setPaths, setVisible

אירועים: click, contextmenu, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, rightclick

ממשק PolygonOptions

מאפיינים: clickable, draggable, editable, fillColor, fillOpacity, geodesic, map, paths, strokeColor, strokeOpacity, strokePosition, strokeWeight, visible, zIndex

ממשק PolyMouseEvent

מאפיינים: edge, path, vertex

Rectangle class

‫Methods: getBounds, getDraggable, getEditable, getMap, getVisible, setBounds, setDraggable, setEditable, setMap, setOptions, setVisible

אירועים: bounds_changed, click, contextmenu, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, rightclick

ממשק RectangleOptions

מאפיינים: bounds, clickable, draggable, editable, fillColor, fillOpacity, map, strokeColor, strokeOpacity, strokePosition, strokeWeight, visible, zIndex

כיתה במעגל

‫Methods: getBounds, getCenter, getDraggable, getEditable, getMap, getRadius, getVisible, setCenter, setDraggable, setEditable, setMap, setOptions, setRadius, setVisible

אירועים: center_changed, click, dblclick, drag, dragend, dragstart, mousedown, mousemove, mouseout, mouseover, mouseup, radius_changed, rightclick

ממשק CircleOptions

מאפיינים: center, clickable, draggable, editable, fillColor, fillOpacity, map, radius, strokeColor, strokeOpacity, strokePosition, strokeWeight, visible, zIndex

קבועים של StrokePosition

קבועים: CENTER, INSIDE, OUTSIDE

נתונים

סיווג נתונים

‫Methods: add, addGeoJson, contains, forEach, getControlPosition, getControls, getDrawingMode, getFeatureById, getMap, getStyle, loadGeoJson, overrideStyle, remove, revertStyle, setControlPosition, setControls, setDrawingMode, setMap, setStyle, toGeoJson

אירועים: addfeature, click, contextmenu, dblclick, mousedown, mouseout, mouseover, mouseup, removefeature, removeproperty, setgeometry, setproperty, rightclick

הממשק Data.DataOptions

מאפיינים: controlPosition, controls, drawingMode, featureFactory, map, style

הממשק Data.GeoJsonOptions

מאפיינים: idPropertyName

הממשק Data.StyleOptions

מאפיינים: animation, clickable, cursor, draggable, editable, fillColor, fillOpacity, icon, icons, label, opacity, shape, strokeColor, strokeOpacity, strokeWeight, title, visible, zIndex

Data.StylingFunction typedef
Data.Feature class

‫Methods: forEachProperty, getGeometry, getId, getProperty, removeProperty, setGeometry, setProperty, toGeoJson

אירועים: removeproperty, setgeometry, setproperty

ממשק Data.FeatureOptions

מאפיינים: geometry, id, properties

ממשק Data.Geometry

שיטות: forEachLatLng, getType

הסיווג Data.Point

Methods: forEachLatLng, get, getType

‫Data.MultiPoint class

Methods: forEachLatLng, getArray, getAt, getLength, getType

הסיווג Data.LineString

Methods: forEachLatLng, getArray, getAt, getLength, getType

Data.MultiLineString class

Methods: forEachLatLng, getArray, getAt, getLength, getType

‫Data.LinearRing class

Methods: forEachLatLng, getArray, getAt, getLength, getType

‫Data.Polygon class

Methods: forEachLatLng, getArray, getAt, getLength, getType

‫Data.MultiPolygon class

Methods: forEachLatLng, getArray, getAt, getLength, getType

‫Data.GeometryCollection class

Methods: forEachLatLng, getArray, getAt, getLength, getType

הממשק Data.MouseEvent

מאפיינים: feature

ממשק Data.AddFeatureEvent

מאפיינים: feature

ממשק Data.RemoveFeatureEvent

מאפיינים: feature

ממשק Data.SetGeometryEvent

מאפיינים: feature, newGeometry, oldGeometry

ממשק Data.SetPropertyEvent

מאפיינים: feature, name, newValue, oldValue

ממשק Data.RemovePropertyEvent

מאפיינים: feature, name, oldValue

רכיבי DOM

המחלקות OverlayView

שיטות סטטיות: preventMapHitsAndGesturesFrom, preventMapHitsFrom

‫Methods: draw, getMap, getPanes, getProjection, onAdd, onRemove, setMap

ממשק MapPanes

מאפיינים: floatPane, mapPane, markerLayer, overlayLayer, overlayMouseTarget

ממשק MapCanvasProjection

Methods: fromContainerPixelToLatLng, fromDivPixelToLatLng, fromLatLngToContainerPixel, fromLatLngToDivPixel, getVisibleRegion, getWorldWidth

KML

המחלקות KmlLayer

‫Methods: getDefaultViewport, getMap, getMetadata, getStatus, getUrl, getZIndex, setMap, setOptions, setUrl, setZIndex

אירועים: click, defaultviewport_changed, status_changed

ממשק KmlLayerOptions

מאפיינים: clickable, map, preserveViewport, screenOverlays, suppressInfoWindows, url, zIndex

ממשק KmlLayerMetadata

מאפיינים: author, description, hasScreenOverlays, name, snippet

KmlLayerStatus constants

קבועים: DOCUMENT_NOT_FOUND, DOCUMENT_TOO_LARGE, FETCH_ERROR, INVALID_DOCUMENT, INVALID_REQUEST, LIMITS_EXCEEDED, OK, TIMED_OUT, UNKNOWN

ממשק KmlMouseEvent

מאפיינים: featureData, latLng, pixelOffset

ממשק KmlFeatureData

מאפיינים: author, description, id, infoWindowHtml, name, snippet

ממשק KmlAuthor

מאפיינים: email, name, uri

שכבות-על לתמונות

ממשק MapType

מאפיינים: alt, maxZoom, minZoom, name, projection, radius, tileSize

שיטות: getTile, releaseTile

ממשק הקרנה

שיטות: fromLatLngToPoint, fromPointToLatLng

הסיווג ImageMapType

מאפיינים: alt, maxZoom, minZoom, name, projection, radius, tileSize

Methods: getOpacity, getTile, releaseTile, setOpacity

אירועים: tilesloaded

ממשק ImageMapTypeOptions

מאפיינים: alt, getTileUrl, maxZoom, minZoom, name, opacity, tileSize

המחלקות GroundOverlay

Methods: getBounds, getMap, getOpacity, getUrl, setMap, setOpacity

אירועים: click, dblclick

ממשק GroundOverlayOptions

מאפיינים: clickable, map, opacity

המחלקות StyledMapType

מאפיינים: alt, maxZoom, minZoom, name, projection, radius, tileSize

שיטות: getTile, releaseTile

ממשק StyledMapTypeOptions

מאפיינים: alt, maxZoom, minZoom, name

ספריית שרטוטים

המחלקות DrawingManager

Methods: getDrawingMode, getMap, setDrawingMode, setMap, setOptions

אירועים: circlecomplete, markercomplete, overlaycomplete, polygoncomplete, polylinecomplete, rectanglecomplete

ממשק DrawingManagerOptions

מאפיינים: circleOptions, drawingControl, drawingControlOptions, drawingMode, map, markerOptions, polygonOptions, polylineOptions, rectangleOptions

ממשק DrawingControlOptions

מאפיינים: drawingModes, position

ממשק OverlayCompleteEvent

מאפיינים: overlay, type

קבועים של OverlayType

קבועים: CIRCLE, MARKER, POLYGON, POLYLINE, RECTANGLE

מפות חום

המחלקות HeatmapLayer

Methods: getData, getMap, setData, setMap, setOptions

ממשק HeatmapLayerOptions

מאפיינים: data, dissipating, gradient, map, maxIntensity, opacity, radius

ממשק WeightedLocation

מאפיינים: location, weight

זום מקסימלי

MaxZoomService class

שיטות: getMaxZoomAtLatLng

ממשק MaxZoomResult

מאפיינים: status, zoom

קבועים של MaxZoomStatus

קבועים: ERROR, OK

סמן (גרסה קודמת)

סמן כיתה

‫Methods: getAnimation, getClickable, getCursor, getDraggable, getIcon, getLabel, getMap, getOpacity, getPosition, getShape, getTitle, getVisible, getZIndex, setAnimation, setClickable, setCursor, setDraggable, setIcon, setLabel, setMap, setOpacity, setOptions, setPosition, setShape, setTitle, setVisible, setZIndex

קבועים: MAX_ZINDEX

אירועים: animation_changed, click, clickable_changed, contextmenu, cursor_changed, dblclick, drag, dragend, draggable_changed, dragstart, flat_changed, icon_changed, mousedown, mouseout, mouseover, mouseup, position_changed, shape_changed, title_changed, visible_changed, zindex_changed, rightclick

MarkerOptions interface

מאפיינים: anchorPoint, animation, clickable, crossOnDrag, cursor, draggable, icon, label, map, opacity, optimized, position, shape, title, visible, zIndex, BetacollisionBehavior

קבועים של CollisionBehavior

קבועים: OPTIONAL_AND_HIDES_LOWER_PRIORITY, REQUIRED, REQUIRED_AND_HIDES_OPTIONAL

ממשק סמלים

מאפיינים: anchor, labelOrigin, origin, scaledSize, size, url

ממשק MarkerLabel

מאפיינים: className, color, fontFamily, fontSize, fontWeight, text

ממשק MarkerShape

מאפיינים: coords, type

ממשק סמלים

מאפיינים: anchor, fillColor, fillOpacity, labelOrigin, path, rotation, scale, strokeColor, strokeOpacity, strokeWeight

קבועים של SymbolPath

קבועים: BACKWARD_CLOSED_ARROW, BACKWARD_OPEN_ARROW, CIRCLE, FORWARD_CLOSED_ARROW, FORWARD_OPEN_ARROW

קבועים של אנימציה

קבועים: BOUNCE, DROP

Street View

Rendering

המחלקות StreetViewPanorama

מאפיינים: controls

‫Methods: focus, getLinks, getLocation, getMotionTracking, getPano, getPhotographerPov, getPosition, getPov, getStatus, getVisible, getZoom, registerPanoProvider, setLinks, setMotionTracking, setOptions, setPano, setPosition, setPov, setVisible, setZoom

אירועים: closeclick, pano_changed, position_changed, pov_changed, resize, status_changed, visible_changed, zoom_changed

ממשק StreetViewPanoramaOptions

מאפיינים: addressControl, addressControlOptions, clickToGo, controlSize, disableDefaultUI, disableDoubleClickZoom, enableCloseButton, fullscreenControl, fullscreenControlOptions, imageDateControl, linksControl, motionTracking, motionTrackingControl, motionTrackingControlOptions, panControl, panControlOptions, pano, position, pov, scrollwheel, showRoadLabels, visible, zoom, zoomControl, zoomControlOptions

ממשק StreetViewAddressControlOptions

מאפיינים: position

ממשק PanoProviderOptions

מאפיינים: cors

ממשק StreetViewTileData

מאפיינים: centerHeading,