Protected
anchorThe anchor for the scene.
The animation mode controls when the overlay will redraw, either
continuously (always
) or on demand (ondemand
). When using the
on demand mode, the overlay will re-render whenever the map renders
(camera movements) or when requestRedraw()
is called.
To achieve animations in this mode, you can either use an outside
animation-loop that calls requestRedraw()
as long as needed or call
requestRedraw()
from within the onBeforeRender
function to
Protected
Readonly
cameraProtected
Readonly
overlayProtected
Readonly
projectionProtected
raycasterProtected
rendererProtected
Readonly
rotationProtected
Readonly
rotationReadonly
sceneThe scene object to render in the overlay. If no scene is specified, a
new scene is created and can be accessed via overlay.scene
.
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
.
Rest
...args: unknown[]Convert coordinates from WGS84 Latitude Longitude to world-space coordinates while taking the origin and orientation into account.
Implement this method to draw WebGL content directly on the map. Note that if the overlay needs a new frame drawn then call ThreeJSOverlayView.requestRedraw.
that allow developers to render content to an associated Google basemap.
Runs raycasting for the specified screen-coordinates against all objects in the scene.
normalized screenspace coordinates of the mouse-cursor. x/y are in range [-1, 1], y is pointing up.
Optional
options: RaycastOptionsraycasting options. In this case the recursive
option
has no effect as it is always recursive.
the list of intersections
Runs raycasting for the specified screen-coordinates against the specified list of objects.
Note for typescript users: the returned Intersection objects can only be properly typed for non-recursive lookups (this is handled by the internal signature below).
normalized screenspace coordinates of the mouse-cursor. x/y are in range [-1, 1], y is pointing up.
list of objects to test
Optional
options: RaycastOptions & { raycasting options.
Optional
options: Omit<RaycastOptions, "recursive"> | RaycastOptions & { Sets the anchor-point.
Add a three.js scene as a Google Maps WebGLOverlayView.