Indooratlas Indoor Navigation How to use the iOS version:
Introduction of protocol Ialocationmanagerdelegate
Implementation method
-(void) Indoorlocationmanager: (ialocationmanager *) Manager didupdatelocations: (nsarray *) locations;
-(void) Indoorlocationmanager: (ialocationmanager *) Manager didenterregion: (iaregion *) region;
First, the "Didenterregion" method is used to obtain the region (iaregion)in region . Identifier stores the Floorplanid.
Use Iaresourcemanager and Floorplanid have access to the floorplan of the current floor ( Iafloorplan ). "Fetchfloorplanwithid"
You can also use the Fetchfloorplanimagewithid "Gets the picture of the current floor.
float scale = fmin ( 1.0fmin (weakself. View. Bounds. Size. Width/Floorplan. Width,  weakself. View. Bounds. Size. Height/Floorplan. Height
Scale to determine the magnification of the floor picture displayed on the screen
// Get the picture width to the ratio of the screen , take the small scale of the edge to zoom, the picture is larger than the screen and the zoom is set to the screen maximum
Use Cgaffinetransform The transformation of the Uiimageview
Weakself. ImageView. Transform = cgaffinetransformidentity;//Identity transformation equivalent to assigning an initial value
Cgaffinetransform t = cgaffinetransformmakescale(scale, scale);
Weakself. ImageView. transform=t; Zooming the picture
float size = floorplan. Metertopixelconversion;
The number of pixels accounted for 1 meters
eg:floorplan.metertopixelconversion=5 Then one meter corresponds to 5 pixels.
floorplan.pixeltometerconversion is the number of meters for a 1 pixel point namely 1/metertopixelconversion
Navigating the user point is a realistic case of a meter square using size Convert to size on picture
Interior navigation Development notes