Map3DElement class
google.maps.maps3d
. Map3DElement
class
Map3DElement is an HTML interface for the 3D Map view.
Custom element: <gmp-map-3d center="lat,lng,altitude" default-labels-disabled default-ui-disabled heading="number" max-altitude="number" max-heading="number" max-tilt="number" min-altitude="number" min-heading="number" min-tilt="number" range="number" roll="number" tilt="number"></gmp-map-3d>
This class extends HTMLElement
.
This class implements Map3DElementOptions
.
Access by calling const {Map3DElement} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Constructor
Map3DElement([options])
-
options
:Map3DElementOptions optional
Properties
LatLngBounds
| LatLngBoundsLiteral
optional
-180
and 180
, respectively. For longitude-only bounds use north and south latitudes of 90
and -90
, respectively. LatLngAltitude
| LatLngAltitudeLiteral
optional
range
field affects the camera's distance from the map center. If not set, defaults to {lat: 0, lng: 0, altitude: 63170000}
. 63170000 meters is a maximum allowed altitude (Earth radius multiplied by 10).-
<gmp-map-3d center="lat,lng,altitude"></gmp-map-3d>
boolean optional
false
true
, default map labels aren't rendered.-
<gmp-map-3d default-labels-disabled></gmp-map-3d>
boolean optional
false
true
, all default UI buttons are disabled. Does not disable the keyboard and gesture controls.-
<gmp-map-3d default-ui-disabled></gmp-map-3d>
number optional
-
<gmp-map-3d heading="number"></gmp-map-3d>
number optional
0
and 63170000
meters (Earth radius multiplied by 10).-
<gmp-map-3d max-altitude="number"></gmp-map-3d>
number optional
0
and 360
degrees. minHeading
and maxHeading
represent an interval of <= 360
degrees in which heading gestures will be allowed. minHeading = 180
and maxHeading = 90
will allow heading in [0, 90]
and heading in [180, 360]
. minHeading = 90
and maxHeading = 180
will allow heading in [90, 180]
.-
<gmp-map-3d max-heading="number"></gmp-map-3d>
number optional
0
and 90
degrees.-
<gmp-map-3d max-tilt="number"></gmp-map-3d>
number optional
0
and 63170000
meters (Earth radius multiplied by 10).-
<gmp-map-3d min-altitude="number"></gmp-map-3d>
number optional
0
and 360
degrees. minHeading
and maxHeading
represent an interval of <= 360
degrees in which heading gestures will be allowed. minHeading = 180
and maxHeading = 90
will allow heading in [0, 90]
and heading in [180, 360]
. minHeading = 90
and maxHeading = 180
will allow heading in [90, 180]
.-
<gmp-map-3d min-heading="number"></gmp-map-3d>
number optional
0
and 90
degrees.-
<gmp-map-3d min-tilt="number"></gmp-map-3d>
number optional
-
<gmp-map-3d range="number"></gmp-map-3d>
number optional
-
<gmp-map-3d roll="number"></gmp-map-3d>
number optional
180
degrees.-
<gmp-map-3d tilt="number"></gmp-map-3d>
Methods
addEventListener(type, listener[, options])
-
type
:string
A case-sensitive string representing the event type to listen for. -
listener
:EventListener | EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent method -
options
:boolean| AddEventListenerOptions optional
See options . Custom events only supportcapture
andpassive
.
void
flyCameraAround(options)
-
options
:FlyAroundAnimationOptions
By default, the camera orbits clockwise. If given a negative number for rounds, the camera will orbit in a counter-clockwise direction instead.
The method is asynchronous because animations can only start after the map has loaded a minimum amount. The method returns once the animation has been started.
If the number of rounds is zero, no spin will occur, and the animation will complete immediately after it starts.
flyCameraTo(options)
-
options
:FlyToAnimationOptions
The method is asynchronous because animations can only start after the map has loaded a minimum amount. The method returns once the animation has been started.
removeEventListener(type, listener[, options])
-
type
:string
A string which specifies the type of event for which to remove an event listener. -
listener
:EventListener | EventListenerObject
The event listener of the event handler to remove from the event target. -
options
:boolean| EventListenerOptions optional
See options .
void
stopCameraAnimation()
The method is asynchronous because animations can only start or stop after the map has loaded a minimum amount. The method returns once the animation has stopped.
Events
function(animationEndEvent)
-
animationEndEvent
:Event
function(centerChangeEvent)
-
centerChangeEvent
:Event
function(clickEvent)
-
clickEvent
:LocationClickEvent | PlaceClickEvent
function(headingChangeEvent)
-
headingChangeEvent
:Event
function(rangeChangeEvent)
-
rangeChangeEvent
:Event
function(rollChangeEvent)
-
rollChangeEvent
:Event
function(steadyChangeEvent)
-
steadyChangeEvent
:SteadyChangeEvent
Map3DElement
changes.function(tiltChangeEvent)
-
tiltChangeEvent
:Event
Map3DElementOptions interface
google.maps.maps3d
. Map3DElementOptions
interface
Map3DElementOptions object used to define the properties that can be set on a Map3DElement.
Properties |
|
---|---|
bounds
optional
|
Type:
LatLngBounds
| LatLngBoundsLiteral
optional
|
center
optional
|
Type:
LatLngAltitude
| LatLngAltitudeLiteral
optional
|
defaultLabelsDisabled
optional
|
Type:
boolean optional
|
defaultUIDisabled
optional
|
Type:
boolean optional
|
heading
optional
|
Type:
number optional
|
maxAltitude
optional
|
Type:
number optional
|
maxHeading
optional
|
Type:
number optional
|
maxTilt
optional
|
Type:
number optional
|
minAltitude
optional
|
Type:
number optional
|
minHeading
optional
|
Type:
number optional
|
minTilt
optional
|
Type:
number optional
|
range
optional
|
Type:
number optional
|
roll
optional
|
Type:
number optional
|
tilt
optional
|
Type:
number optional
|
FlyAroundAnimationOptions interface
google.maps.maps3d
. FlyAroundAnimationOptions
interface
Customization options for the FlyCameraAround Animation.
Properties |
|
---|---|
camera
|
Type:
CameraOptions
The central point at which the camera should look at during the orbit animation. Note that the map heading will change as the camera orbits around this center point.
|
durationMillis
optional
|
Type:
number optional
The duration of the animation in milliseconds. This is the total duration of the animation, not the duration of a single rotation.
|
rounds
optional
|
Type:
number optional
The number of rounds to rotate around the center in the given duration. This controls the overall speed of rotation. Passing a negative number to rounds will cause the camera to rotate in a counter-clockwise direction instead of the default clockwise direction.
|
FlyToAnimationOptions interface
google.maps.maps3d
. FlyToAnimationOptions
interface
Customization options for the FlyCameraTo Animation.
Properties |
|
---|---|
endCamera
|
Type:
CameraOptions
The location at which the camera should point at the end of the animation.
|
durationMillis
optional
|
Type:
number optional
The duration of the animation in milliseconds. A duration of 0 will teleport the camera straight to the end position.
|
CameraOptions interface
google.maps.maps3d
. CameraOptions
interface
CameraOptions object used to define the properties that can be set on a camera object. The camera object can be anything that has a camera position, e.g. a current map state, or a future requested animation state.
Properties |
|
---|---|
center
optional
|
Type:
LatLngAltitude
| LatLngAltitudeLiteral
optional
|
heading
optional
|
Type:
number optional
|
range
optional
|
Type:
number optional
|
roll
optional
|
Type:
number optional
|
tilt
optional
|
Type:
number optional
|
SteadyChangeEvent class
google.maps.maps3d
. SteadyChangeEvent
class
This event is created from monitoring a steady state of Map3DElement
. This event bubbles up through the DOM tree.
This class extends Event
.
Access by calling const {SteadyChangeEvent} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Properties |
|
---|---|
isSteady
|
Type:
boolean
Indicates whether Map3DElement is steady (i.e. all rendering for the current scene has completed) or not.
|
LocationClickEvent class
google.maps.maps3d
. LocationClickEvent
class
This event is created from clicking a Map3DElement.
This class extends Event
.
Access by calling const {LocationClickEvent} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Properties |
|
---|---|
position
|
Type:
LatLngAltitude
optional
The latitude/longitude/altitude that was below the cursor when the event occurred. Please note, that at coarser levels, less accurate data will be returned. Also, sea floor elevation may be returned for the altitude value when clicking at the water surface from higher camera positions. This event bubbles up through the DOM tree.
|
PlaceClickEvent class
google.maps.maps3d
. PlaceClickEvent
class
This event is created from clicking a Map3DElement.
This class extends LocationClickEvent
.
Access by calling const {PlaceClickEvent} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Properties |
|
---|---|
placeId
|
Type:
string
The place id of the map feature.
|
Inherited:
position
|
Methods |
|
---|---|
fetchPlace
|
fetchPlace()
Parameters: None
Fetches a
Place
for this place id. In the resulting Place
object, the id property will be populated. Additional fields can be subsequently requested via Place.fetchFields()
subject to normal Places API enablement and billing. The promise is rejected if there was an error fetching the Place
. |
Marker3DElement class
google.maps.maps3d
. Marker3DElement
class
Shows a position on a 3D map. Note that the position
must be set for the Marker3DElement
to display.
Custom element: <gmp-marker-3d altitude-mode="absolute" collision-behavior="required" draws-when-occluded extruded label="string" size-preserved z-index="number"></gmp-marker-3d>
This class extends HTMLElement
.
This class implements Marker3DElementOptions
.
Access by calling const {Marker3DElement} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Constructor
Marker3DElement([options])
-
options
:Marker3DElementOptions optional
Marker3DElement
with the options specified.Properties
AltitudeMode
optional
AltitudeMode.CLAMP_TO_GROUND
-
<gmp-marker-3d altitude-mode="absolute"></gmp-marker-3d>
-
<gmp-marker-3d altitude-mode="clamp-to-ground"></gmp-marker-3d>
-
<gmp-marker-3d altitude-mode="relative-to-ground"></gmp-marker-3d>
-
<gmp-marker-3d altitude-mode="relative-to-mesh"></gmp-marker-3d>
CollisionBehavior
optional
CollisionBehavior.REQUIRED
-
<gmp-marker-3d collision-behavior="required"></gmp-marker-3d>
-
<gmp-marker-3d collision-behavior="required-and-hides-optional"></gmp-marker-3d>
-
<gmp-marker-3d collision-behavior="optional-and-hides-lower-priority"></gmp-marker-3d>
boolean optional
false
-
<gmp-marker-3d draws-when-occluded></gmp-marker-3d>
boolean optional
false
altitudeMode
must be either RELATIVE_TO_GROUND
or ABSOLUTE
.-
<gmp-marker-3d extruded></gmp-marker-3d>
string optional
-
<gmp-marker-3d label="string"></gmp-marker-3d>
LatLngLiteral
| LatLngAltitude
| LatLngAltitudeLiteral
optional
boolean optional
false
-
<gmp-marker-3d size-preserved></gmp-marker-3d>
number optional
-
<gmp-marker-3d z-index="number"></gmp-marker-3d>
Slots |
|
---|---|
default
|
Any custom elements directly added to the
Marker3DElement
will be slotted, however only elements of HTMLImageElement
, SVGElement
and PinElement
types will be used for drawing markers, other elements will be ignored.HTMLImageElement
and SVGElement
must be wrapped in <template>
element before assigning to the Marker3DElement
's default slot.Images and SVGs are currently rasterized before they are rendered in the 3D scene, so custom HTML embedded into SVG or CSS classes added to images won't be applied and might not be reflected when markers are displayed on the screen. |
Methods
addEventListener(type, listener[, options])
-
type
:string
A case-sensitive string representing the event type to listen for. -
listener
:EventListener | EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent method -
options
:boolean| AddEventListenerOptions optional
See options . Custom events only supportcapture
andpassive
.
void
removeEventListener(type, listener[, options])
-
type
:string
A string which specifies the type of event for which to remove an event listener. -
listener
:EventListener | EventListenerObject
The event listener of the event handler to remove from the event target. -
options
:boolean| EventListenerOptions optional
See options .
void
Marker3DElementOptions interface
google.maps.maps3d
. Marker3DElementOptions
interface
Marker3DElementOptions object used to define the properties that can be set on a Marker3DElement.
Properties |
|
---|---|
altitudeMode
optional
|
Type:
AltitudeMode
optional
|
collisionBehavior
optional
|
Type:
CollisionBehavior
optional
|
drawsWhenOccluded
optional
|
Type:
boolean optional
|
extruded
optional
|
Type:
boolean optional
|
label
optional
|
Type:
string optional
|
position
optional
|
Type:
LatLngLiteral
| LatLngAltitude
| LatLngAltitudeLiteral
optional
|
sizePreserved
optional
|
Type:
boolean optional
|
zIndex
optional
|
Type:
number optional
|
Marker3DInteractiveElement class
google.maps.maps3d
. Marker3DInteractiveElement
class
Shows a position on a 3D map. Note that the position
must be set for the Marker3DInteractiveElement
to display. Unlike Marker3DElement
, Marker3DInteractiveElement
receives a gmp-click
event.
Custom element: <gmp-marker-3d-interactive></gmp-marker-3d-interactive>
This class extends Marker3DElement
.
This class implements Marker3DInteractiveElementOptions
.
Access by calling const {Marker3DInteractiveElement} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Constructor
Marker3DInteractiveElement([options])
-
options
:Marker3DInteractiveElementOptions optional
Marker3DInteractiveElement
with the options specified. Properties |
|
---|---|
Inherited:
altitudeMode
, collisionBehavior
, drawsWhenOccluded
, extruded
, label
, position
, sizePreserved
, zIndex
|
Slots |
|
---|---|
default
|
Any custom elements directly added to the
Marker3DInteractiveElement
will be slotted, however only elements of PinElement
's type will be used for drawing markers, other elements will be ignored. |
Methods
addEventListener(type, listener[, options])
-
type
:string
A case-sensitive string representing the event type to listen for. -
listener
:EventListener | EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent method -
options
:boolean| AddEventListenerOptions optional
See options . Custom events only supportcapture
andpassive
.
void
removeEventListener(type, listener[, options])
-
type
:string
A string which specifies the type of event for which to remove an event listener. -
listener
:EventListener | EventListenerObject
The event listener of the event handler to remove from the event target. -
options
:boolean| EventListenerOptions optional
See options
void
Events
function(clickEvent)
-
clickEvent
:LocationClickEvent
Marker3DInteractiveElementOptions interface
google.maps.maps3d
. Marker3DInteractiveElementOptions
interface
Marker3DInteractiveElementOptions object used to define the properties that can be set on a Marker3DInteractiveElement.
This interface extends Marker3DElementOptions
.
Properties |
|
---|---|
Inherited:
altitudeMode
, collisionBehavior
, drawsWhenOccluded
, extruded
, label
, position
, sizePreserved
, zIndex
|
Model3DElement class
google.maps.maps3d
. Model3DElement
class
A 3D model which allows the rendering of gLTF models. Note that the position
and the src
must be set for the Model3DElement
to display.
Core properties of the gLTF PBR
should be supported. No extensions or extension properties are currently supported.
Custom element: <gmp-model-3d altitude-mode="absolute" src="src"></gmp-model-3d>
This class extends HTMLElement
.
This class implements Model3DElementOptions
.
Access by calling const {Model3DElement} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Constructor
Model3DElement([options])
-
options
:Model3DElementOptions optional
Model3DElement
with the options specified.Properties
AltitudeMode
optional
AltitudeMode.CLAMP_TO_GROUND
-
<gmp-model-3d altitude-mode="absolute"></gmp-model-3d>
-
<gmp-model-3d altitude-mode="clamp-to-ground"></gmp-model-3d>
-
<gmp-model-3d altitude-mode="relative-to-ground"></gmp-model-3d>
-
<gmp-model-3d altitude-mode="relative-to-mesh"></gmp-model-3d>
Orientation3D
| Orientation3DLiteral
optional
Rotations are applied to the model in the following order: roll, tilt and then heading.
LatLngLiteral
| LatLngAltitude
| LatLngAltitudeLiteral
optional
Model3DElement
's position. Altitude is ignored in certain modes and thus optional.number| Vector3D
| Vector3DLiteral
optional
1
string| URL
optional
.glb
format are supported.Any relative HTTP urls will be resolved to their corresponding absolute ones.
Please note that If you're hosting your
.glb
model files on a different website or server than your main application, make sure to set up the correct CORS HTTP headers. This allows your application to securely access the model files from the other domain.-
<gmp-model-3d src="src"></gmp-model-3d>
Methods
addEventListener(type, listener[, options])
-
type
:string
A case-sensitive string representing the event type to listen for. -
listener
:EventListener | EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent method -
options
:boolean| AddEventListenerOptions optional
See options . Custom events only supportcapture
andpassive
.
void
removeEventListener(type, listener[, options])
-
type
:string
A string which specifies the type of event for which to remove an event listener. -
listener
:EventListener | EventListenerObject
The event listener of the event handler to remove from the event target. -
options
:boolean| EventListenerOptions optional
See options .
void
Model3DElementOptions interface
google.maps.maps3d
. Model3DElementOptions
interface
Model3DElementOptions object used to define the properties that can be set on a Model3DElement.
Properties |
|
---|---|
altitudeMode
optional
|
Type:
AltitudeMode
optional
|
orientation
optional
|
Type:
Orientation3D
| Orientation3DLiteral
optional
|
position
optional
|
Type:
LatLngLiteral
| LatLngAltitude
| LatLngAltitudeLiteral
optional
|
scale
optional
|
Type:
number| Vector3D
| Vector3DLiteral
optional
|
src
optional
|
Type:
string| URL
optional
|
Polyline3DElement class
google.maps.maps3d
. Polyline3DElement
class
A 3D polyline is a linear overlay of connected line segments on a 3D map.
Custom element: <gmp-polyline-3d altitude-mode="absolute" draws-occluded-segments extruded geodesic outer-color="string" outer-width="number" stroke-color="string" stroke-width="number" z-index="number"></gmp-polyline-3d>
This class extends HTMLElement
.
This class implements Polyline3DElementOptions
.
Access by calling const {Polyline3DElement} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Constructor
Polyline3DElement([options])
-
options
:Polyline3DElementOptions optional
Polyline3DElement
with the options specified.Properties
AltitudeMode
optional
AltitudeMode.ABSOLUTE
-
<gmp-polyline-3d altitude-mode="absolute"></gmp-polyline-3d>
-
<gmp-polyline-3d altitude-mode="clamp-to-ground"></gmp-polyline-3d>
-
<gmp-polyline-3d altitude-mode="relative-to-ground"></gmp-polyline-3d>
-
<gmp-polyline-3d altitude-mode="relative-to-mesh"></gmp-polyline-3d>
Iterable
< LatLngAltitude
| LatLngAltitudeLiteral
| LatLngLiteral
> optional
boolean optional
false
-
<gmp-polyline-3d draws-occluded-segments></gmp-polyline-3d>
boolean optional
false
altitudeMode
must be either RELATIVE_TO_GROUND
or ABSOLUTE
.-
<gmp-polyline-3d extruded></gmp-polyline-3d>
boolean optional
false
true
, edges of the polyline are interpreted as geodesic and will follow the curvature of the Earth. When false
, edges of the polyline are rendered as straight lines in screen space.-
<gmp-polyline-3d geodesic></gmp-polyline-3d>
string optional
-
<gmp-polyline-3d outer-color="string"></gmp-polyline-3d>
number optional
0.0
and 1.0
. This is a percentage of the strokeWidth
.-
<gmp-polyline-3d outer-width="number"></gmp-polyline-3d>
string optional
-
<gmp-polyline-3d stroke-color="string"></gmp-polyline-3d>
number optional
-
<gmp-polyline-3d stroke-width="number"></gmp-polyline-3d>
number optional
-
<gmp-polyline-3d z-index="number"></gmp-polyline-3d>
Methods
addEventListener(type, listener[, options])
-
type
:string
A case-sensitive string representing the event type to listen for. -
listener
:EventListener | EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent method -
options
:boolean| AddEventListenerOptions optional
See options . Custom events only supportcapture
andpassive
.
void
removeEventListener(type, listener[, options])
-
type
:string
A string which specifies the type of event for which to remove an event listener. -
listener
:EventListener | EventListenerObject
The event listener of the event handler to remove from the event target. -
options
:boolean| EventListenerOptions optional
See options .
void
Polyline3DElementOptions interface
google.maps.maps3d
. Polyline3DElementOptions
interface
Polyline3DElementOptions object used to define the properties that can be set on a Polyline3DElement.
Properties |
|
---|---|
altitudeMode
optional
|
Type:
AltitudeMode
optional
|
coordinates
optional
|
Type:
Iterable
< LatLngAltitude
| LatLngAltitudeLiteral
| LatLngLiteral
> optional
|
drawsOccludedSegments
optional
|
Type:
boolean optional
|
extruded
optional
|
Type:
boolean optional
|
geodesic
optional
|
Type:
boolean optional
|
outerColor
optional
|
Type:
string optional
|
outerWidth
optional
|
Type:
number optional
|
strokeColor
optional
|
Type:
string optional
|
strokeWidth
optional
|
Type:
number optional
|
zIndex
optional
|
Type:
number optional
|
Polygon3DElement class
google.maps.maps3d
. Polygon3DElement
class
A 3D polygon (like a 3D polyline) defines a series of connected coordinates in an ordered sequence. Additionally, polygons form a closed loop and define a filled region.
Custom element: <gmp-polygon-3d altitude-mode="absolute" draws-occluded-segments extruded fill-color="string" geodesic stroke-color="string" stroke-width="number" z-index="number"></gmp-polygon-3d>
This class extends HTMLElement
.
This class implements Polygon3DElementOptions
.
Access by calling const {Polygon3DElement} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Constructor
Polygon3DElement([options])
-
options
:Polygon3DElementOptions optional
Polygon3DElement
with the options specified.Properties
AltitudeMode
optional
AltitudeMode.ABSOLUTE
-
<gmp-polygon-3d altitude-mode="absolute"></gmp-polygon-3d>
-
<gmp-polygon-3d altitude-mode="clamp-to-ground"></gmp-polygon-3d>
-
<gmp-polygon-3d altitude-mode="relative-to-ground"></gmp-polygon-3d>
-
<gmp-polygon-3d altitude-mode="relative-to-mesh"></gmp-polygon-3d>
boolean optional
false
-
<gmp-polygon-3d draws-occluded-segments></gmp-polygon-3d>
boolean optional
false
altitudeMode
must be either RELATIVE_TO_GROUND
or ABSOLUTE
.-
<gmp-polygon-3d extruded></gmp-polygon-3d>
string optional
-
<gmp-polygon-3d fill-color="string"></gmp-polygon-3d>
boolean optional
false
true
, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth. When false
, edges of the polygon are rendered as straight lines in screen space.-
<gmp-polygon-3d geodesic></gmp-polygon-3d>
Iterable
< Iterable
< LatLngAltitude
| LatLngAltitudeLiteral
| LatLngLiteral
>> optional
Iterable
< LatLngAltitude
| LatLngAltitudeLiteral
| LatLngLiteral
> optional
string optional
-
<gmp-polygon-3d stroke-color="string"></gmp-polygon-3d>
number optional
-
<gmp-polygon-3d stroke-width="number"></gmp-polygon-3d>
number optional
-
<gmp-polygon-3d z-index="number"></gmp-polygon-3d>
Methods
addEventListener(type, listener[, options])
-
type
:string
A case-sensitive string representing the event type to listen for. -
listener
:EventListener | EventListenerObject
The object that receives a notification. This must be a function or an object with the handleEvent method -
options
:boolean| AddEventListenerOptions optional
See options . Custom events only supportcapture
andpassive
.
void
removeEventListener(type, listener[, options])
-
type
:string
A string which specifies the type of event for which to remove an event listener. -
listener
:EventListener | EventListenerObject
The event listener of the event handler to remove from the event target. -
options
:boolean| EventListenerOptions optional
See options .
void
Polygon3DElementOptions interface
google.maps.maps3d
. Polygon3DElementOptions
interface
Polygon3DElementOptions object used to define the properties that can be set on a Polygon3DElement.
Properties |
|
---|---|
altitudeMode
optional
|
Type:
AltitudeMode
optional
|
drawsOccludedSegments
optional
|
Type:
boolean optional
|
extruded
optional
|
Type:
boolean optional
|
fillColor
optional
|
Type:
string optional
|
geodesic
optional
|
Type:
boolean optional
|
innerCoordinates
optional
|
Type:
Iterable
< Iterable
< LatLngAltitude
| LatLngAltitudeLiteral
>| Iterable
< LatLngLiteral
>> optional
|
outerCoordinates
optional
|
Type:
Iterable
< LatLngAltitude
| LatLngAltitudeLiteral
| LatLngLiteral
> optional
|
strokeColor
optional
|
Type:
string optional
|
strokeWidth
optional
|
Type:
number optional
|
zIndex
optional
|
Type:
number optional
|
AltitudeMode constants
google.maps.maps3d
. AltitudeMode
constants
Specifies how altitude components in the coordinates are interpreted.
Access by calling const {AltitudeMode} = await google.maps.importLibrary("maps3d")
.See Libraries in the Maps JavaScript API
.
Constants |
|
---|---|
ABSOLUTE
|
Allows to express objects relative to the average mean sea level. That also means that if the terrain level of detail changes underneath the object, its absolute position will remain the same. |
CLAMP_TO_GROUND
|
Allows to express objects placed on the ground. They will remain at ground level following the terrain regardless of what altitude is provided. If the object is positioned over a major body of water, it will be placed at sea level. |
RELATIVE_TO_GROUND
|
Allows to express objects relative to the ground surface. If the terrain level of detail changes, the position of the object will remain constant relative to the ground. When over water, the altitude will be interpreted as a value in meters above sea level. |
RELATIVE_TO_MESH
|
Allows to express objects relative to the highest of ground+building+water surface. When over water, this will be water surface; when over terrain, this will be the building surface (if present) or ground surface (if no buildings). |