Optional
addtrue
Optional
anchorThe anchor for the scene.
{lat: 0, lng: 0, altitude: 0}
Optional
animationThe 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
"ondemand"
Optional
mapThe map the overlay will be added to.
Can be set at initialization or by calling setMap(map)
.
Optional
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
.
Optional
upThe axis pointing up in the scene. Can be specified as "Z", "Y" or a Vector3, in which case the normalized vector will become the up-axis.
"Z"
Add default lighting to the scene.