70 NSLog(
@"--- LocationPolygon / LocationPolyline records ---");
73 NSArray<NCGlobalPoint *> *ring = @[
74 [[
NCGlobalPoint alloc] initWithLatitude:55.751 longitude:37.617],
75 [[
NCGlobalPoint alloc] initWithLatitude:55.752 longitude:37.618],
76 [[
NCGlobalPoint alloc] initWithLatitude:55.751 longitude:37.619],
78 NSArray<NSArray<NCGlobalPoint *> *> *holes = @[
80 [[
NCGlobalPoint alloc] initWithLatitude:55.7512 longitude:37.6174],
81 [[
NCGlobalPoint alloc] initWithLatitude:55.7514 longitude:37.6176],
82 [[
NCGlobalPoint alloc] initWithLatitude:55.7512 longitude:37.6178],
88 NSLog(
@"LocationPolygon: sublocation %@, vertices %lu, holes %lu",
90 (
unsigned long)locationPolygon.
points.count,
91 (
unsigned long)locationPolygon.
innerRings.count);
107 NSLog(
@"PointBatch hit %@", hit);
111 NSString *geoJson =
@"{\"type\
":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[37.617,55.751],[37.619,55.751],[37.619,55.752],[37.617,55.751]],[[37.6174,55.7512],[37.6176,55.7512],[37.6176,55.7514],[37.6174,55.7512]]]}},{\"type\":\"Feature\",\"geometry\":{\"type\":\"LineString\",\"coordinates\":[[37.617,55.751],[37.620,55.753]]}}]}";
113 NSLog(
@"GeoJSON polygons %lu, lines %lu",
114 (
unsigned long)imported.
polygons.count, (
unsigned long)imported.
polylines.count);
118 NSArray<NCGlobalPoint *> *linePts = @[
119 [[
NCGlobalPoint alloc] initWithLatitude:55.751 longitude:37.617],
120 [[
NCGlobalPoint alloc] initWithLatitude:55.753 longitude:37.620],
123 NSLog(
@"LocationPolyline points %lu", (
unsigned long)locationPolyline.
points.count);
131 NSLog(
@"--- Circle Map Objects ---");
134 NSLog(
@"LocationWindow not available yet");
142 NSLog(
@"Created circle map object with center (%f, %f) and radius 5.0", center.
latitude, center.
longitude);
147 double radius = circleObject.radius;
148 NSLog(
@"Circle radius: %f", radius);
155 NSLog(
@"Added circle map object");
159 NSArray *circles = @[
168 NSLog(
@"Added circle at (%f, %f) with radius %f", circle.center.latitude, circle.center.longitude, circle.radius);
175 NSLog(
@"Removed circle map object");
178 if (circleObject != nil) {
183 NSLog(
@"Set circle position to (%f, %f): %@", centerPoint.
latitude, centerPoint.
longitude, success ?
@"YES" :
@"NO");
189 BOOL animatedSuccess = [
circleObject setPositionAnimated:animatedPoint duration:2.0 animationType:AnimationTypeLinear];
190 NSLog(
@"Set circle position with animation to (%f, %f): %@", animatedPoint.
latitude, animatedPoint.
longitude, animatedSuccess ?
@"YES" :
@"NO");
196 NSLog(
@"Set circle radius to 10.0 meters: %@", radiusSuccess ?
@"YES" :
@"NO");
202 NSLog(
@"Enabled collision detection for circle: %@", collisionSuccess ?
@"YES" :
@"NO");
207 BOOL bufferSuccess = [
circleObject setBufferWithWidth:5.0 height:5.0];
208 NSLog(
@"Set collision buffer to 5x5 pixels: %@", bufferSuccess ?
@"YES" :
@"NO");
213 BOOL offsetSuccess = [
circleObject setOffsetWithX:2.0 longitude:3.0];
214 NSLog(
@"Set position offset to (2.0, 3.0) pixels: %@", offsetSuccess ?
@"YES" :
@"NO");
220 NSLog(
@"Set circle outline color to blue: %@", outlineColorSuccess ?
@"YES" :
@"NO");
226 NSLog(
@"Set circle outline alpha to 0.5: %@", outlineAlphaSuccess ?
@"YES" :
@"NO");
232 NSLog(
@"Set circle outline radius to 2.0: %@", outlineRadiusSuccess ?
@"YES" :
@"NO");
238 NSLog(
@"Set circle color to red with 80%% opacity: %@", colorSuccess ?
@"YES" :
@"NO");
244 NSLog(
@"Set rendering priority to 1: %@", prioritySuccess ?
@"YES" :
@"NO");
250 NSLog(
@"Set circle visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
256 NSLog(
@"Circle map object type: %@", objectType);
262 NSLog(
@"Set circle alpha to 0.7: %@", alphaSuccess ?
@"YES" :
@"NO");
268 NSLog(
@"Set circle interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
274 NSLog(
@"Set circle title to 'Circle Object': %@", titleSuccess ?
@"YES" :
@"NO");
280 titleStyle.
color =
@"#3366CC";
282 titleStyle.
anchor = NCTitleAnchorTop;
289 NSLog(
@"Set circle title with style: %@", titleStyleSuccess ?
@"YES" :
@"NO");
294 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
296 NSLog(
@"Set circle custom data: %@", dataSuccess ?
@"YES" :
@"NO");
301 NSInteger objectId = circleObject.id;
302 NSLog(
@"Circle object ID: %ld", (
long)objectId);
307 NSString *objectTypeString = circleObject.type;
308 NSLog(
@"Circle object type: %@", objectTypeString);
313 NSDictionary *retrievedData = circleObject.data;
314 NSLog(
@"Circle custom data: %@", retrievedData);
323 NSLog(
@"--- Icon Map Objects ---");
326 NSLog(
@"LocationWindow not available yet");
334 NSLog(
@"Created icon map object at (%f, %f)", position.
latitude, position.
longitude);
338 UIImage *iconImage = [
UIImage imageWithContentsOfFile:@"/path/to/icon.png"];
339 BOOL bitmapSuccess = (iconImage != nil) && [iconObject setBitmap:iconImage];
340 NSLog(
@"Set icon bitmap (UIImage): %@", bitmapSuccess ?
@"YES" :
@"NO");
346 NSLog(
@"Set icon flat mode to true: %@", flatSuccess ?
@"YES" :
@"NO");
351 NCSize *size = [[
NCSize alloc] initWithWidth:32.0 height:32.0];
353 NSLog(
@"Set icon size to (%.1f, %.1f): %@", size.width, size.height, sizeSuccess ?
@"YES" :
@"NO");
359 NSLog(
@"Set icon rotation angle to π/4: %@", angleSuccess ?
@"YES" :
@"NO");
364 BOOL angleAnimatedSuccess = [
iconObject setAngleAnimated:(float)(M_PI / 2.0) duration:2.0 animationType:NCSine];
365 NSLog(
@"Set icon rotation with animation to π/2: %@", angleAnimatedSuccess ?
@"YES" :
@"NO");
371 NSLog(
@"Enabled collision detection for icon: %@", collisionSuccess ?
@"YES" :
@"NO");
376 BOOL bufferSuccess = [
iconObject setBufferWithWidth:10.0 height:10.0];
377 NSLog(
@"Set collision buffer to 10x10 pixels: %@", bufferSuccess ?
@"YES" :
@"NO");
384 NSLog(
@"Set icon position to (%.1f, %.1f): %@", newPosition.
latitude, newPosition.
longitude, positionSuccess ?
@"YES" :
@"NO");
390 BOOL animatedSuccess = [
iconObject setPositionAnimated:animatedPosition duration:2.0 animationType:NCLinear];
391 NSLog(
@"Set icon position with animation to (%.1f, %.1f): %@", animatedPosition.
latitude, animatedPosition.
longitude, animatedSuccess ?
@"YES" :
@"NO");
396 BOOL offsetSuccess = [
iconObject setOffsetWithWidth:5.0 height:5.0];
397 NSLog(
@"Set icon offset to 5x5 pixels: %@", offsetSuccess ?
@"YES" :
@"NO");
403 NSLog(
@"Set icon priority to 1: %@", prioritySuccess ?
@"YES" :
@"NO");
409 NSLog(
@"Set icon visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
415 NSLog(
@"Icon map object type: %@", objectType);
421 NSLog(
@"Set icon alpha to 0.8: %@", alphaSuccess ?
@"YES" :
@"NO");
427 NSLog(
@"Set icon interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
433 NSLog(
@"Set icon title to 'Icon Object': %@", titleSuccess ?
@"YES" :
@"NO");
438 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
440 NSLog(
@"Set icon custom data: %@", dataSuccess ?
@"YES" :
@"NO");
445 NSInteger objectId = iconObject.id;
446 NSLog(
@"Icon object ID: %ld", (
long)objectId);
451 NSString *objectTypeString = iconObject.type;
452 NSLog(
@"Icon object type: %@", objectTypeString);
457 NSDictionary *retrievedData = iconObject.data;
458 NSLog(
@"Icon custom data: %@", retrievedData);
465 NSLog(
@"Added icon map object");
475 UIImage *loopIcon = [
UIImage imageWithContentsOfFile:@"/path/to/icon.png"];
477 if (loopIcon != nil) {
478 [
icon setBitmap:loopIcon];
482 NSLog(
@"Added icon at (%f, %f)", icon.position.latitude, icon.position.longitude);
489 NSLog(
@"Removed icon map object");
497 NSLog(
@"--- Model Map Objects ---");
500 NSLog(
@"LocationWindow not available yet");
506 NSLog(
@"Added model map object: %@", modelObject != nil ?
@"YES" :
@"NO");
509 if (modelObject == nil) {
516 NSLog(
@"Model setPosition: %@", posOk ?
@"YES" :
@"NO");
521 BOOL posAnimOk = [
modelObject setPositionAnimated:animatedModelPoint duration:0.5 animationType:AnimationTypeSine];
522 NSLog(
@"Model setPositionAnimated: %@", posAnimOk ?
@"YES" :
@"NO");
526 UIImage *texture = [
UIImage imageWithContentsOfFile:@"/path/to/model_texture.png"];
527 if (texture != nil) {
530 NSLog(
@"Model setModel: %@", modelOk ?
@"YES" :
@"NO");
535 BOOL sizeOk = [
modelObject setSizeWithWidth:64.0 height:64.0];
536 NSLog(
@"Model setSize: %@", sizeOk ?
@"YES" :
@"NO");
541 NSLog(
@"Model setCollisionEnabled: %@", collOk ?
@"YES" :
@"NO");
546 NSLog(
@"Model setAngle: %@", angleOk ?
@"YES" :
@"NO");
550 BOOL angleAnimOk = [
modelObject setAngleAnimated:(float)(M_PI / 2.0) duration:0.5 animationType:AnimationTypeQuint];
551 NSLog(
@"Model setAngleAnimated: %@", angleAnimOk ?
@"YES" :
@"NO");
555 BOOL bufOk = [
modelObject setBufferWithWidth:4.0 height:4.0];
556 NSLog(
@"Model setBuffer: %@", bufOk ?
@"YES" :
@"NO");
561 NSLog(
@"Model setPriority: %@", priOk ?
@"YES" :
@"NO");
566 NSLog(
@"Removed model map object: %@", removed ?
@"YES" :
@"NO");
574 NSLog(
@"--- Polygon Map Objects ---");
577 NSLog(
@"LocationWindow not available yet");
584 NSLog(
@"Added polygon map object");
587 if (polygonObject != nil) {
590 NSArray<NCGlobalPoint *> *points = @[
591 [[
NCGlobalPoint alloc] initWithLatitude:100.0 longitude:200.0],
592 [[
NCGlobalPoint alloc] initWithLatitude:150.0 longitude:250.0],
593 [[
NCGlobalPoint alloc] initWithLatitude:200.0 longitude:200.0],
594 [[
NCGlobalPoint alloc] initWithLatitude:150.0 longitude:150.0],
598 NSLog(
@"Set polygon with %lu points: %@", (
unsigned long)points.count, success ?
@"YES" :
@"NO");
604 NSLog(
@"Set polygon color to green with 70%% opacity: %@", colorSuccess ?
@"YES" :
@"NO");
610 NSLog(
@"Set polygon visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
616 NSLog(
@"Polygon map object type: %@", objectType);
622 NSLog(
@"Set polygon rendering order to 2: %@", orderSuccess ?
@"YES" :
@"NO");
628 NSLog(
@"Set polygon outline color to blue: %@", outlineColorSuccess ?
@"YES" :
@"NO");
634 NSLog(
@"Set polygon outline width to 2.0 pixels: %@", outlineWidthSuccess ?
@"YES" :
@"NO");
640 NSLog(
@"Set polygon outline alpha to 0.8: %@", outlineAlphaSuccess ?
@"YES" :
@"NO");
646 NSLog(
@"Set polygon outline order to 1: %@", outlineOrderSuccess ?
@"YES" :
@"NO");
652 NSLog(
@"Set polygon alpha to 0.6: %@", alphaSuccess ?
@"YES" :
@"NO");
658 NSLog(
@"Set polygon interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
664 NSLog(
@"Set polygon title to 'Polygon Object': %@", titleSuccess ?
@"YES" :
@"NO");
669 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
671 NSLog(
@"Set polygon custom data: %@", dataSuccess ?
@"YES" :
@"NO");
676 NSInteger objectId = polygonObject.id;
677 NSLog(
@"Polygon object ID: %ld", (
long)objectId);
682 NSString *objectTypeString = polygonObject.type;
683 NSLog(
@"Polygon object type: %@", objectTypeString);
688 NSDictionary *retrievedData = polygonObject.data;
689 NSLog(
@"Polygon custom data: %@", retrievedData);
695 if (polygonObject != nil) {
697 NSLog(
@"Removed polygon map object: %@", removed ?
@"YES" :
@"NO");
703 for (
int i = 0; i < 3; i++) {
705 if (polygon != nil) {
706 NSArray<NCGlobalPoint *> *points = @[
707 [[
NCGlobalPoint alloc] initWithLatitude:300.0 + i * 50 longitude:400.0 + i * 50],
708 [[
NCGlobalPoint alloc] initWithLatitude:350.0 + i * 50 longitude:450.0 + i * 50],
709 [[
NCGlobalPoint alloc] initWithLatitude:400.0 + i * 50 longitude:400.0 + i * 50],
710 [[
NCGlobalPoint alloc] initWithLatitude:350.0 + i * 50 longitude:350.0 + i * 50],
716 NSLog(
@"Created polygon %d with %lu points", i, (
unsigned long)points.count);
720 for (
int i = 0; i < polygons.count; i++) {
722 NSLog(
@"Removed polygon %d", i);
730 NSLog(
@"--- Polyline Map Objects ---");
733 NSLog(
@"LocationWindow not available yet");
739 NSArray<NCGlobalPoint *> *points = @[
740 [[
NCGlobalPoint alloc] initWithLatitude:100.0 longitude:110.0],
741 [[
NCGlobalPoint alloc] initWithLatitude:105.0 longitude:115.0],
742 [[
NCGlobalPoint alloc] initWithLatitude:110.0 longitude:120.0],
743 [[
NCGlobalPoint alloc] initWithLatitude:115.0 longitude:125.0],
747 NSLog(
@"Created polyline map object with %lu points", (
unsigned long)points.count);
753 NSLog(
@"Polyline has %lu points", (
unsigned long)polylineShape.polyline.
points.count);
760 NSLog(
@"Added polyline map object");
764 NSArray *polylines = @[
766 [[
NCGlobalPoint alloc] initWithLatitude:120.0 longitude:130.0],
767 [[
NCGlobalPoint alloc] initWithLatitude:125.0 longitude:135.0],
768 [[
NCGlobalPoint alloc] initWithLatitude:130.0 longitude:140.0],
769 ]] locationId:1 sublocationId:0]],
771 [[
NCGlobalPoint alloc] initWithLatitude:135.0 longitude:145.0],
772 [[
NCGlobalPoint alloc] initWithLatitude:140.0 longitude:150.0],
773 [[
NCGlobalPoint alloc] initWithLatitude:145.0 longitude:155.0],
774 [[
NCGlobalPoint alloc] initWithLatitude:150.0 longitude:160.0],
775 ]] locationId:1 sublocationId:0]],
781 NSLog(
@"Added polyline with %lu points", (
unsigned long)line.polyline.polyline.points.count);
788 NSLog(
@"Removed polyline map object");
791 if (polylineObject != nil) {
794 NSArray<NCGlobalPoint *> *polylinePoints = @[
795 [[
NCGlobalPoint alloc] initWithLatitude:100.0 longitude:200.0],
796 [[
NCGlobalPoint alloc] initWithLatitude:150.0 longitude:250.0],
797 [[
NCGlobalPoint alloc] initWithLatitude:200.0 longitude:300.0],
798 [[
NCGlobalPoint alloc] initWithLatitude:250.0 longitude:350.0],
802 NSLog(
@"Set polyline with %lu points: %@", (
unsigned long)polylinePoints.count, polylineSuccess ?
@"YES" :
@"NO");
810 BOOL grew = [
polylineObject setDrawnFractionAnimated:1 duration:1.0 animationType:AnimationTypeLinear];
811 NSLog(
@"Polyline grow started: %@", grew ?
@"YES" :
@"NO");
815 NSLog(
@"Drawn fraction: %f", [polylineObject drawnFraction]);
821 NSLog(
@"Set polyline width to 3.0 pixels: %@", widthSuccess ?
@"YES" :
@"NO");
827 NSLog(
@"Set polyline color to green with 80%% opacity: %@", polylineColorSuccess ?
@"YES" :
@"NO");
833 NSLog(
@"Set polyline dash length: %@", dashSuccess ?
@"YES" :
@"NO");
839 NSLog(
@"Polyline dash length: %.1f", dashLength);
845 NSLog(
@"Set polyline gap length: %@", gapSuccess ?
@"YES" :
@"NO");
851 NSLog(
@"Polyline gap length: %.1f", gapLength);
857 NSLog(
@"Set polyline rendering order to 1: %@", polylineOrderSuccess ?
@"YES" :
@"NO");
863 NSLog(
@"Set polyline cap type to ROUND: %@", capTypeSuccess ?
@"YES" :
@"NO");
869 NSLog(
@"Set polyline join type to ROUND: %@", joinTypeSuccess ?
@"YES" :
@"NO");
875 NSLog(
@"Set polyline miter limit to 2.0: %@", miterLimitSuccess ?
@"YES" :
@"NO");
881 NSLog(
@"Set polyline outline width to 1.0 pixels: %@", outlineWidthSuccess ?
@"YES" :
@"NO");
887 NSLog(
@"Set polyline outline color to black: %@", outlineColorSuccess ?
@"YES" :
@"NO");
893 NSLog(
@"Set polyline outline alpha to 0.5: %@", outlineAlphaSuccess ?
@"YES" :
@"NO");
899 NSLog(
@"Set polyline outline rendering order to 0: %@", outlineOrderSuccess ?
@"YES" :
@"NO");
905 NSLog(
@"Set polyline outline cap type to SQUARE: %@", outlineCapTypeSuccess ?
@"YES" :
@"NO");
911 NSLog(
@"Set polyline outline join type to MITER: %@", outlineJoinTypeSuccess ?
@"YES" :
@"NO");
917 NSLog(
@"Set polyline outline miter limit to 3.0: %@", outlineMiterLimitSuccess ?
@"YES" :
@"NO");
923 NSLog(
@"Set polyline visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
929 NSLog(
@"Polyline map object type: %@", objectType);
935 NSLog(
@"Set polyline alpha to 0.7: %@", alphaSuccess ?
@"YES" :
@"NO");
941 NSLog(
@"Set polyline interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
947 NSLog(
@"Set polyline title to 'Polyline Object': %@", titleSuccess ?
@"YES" :
@"NO");
952 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
954 NSLog(
@"Set polyline custom data: %@", dataSuccess ?
@"YES" :
@"NO");
959 NSInteger objectId = polylineObject.id;
960 NSLog(
@"Polyline object ID: %ld", (
long)objectId);
965 NSString *objectTypeString = polylineObject.type;
966 NSLog(
@"Polyline object type: %@", objectTypeString);
971 NSDictionary *retrievedData = polylineObject.data;
972 NSLog(
@"Polyline custom data: %@", retrievedData);
981 NSLog(
@"--- Dotted Polyline Map Objects ---");
984 NSLog(
@"LocationWindow not available yet");
990 NSArray<NCGlobalPoint *> *points = @[
991 [[
NCGlobalPoint alloc] initWithLatitude:160.0 longitude:170.0],
992 [[
NCGlobalPoint alloc] initWithLatitude:165.0 longitude:175.0],
993 [[
NCGlobalPoint alloc] initWithLatitude:170.0 longitude:180.0],
994 [[
NCGlobalPoint alloc] initWithLatitude:175.0 longitude:185.0],
998 NSLog(
@"Created dotted polyline map object with %lu points", (
unsigned long)points.count);
1004 NSLog(
@"Dotted polyline has %lu points", (
unsigned long)dottedPolylineShape.polyline.
points.count);
1009 NSArray<NCGlobalPoint *> *dottedPoints = @[
1010 [[
NCGlobalPoint alloc] initWithLatitude:160.0 longitude:170.0],
1011 [[
NCGlobalPoint alloc] initWithLatitude:165.0 longitude:175.0],
1012 [[
NCGlobalPoint alloc] initWithLatitude:170.0 longitude:180.0],
1013 [[
NCGlobalPoint alloc] initWithLatitude:175.0 longitude:185.0],
1017 NSLog(
@"Set dotted polyline with %lu points: %@", (
unsigned long)dottedPoints.count, dottedSuccess ?
@"YES" :
@"NO");
1023 NSLog(
@"Set dotted polyline color to purple with 80%% opacity: %@", colorSuccess ?
@"YES" :
@"NO");
1029 NSLog(
@"Set dotted polyline width to 3.0 pixels: %@", widthSuccess ?
@"YES" :
@"NO");
1035 NSLog(
@"Set dotted polyline rendering order to 2: %@", orderSuccess ?
@"YES" :
@"NO");
1041 NSLog(
@"Enabled collision detection for dotted polyline: %@", collisionSuccess ?
@"YES" :
@"NO");
1047 NSLog(
@"Set dotted polyline placement to CENTER: %@", placementSuccess ?
@"YES" :
@"NO");
1053 NSLog(
@"Set dotted polyline placement min ratio to 0.5: %@", minRatioSuccess ?
@"YES" :
@"NO");
1059 NSLog(
@"Set dotted polyline placement spacing to 10.0: %@", spacingSuccess ?
@"YES" :
@"NO");
1065 NSLog(
@"Set dotted polyline rendering priority to 1: %@", prioritySuccess ?
@"YES" :
@"NO");
1071 NSLog(
@"Set dotted polyline repeat distance to 20.0: %@", repeatDistanceSuccess ?
@"YES" :
@"NO");
1077 NSLog(
@"Set dotted polyline repeat group to 1: %@", repeatGroupSuccess ?
@"YES" :
@"NO");
1082 NCSize *size = [[
NCSize alloc] initWithWidth:16.0 height:16.0];
1084 NSLog(
@"Set dotted polyline size to (%.1f, %.1f): %@", size.width, size.height, sizeSuccess ?
@"YES" :
@"NO");
1090 NSLog(
@"Set dotted polyline visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
1096 NSLog(
@"Dotted polyline map object type: %@", objectType);
1102 NSLog(
@"Set dotted polyline alpha to 0.8: %@", alphaSuccess ?
@"YES" :
@"NO");
1108 NSLog(
@"Set dotted polyline interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
1114 NSLog(
@"Set dotted polyline title to 'Dotted Polyline Object': %@", titleSuccess ?
@"YES" :
@"NO");
1119 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
1121 NSLog(
@"Set dotted polyline custom data: %@", dataSuccess ?
@"YES" :
@"NO");
1126 NSInteger objectId = dottedPolylineObject.id;
1127 NSLog(
@"Dotted polyline object ID: %ld", (
long)objectId);
1132 NSString *objectTypeString = dottedPolylineObject.type;
1133 NSLog(
@"Dotted polyline object type: %@", objectTypeString);
1138 NSDictionary *retrievedData = dottedPolylineObject.data;
1139 NSLog(
@"Dotted polyline custom data: %@", retrievedData);
1146 NSLog(
@"Added dotted polyline map object");
1150 NSArray *dottedPolylines = @[
1152 [[
NCGlobalPoint alloc] initWithLatitude:180.0 longitude:190.0],
1153 [[
NCGlobalPoint alloc] initWithLatitude:185.0 longitude:195.0],
1154 [[
NCGlobalPoint alloc] initWithLatitude:190.0 longitude:200.0],
1155 ]] locationId:1 sublocationId:0]],
1157 [[
NCGlobalPoint alloc] initWithLatitude:195.0 longitude:205.0],
1158 [[
NCGlobalPoint alloc] initWithLatitude:200.0 longitude:210.0],
1159 [[
NCGlobalPoint alloc] initWithLatitude:205.0 longitude:215.0],
1160 [[
NCGlobalPoint alloc] initWithLatitude:210.0 longitude:220.0],
1161 ]] locationId:1 sublocationId:0]],
1167 NSLog(
@"Added dotted polyline with %lu points", (
unsigned long)dottedLine.polyline.polyline.points.count);
1174 NSLog(
@"Removed dotted polyline map object");
1182 NSLog(
@"--- Cluster map objects ---");
1185 NSLog(
@"LocationWindow not available");
1192 NSLog(
@"Added cluster map object controller");
1195 if (controller == nil) {
1207 NSLog(
@"Registered icons for clustering: %d, %d", added1, added2);
1212 NSLog(
@"Clustering enabled");
1217 NSLog(
@"Clustering is enabled: %d", clusteringEnabled);
1222 NSLog(
@"Set cluster radius to 40 px");
1227 NSLog(
@"Cluster radius: %f", clusterRadius);
1232 NSLog(
@"Set cluster markers interactive: %d", interactiveSuccess);
1236 BOOL sizeSuccess = [
controller setClusterSizeWithWidth:32.0f height:32.0f];
1237 NSLog(
@"Set default cluster icon size: %d", sizeSuccess);
1240 DemoClusterMapObjectControllerListener *listener =
1245 NSLog(
@"Added cluster map object controller listener");
1250 NSLog(
@"Visible clusters: %lu", (
unsigned long)clusters.count);
1253 if (clusters.count > 0) {
1256 UIImage *clusterImage = [
UIImage imageWithContentsOfFile:@"/path/to/cluster.png"];
1258 NSLog(
@"Set cluster bitmap (UIImage): %d", bitmapSuccess);
1264 NSLog(
@"Removed cluster map object controller listener");
1269 NSLog(
@"Removed icon from cluster controller: %d", removed);
1276 NSLog(
@"Cleared cluster controller");
1280 BOOL controllerRemoved =
1282 NSLog(
@"Removed cluster map object controller: %d", controllerRemoved);