PROTOCOL
IPSMap
@objc public protocol IPSMap
This class is used to represent the data of the map on which the user is being positioned.
This class also holds the map images for a specific location.
Each location has an image which is the most zoomed out view of the location (typically depicting a single floor of a building).
The map dimensions are provided in meters. In addition, a pixel2meter ratio and offset from the building's origin point are provided so that user coordinates obtained from IPSPositioningObserver.onPositionUpdate(_:) can be directly mapped to the top layer image for visualization.
The precise method of visualization (user avatar, map screen size, etc.) is left to the host application.
Alternatively, the host application can implement its own methods of map visualization without requiring the maps images stored on Oriient’s server or use the positioning services without any visualization of the map.
- Warning: Deprecated since 8.8.0. Use IPSFloorImageData instead.
- Deprecated: 8.8.0
Properties
id
var id: String
The unique identifier of the map.
name
var name: String
The name of the map.
latitude
var latitude: Double
The latitude of the map location.
longitude
var longitude: Double
The longitude of the map location.
image
var image: UIImage
The top layer image. - Since: 2.10.0
pixelToMeter
var pixelToMeter: CGFloat
The map’s pixel-to-meter ratio.
Used for converting the meter based coordinates in IPSCoordinate to pixels for visualization.
widthInMeters
var widthInMeters: CGFloat
The total width of the map in meters.
heightInMeters
var heightInMeters: CGFloat
The total height of the map in meters.
offset
var offset: IPSOffset
The offset of the map from the building origin point. Used to convert coordinates. - Since: 2.10.0
preferredInitialRotation
var preferredInitialRotation: NSNumber?
Preferred initial rotation of the map (degrees). - Since: 6.0.0
signMarks
var signMarks: [IPSSignMark]
The collection of sign marks on the map. - Since: 8.0.0