Access by calling const {Marker} = await google.maps.importLibrary("marker")
. See
https://developers.google.com/maps/documentation/javascript/libraries.
Named optional arguments
The maximum default z-index that the API will assign to a marker. You may set a higher z-index to bring a marker to the front.
Adds the given listener function to the given event name. Returns an
identifier for this listener that can be used with
google.maps.event.removeListener
.
Binds a View to a Model.
Gets a value.
Get the clickable status of the google.maps.Marker.
Get the mouse cursor type shown on hover.
Get the draggable status of the google.maps.Marker.
Get the icon of the google.maps.Marker. See google.maps.MarkerOptions.icon.
Get the label of the google.maps.Marker. See google.maps.MarkerOptions.label.
Get the map or panaroama the google.maps.Marker is rendered on.
Get the opacity of the google.maps.Marker.
Get the position of the google.maps.Marker.
Get the shape of the google.maps.Marker used for interaction. See google.maps.MarkerOptions.shape and google.maps.MarkerShape.
Get the title of the google.maps.Marker tooltip. See google.maps.MarkerOptions.title.
Get the visibility of the google.maps.Marker.
Get the zIndex of the google.maps.Marker. See google.maps.MarkerOptions.zIndex.
Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.
Sets a value.
Start an animation. Any ongoing animation will be cancelled. Currently
supported animations are: google.maps.Animation.BOUNCE, google.maps.Animation.DROP. Passing in null
will cause any
animation to stop.
Set if the google.maps.Marker is clickable.
If true
, the Marker can be clicked.
Set the mouse cursor type shown on hover.
Mouse cursor type.
Set if the google.maps.Marker is draggable.
If true
, the Marker can be dragged.
Set the icon for the google.maps.Marker. See google.maps.MarkerOptions.icon.
Set the label for the google.maps.Marker. See google.maps.MarkerOptions.label.
The label can either be a character string or a google.maps.MarkerLabel object.
Renders the google.maps.Marker on the specified map or panorama.
If map is set to null
, the marker will be removed.
Set the opacity of the google.maps.Marker.
A number between 0.0, transparent, and 1.0, opaque.
Set the options for the google.maps.Marker.
Set the postition for the google.maps.Marker.
The new position.
Set the shape of the google.maps.Marker used for interaction. See google.maps.MarkerOptions.shape and google.maps.MarkerShape.
Set the title of the google.maps.Marker tooltip. See google.maps.MarkerOptions.title.
Sets a collection of key-value pairs.
Set if the google.maps.Marker is visible.
If true
, the Marker is visible
Set the zIndex of the google.maps.Marker. See google.maps.MarkerOptions.zIndex.
Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.
Removes all bindings.
Generated using TypeDoc
Access by calling
const {Marker} = await google.maps.importLibrary("marker")
. See https://developers.google.com/maps/documentation/javascript/libraries.As of February 21st, 2024, google.maps.Marker is deprecated. Please use google.maps.marker.AdvancedMarkerElement instead. Please see https://developers.google.com/maps/deprecations for deprecation details.