ThreeJSMarkerHandle Class
A handle to a 3D marker added to a map.
Properties
-
options
Add a ThreeJS marker to this map object. This should be called through
the MapView3D
.
Parameters:
-
options
Object-
[object]
Object3D optionalthe marker object to add to the scene
-
[position=null]
Vector3 optionalif provided, sets the object's position on the map
-
[rotation=null]
Euler optionalif provided, sets the object's rotation relative to the map
-
[scale=null]
Vector3 optionalif provided, sets the object's scale relative to the map
-
Returns:
a unique identifier for the marker
-
mapIds
-
options
Expand maps to display within view, typically used for multi-floor navigation. When passed a connection, maps included will not be displayed, instead, their 2d projection will be available in the resulting promise, which can be used to display a 2D component in the client-side app.
Parameters:
Returns:
Promise that resolves to 2d screen projections of each layer/map (see example)
Example:
// expand maps with 3 connection maps in between
expandMaps(
'55e89771d982bc06ca000000',
{
connection: true,
// connection nodes are an exit node from the '55e89771' man and entry node for the '55e9c73f' map
connectionNodes: [{
map: "55e89771",
x: 6232,
y: 4575
}, {
map: "55e9c73",
x: 5945.000000000001,
y: 4059.000000000001
}],
maps: [
'55e9acbf',
'55e8a9ed',
'55e85e23'
]
},
'55e9c73f'
);
// resulting promise (sorted by elevation (top to bottom))
[
{
min: { x: -100, y: -50 },
max: { x: -100, y: -50 }
},
{
min: { x: -100, y: -50 },
max: { x: -100, y: -50 }
},
{
min: { x: -100, y: -50 },
max: { x: -100, y: -50 }
}
]
-
markerHandle
Remove the given ThreeJSMarker
from this map.
Parameters:
-
markerHandle
ThreeJSMarkerHandlethe marker to remove
Returns:
true if the marker existed on the map and was removed; false if the marker does not exist on the map