Adds a marker to the map.
The target object (IAnchorable) for the marker (e.g., Space, Door, Coordinate, or Node).
The HTML content for the Marker.
Optionaloptions: TAddMarkerOptionsOptional additional options for the Marker (see TAddMarkerOptions).
The created Marker, or undefined if creation failed.
Update the position of a marker with an animation.
The Marker which should be updated.
The new target object (Space, Door, or Coordinate) for the marker.
Optionaloptions: TAnimationOptionsOptional additional options for the animation (see TAnimationOptions).
A promise that resolves when the animation is complete.
Update the position of a marker.
The Marker which should be moved.
The new target object (Space, Door, or Coordinate) for the marker.
Markers in Mappedin JS
Markers are interactive HTML elements anchored to a Door, Space, Coordinate, or Node on the map. They automatically rotate and reposition as the camera moves, making them ideal for highlighting points of interest, custom icons, or interactive UI overlays.
Features
Example Usage
Advanced
dynamicResize: falsefor static content.zIndexandrank: 'always-visible'to keep important markers on top.More Information
This class is accessed using MapView.Markers.