Loading...
Searching...
No Matches
ObjectiveC Location View Elements

List of location view elements for Navigine iOS SDK. More...

Topics

 ObjectiveC Default Navigation View
 NCDefaultNavigationView and its built-in widgets (zoom, floor selector, follow me)
 

Classes

class  NCAttributionAlignment
 Screen placement of the OSM attribution overlay. More...
 
class  NCBuilding
 Interface for a building with multiple floors (Sublocations). Allows selecting the active floor directly via setActiveSublocationId. More...
 
protocol  <NCBuildingListener>
 Listener for outdoor scenario when camera focuses on a building or leaves it. More...
 
class  NCCamera
 Class describing position of the camera. More...
 
protocol  <NCCameraListener>
 Class is used to listen for camera updates. More...
 
class  NCCircleMapObject
 Represents a circle on the location view. More...
 
class  NCClusterMapObject
 Runtime snapshot of a visible icon cluster on the location view. More...
 
class  NCClusterMapObjectController
 Groups IconMapObject instances into clusters depending on zoom and proximity. More...
 
protocol  <NCClusterMapObjectControllerListener>
 Listener for cluster lifecycle events on ClusterMapObjectController. More...
 
protocol  <NCClusterMapObjectListener>
 Listener for updates of a single ClusterMapObject. More...
 
class  NCDefaultNavigationView
 Ready-to-use navigation view with built-in UI: “follow me” toggle and user location layer. zoom controls, floor selector, follow me toggle and user location layer. Automatically wires SDK listeners (location, sublocation, camera) and keeps widgets in sync. Use NCDefaultNavigationViewConfig to customize; config can be updated at runtime via the config property. More...
 
class  NCDottedPolylineMapObject
 Represents a polyline object with points placed along it on the location view. More...
 
class  NCIconMapObject
 Represents an icon object on the location view. More...
 
class  NCImage
 class described image data in SDK More...
 
protocol  <NCInputListener>
 Class is used to listen for interactions with location view. More...
 
class  NCLocationView
 Class is used to display a Navigine location via iOS UIView. More...
 
class  NCLocationWindow
 Interface for interacting with the location view. More...
 
class  NCMapFilterCondition
 A single filter condition: property must match one of the given values. More...
 
class  NCMapObject
 Base interface for handling objects on the location view. More...
 
class  NCMapObjectPickResult
 Class is used to handle information in PickListener. More...
 
class  NCModelMapObject
 A 3D model map object (Wavefront OBJ) placed on the location view. More...
 
protocol  <NCPickListener>
 Class is used to handle for picking objects on the location view. More...
 
class  NCPolygonMapObject
 Represents a polygon object on the location view. More...
 
class  NCPolylineMapObject
 Represents a polyline object on the location view. More...
 
protocol  <NCSublocationChangeListener>
 Class is used to listen for sublocation change events. More...
 
class  NCTitleStyle
 Style parameters for a map object title. More...
 
class  NCUserLocationLayer
 Layer that automatically renders current user position (arrow and accuracy circle) on the map. Provides visibility and anchoring controls. Referenced from LocationView. More...
 

Typedefs

typedef void(^ NCCameraCallback) (BOOL completed)
 Callback specified after the camera movement is stopped.
 

Enumerations

enum  NCAnimationType {
  NCAnimationTypeNone ,
  NCAnimationTypeLinear ,
  NCAnimationTypeCubic ,
  NCAnimationTypeQuint ,
  NCAnimationTypeSine
}
 Enum described animation functions. More...
 
enum  NCAttributionHorizontalAlignment {
  NCAttributionHorizontalAlignmentLEFT ,
  NCAttributionHorizontalAlignmentCENTER ,
  NCAttributionHorizontalAlignmentRIGHT
}
 Horizontal placement of the OSM attribution overlay. More...
 
enum  NCAttributionVerticalAlignment {
  NCAttributionVerticalAlignmentTOP ,
  NCAttributionVerticalAlignmentBOTTOM
}
 Vertical placement of the OSM attribution overlay. More...
 
enum  NCCameraUpdateReason {
  NCCameraUpdateReasonGestures ,
  NCCameraUpdateReasonApplication
}
 Reason of the camera update. More...
 
enum  NCCapType {
  NCCapTypeBUTT ,
  NCCapTypeSQUARE ,
  NCCapTypeROUND
}
 Enum defining the type of cap for polyline ends. More...
 
enum  NCDebugFlag {
  NCDebugFlagNone ,
  NCDebugFlagInfos ,
  NCDebugFlagStats ,
  NCDebugFlagLabels ,
  NCDebugFlagDrawAllLabels ,
  NCDebugFlagSelectionBuffer
}
 Debug visualization flags for the map view LocationWindow. More...
 
enum  NCImageType {
  NCImageTypePNG ,
  NCImageTypeSVG ,
  NCImageTypeJPG
}
 Enum described supported image types. More...
 
enum  NCJoinType {
  NCJoinTypeMITER ,
  NCJoinTypeBEVEL ,
  NCJoinTypeROUND
}
 Enum defining the type of join for polyline segments. More...
 
enum  NCMapObjectType {
  NCMapObjectTypeICON ,
  NCMapObjectTypePOLYGON ,
  NCMapObjectTypePOLYLINE ,
  NCMapObjectTypeDOTTEDPOLYLINE ,
  NCMapObjectTypeCIRCLE ,
  NCMapObjectTypeMODEL ,
  NCMapObjectTypeCLUSTERMAPOBJECT
}
 Enum defining the type of map object. More...
 
enum  NCOperatingMode {
  NCOperatingModeIndoorOnly ,
  NCOperatingModeOutdoor ,
  NCOperatingModeOutdoorIndoor
}
 Operating mode of the location view. More...
 
enum  NCPlacement {
  NCPlacementVERTEX ,
  NCPlacementMIDPOINT ,
  NCPlacementSPACED
}
 Enum defining the placement mode for points along a polyline. More...
 
enum  NCTitleAnchor {
  NCTitleAnchorCENTER ,
  NCTitleAnchorTOP ,
  NCTitleAnchorBOTTOM ,
  NCTitleAnchorLEFT ,
  NCTitleAnchorRIGHT ,
  NCTitleAnchorTOPLEFT ,
  NCTitleAnchorTOPRIGHT ,
  NCTitleAnchorBOTTOMLEFT ,
  NCTitleAnchorBOTTOMRIGHT
}
 Anchor position of a map object title relative to its placement point. More...
 

Detailed Description

List of location view elements for Navigine iOS SDK.

Typedef Documentation

◆ NCCameraCallback

typedef void(^ NCCameraCallback) (BOOL completed)

Callback specified after the camera movement is stopped.

Referenced from: LocationWindow.

Called when the move if finished.

Parameters
completeddetermine whether the movement is finished or cancelled

Swift code snippet:

func onMoveFinished(completed: Bool) {
if completed {
print("Camera movement completed successfully")
} else {
print("Camera movement was cancelled")
}
}

Objective C code snippet:

- (void)onMoveFinishedWithCompleted:(BOOL)completed {
NSLog(@"Camera move animation %@", completed ? @"completed" : @"cancelled");
}

Definition at line 32 of file NCCameraCallback.h.

Enumeration Type Documentation

◆ NCAnimationType

Enum described animation functions.

Referenced from CircleMapObject, IconMapObject, LocationWindow.

Swift code snippet:

let animationTypes: [NCAnimationType] = [
.linear,
.cubic,
.quint,
.sine,
.none,
]

Objective C code snippet:

NSArray *animationTypes = @[
@(NCAnimationTypeLinear),
@(NCAnimationTypeCubic),
@(NCAnimationTypeQuint),
@(NCAnimationTypeSine),
@(NCAnimationTypeNone),
];
Enumerator
NCAnimationTypeNone 

disable animation

NCAnimationTypeLinear 

animation according to formula f(t) = t.

NCAnimationTypeCubic 

animation according to formula f(t) = (-2 * t + 3) * t * t.

NCAnimationTypeQuint 

animation according to formula f(t) = (6 * t * t - 15 * t + 10) * t * t * t.

NCAnimationTypeSine 

animation according to formula f(t) = 0.5 - 0.5 * cos(PI * t).

Definition at line 25 of file NCAnimationType.h.

◆ NCAttributionHorizontalAlignment

Horizontal placement of the OSM attribution overlay.

Used with AttributionAlignment.

Enumerator
NCAttributionHorizontalAlignmentLEFT 

Align to the left edge of the map.

NCAttributionHorizontalAlignmentCENTER 

Center horizontally.

NCAttributionHorizontalAlignmentRIGHT 

Align to the right edge of the map.

Definition at line 16 of file NCAttributionHorizontalAlignment.h.

◆ NCAttributionVerticalAlignment

Vertical placement of the OSM attribution overlay.

Used with AttributionAlignment.

Enumerator
NCAttributionVerticalAlignmentTOP 

Align to the top edge of the map.

NCAttributionVerticalAlignmentBOTTOM 

Align to the bottom edge of the map.

Definition at line 16 of file NCAttributionVerticalAlignment.h.

◆ NCCameraUpdateReason

Reason of the camera update.

Referenced from CameraListener.

Enumerator
NCCameraUpdateReasonGestures 

user manipulation.

For example: zoom, scroll, rotate, fling.

NCCameraUpdateReasonApplication 

Application.

By calling the LocationView::move methods.

Definition at line 15 of file NCCameraUpdateReason.h.

◆ NCCapType

enum NCCapType

Enum defining the type of cap for polyline ends.

Referenced from PolylineMapObject.

Enumerator
NCCapTypeBUTT 

No points added to the end of the line.

NCCapTypeSQUARE 

Two points added to make a square extension.

NCCapTypeROUND 

Six points added in a fan to make a round cap.

Definition at line 16 of file NCCapType.h.

◆ NCDebugFlag

Debug visualization flags for the map view LocationWindow.

Swift code snippet:

let allFlags: [NCDebugFlag] = [.none, .infos, .stats, .labels, .drawAllLabels, .selectionBuffer]
print("Debug flag enum values: \‍(allFlags.count)")

Objective C code snippet:

NSArray<NSNumber *> *allFlags = @[
@(NCDebugFlagNone),
@(NCDebugFlagInfos),
@(NCDebugFlagStats),
@(NCDebugFlagLabels),
@(NCDebugFlagDrawAllLabels),
@(NCDebugFlagSelectionBuffer)
];
NSLog(@"Debug flag enum values: %lu", (unsigned long)allFlags.count);
Enumerator
NCDebugFlagNone 
NCDebugFlagInfos 
NCDebugFlagStats 
NCDebugFlagLabels 
NCDebugFlagDrawAllLabels 
NCDebugFlagSelectionBuffer 

Definition at line 23 of file NCDebugFlag.h.

◆ NCImageType

Enum described supported image types.

Referenced from Image.

Enumerator
NCImageTypePNG 

PNG format.

NCImageTypeSVG 

SVG format.

NCImageTypeJPG 

JPG format.

Definition at line 15 of file NCImageType.h.

◆ NCJoinType

enum NCJoinType

Enum defining the type of join for polyline segments.

Referenced from PolylineMapObject.

Enumerator
NCJoinTypeMITER 

No points added at the line join.

NCJoinTypeBEVEL 

One point added to flatten the corner of a join.

NCJoinTypeROUND 

Five points added in a fan to make a round outer join.

Definition at line 16 of file NCJoinType.h.

◆ NCMapObjectType

Enum defining the type of map object.

Referenced from MapObject.

Enumerator
NCMapObjectTypeICON 

Icon. IconMapObject.

NCMapObjectTypePOLYGON 

Polygon. PolygonMapObject.

NCMapObjectTypePOLYLINE 

Polyline. PolylineMapObject.

NCMapObjectTypeDOTTEDPOLYLINE 

DottedPolyline. DottedPolylineMapObject.

NCMapObjectTypeCIRCLE 

Circle. CircleMapObject.

NCMapObjectTypeMODEL 

Model. ModelMapObject.

NCMapObjectTypeCLUSTERMAPOBJECT 

Icon cluster. ClusterMapObject.

Definition at line 16 of file NCMapObjectType.h.

◆ NCOperatingMode

Operating mode of the location view.

Controls whether the view shows indoor floors only, an outdoor vector basemap, or outdoor basemap with indoor building overlays.

Enumerator
NCOperatingModeIndoorOnly 

Indoor floors only (no outdoor vector basemap). Camera stick-to-border / centering apply to the active floor plan.

Swift code snippet:

let modes: [NCOperatingMode] = [.indoorOnly, .outdoor, .outdoorIndoor]
print("Operating modes: \‍(modes.count)")

Objective C code snippet:

NSArray<NSNumber *> *modes = @[@(NCOperatingModeIndoorOnly), @(NCOperatingModeOutdoor), @(NCOperatingModeOutdoorIndoor)];
NSLog(@"Operating modes: %lu", (unsigned long)modes.count);
NCOperatingModeOutdoor 

Outdoor vector basemap only (OSM MVT).

NCOperatingModeOutdoorIndoor 

Outdoor vector basemap plus indoor building floor overlays.

Definition at line 17 of file NCOperatingMode.h.

◆ NCPlacement

Enum defining the placement mode for points along a polyline.

Referenced from DottedPolylineMapObject.

Enumerator
NCPlacementVERTEX 

Places points at each vertex of the polyline.

NCPlacementMIDPOINT 

Places points at the midpoint of each polyline segment.

NCPlacementSPACED 

Places points at regular intervals along the polyline, controlled by spacing parameters.

Definition at line 16 of file NCPlacement.h.

◆ NCTitleAnchor

Anchor position of a map object title relative to its placement point.

Referenced from TitleStyle, MapObject.

Enumerator
NCTitleAnchorCENTER 

Center of the text.

NCTitleAnchorTOP 

Top edge of the text.

NCTitleAnchorBOTTOM 

Bottom edge of the text.

NCTitleAnchorLEFT 

Left edge of the text.

NCTitleAnchorRIGHT 

Right edge of the text.

NCTitleAnchorTOPLEFT 

Top-left corner of the text.

NCTitleAnchorTOPRIGHT 

Top-right corner of the text.

NCTitleAnchorBOTTOMLEFT 

Bottom-left corner of the text.

NCTitleAnchorBOTTOMRIGHT 

Bottom-right corner of the text.

Definition at line 16 of file NCTitleAnchor.h.