-
Notifications
You must be signed in to change notification settings - Fork 6
Class NCLocationView
NCLocationView class is used for showing the map and its elements on the device screen.
@interface NCLocationView : UIView
- (instancetype)initWithFrame:(CGRect)frame;
- (void) setSublocationId: (int) sublocationId;
- (NCCircleMapObject *) addCircleMapObject;
- (bool) removeCircleMapObject: (NCCircleMapObject *) circleMapObject;
- (NCIconMapObject *) addIconMapObject;
- (bool) removeIconMapObject: (NCIconMapObject *) iconMapObject;
- (NCPolylineMapObject *) addPolylineMapObject;
- (bool) removePolylineMapObject: (NCPolylineMapObject *) polylineMapObject;
- (void) requestRender;
@property (assign, nonatomic) CGFloat minZoomFactor;
@property (assign, nonatomic) CGFloat maxZoomFactor;
@property (assign, nonatomic) CGFloat zoomFactor;
@property (weak, nonatomic, nullable) id<NCPickListener> pickListener;
@end
-
gestureDelegate
- gesture delegate is used for realising NCGestureRecognizerDelegate delegate which will be used for working with handled gestures. -
pickListener
- gesture delegate is used for NCPickListener delegate which will be used for delivering picking results.
- (void) setSublocationId: (int) sublocationId;
Function sets the sublocation for current downloaded and set location.
-
sublocationId
— id of the sublocation.
- (NCCircleMapObject *) addCircleMapObject;
Function is used for creating circle map object on location view and getting it.
NCCircleMapObject class element.
- (bool) removeCircleMapObject: (NCCircleMapObject *) circleMapObject;
Function is used for removing circle map object from location view
-
circleMapObject
— NCCircleMapObject class element.
-
true
- if deletion was successful -
false
- if smth was wrong
- (NCIconMapObject *) addIconMapObject;
Function is used for creating icon map object on location view and getting it.
NCIconMapObject class element.
- (bool) removeIconMapObject: (NCIconMapObject *) iconMapObject;
Function is used for removing icon map object from location view
-
iconMapObject
— NCIconMapObject class element.
-
true
- if deletion was successful -
false
- if smth was wrong
- (NCPolylineMapObject *) addPolylineMapObject;
Function is used for creating polyline map object on location view and getting it.
NCPolylineMapObject class element.
- (bool) removePolylineMapObject: (NCPolylineMapObject *) polylineMapObject;
Function is used for removing polyline map object from location view
-
polylineMapObject
— NCPolylineMapObject class element.
-
true
- if deletion was successful -
false
- if smth was wrong
ZoomFactor — pixels per meter parameter how to scale location view
- (float) getZoomFactor;
Function is used for getting current zoom factor of location view
float
- current zoom factor
- (void) setZoomFactor: (float) zoomFactor;
Set zoom factor of the location view
-
zoomFactor
— pixels per meter value
- (void)pickMapObjectAt:(CGPoint)viewPosition;
Function is used for picking map object on location view. Results will be returned in a callback to the object set by pickListener
-
viewPosition
— position in the view to pick from, in logical pixels.
Tutorials
Classes
- NCNavigineSdk
- NCLocationListManager
- NCLocationManager
- NCNavigationManager
- NCRouteManager
- NCZoneManager
- NCNotificationManager
- NCMeasurementManager
- NCLocationEditManager
- NCResourceManager
- NCLocation
- NCSublocation
- NCCategory
- NCVenue
- NCZone
- NCBeacon
- NCEddystone
- NCWifi
- NCLocationView
- NCGestureRecognizerDelegate
- NCCircleMapObject
- NCLineMapObject
- NCLocationListListener
- NCLocationListener
- NCPositionListener
- NCRouteListener
- NCZoneListener
- NCNotificationListener
- NCLocationEditListener
- NCMeasurementListener
- NCResourceListener
- NCResourceUploadListener
- NCNotification
- NCPosition
- NCSignalMeasurement
- NCSensorMeasurement
- NCImage
- NCRoutePath
- NCRouteEvent
- NCLocationPoint
- NCLocationInfo
- NCBitmapRegionDecoder