IndoorRoutingController
public class IndoorRoutingController
extension IndoorRoutingController: NativeBase
extension IndoorRoutingController: Hashable
This class controls the rendering of indoor routes on the map.
Note: This feature is in BETA state and thus there can be bugs and unexpected behavior.
Related APIs may change for new releases without a deprecation process.
-
Creates a new instance of this class.
Declaration
Swift
public init(_ venueMap: VenueMap, mapView: MapViewBase)Parameters
venueMapA venue map instance.
mapViewA map scene where routes should be shown.
-
Shows an indoor route on the map. The previously visible indoor route will be hidden. Any markers not explicitly set in the style will use SDK built-in default icons.
Declaration
Swift
public func showRoute(route: Route, style: IndoorRouteStyle)Parameters
routeA route to show.
styleA route style for the given route. Unset markers fall back to SDK defaults.
-
Shows an indoor route on the map using SDK default style. All markers use SDK built-in default icons with default polyline color (#48DAD0) and width (15 pixels). The previously visible indoor route will be hidden.
Declaration
Swift
public func showRoute(route: Route)Parameters
routeA route to show.
-
Hides an indoor route, visible on the map.
Declaration
Swift
public func hideRoute()