Connections
Mappedin SDK version 6 is currently in a beta state while Mappedin perfects new features and APIs. Open the v6 release notes to view the latest changes.
Using Mappedin Web SDK with your own map requires a Pro license. Try a demo map for free or refer to the Pricing page for more information.
A Connection represents a traversable conduit between floors of a map, such as stairs or an elevator. The Connection includes details such as name, description, floors, coordinates and more.
Connection contains an array of coordinates
, with each coordinate
representing the location of the connection on a specific floor. In the case of an elevator, each coordinate
would have latitude
and longitude
values that are the same with different floorIds
. Stairs may have coordinates
with the same or different latitude
and longitude
values on each floor, depending on whether a building's stairs are vertically aligned.
The following CodeSandbox loops through all connections
and adds a Label using the Connection.name for each Connection that is connected to the currently displayed floor. Zoom into the map to view all connection labels.