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],
79 NSLog(
@"LocationPolygon: sublocation %@, vertices %lu",
84 NSArray<NCGlobalPoint *> *linePts = @[
85 [[
NCGlobalPoint alloc] initWithLatitude:55.751 longitude:37.617],
86 [[
NCGlobalPoint alloc] initWithLatitude:55.753 longitude:37.620],
89 NSLog(
@"LocationPolyline points %lu", (
unsigned long)locationPolyline.
points.count);
97 NSLog(
@"--- Circle Map Objects ---");
100 NSLog(
@"LocationWindow not available yet");
108 NSLog(
@"Created circle map object with center (%f, %f) and radius 5.0", center.
latitude, center.
longitude);
113 double radius = circleObject.radius;
114 NSLog(
@"Circle radius: %f", radius);
121 NSLog(
@"Added circle map object");
125 NSArray *circles = @[
134 NSLog(
@"Added circle at (%f, %f) with radius %f", circle.center.latitude, circle.center.longitude, circle.radius);
141 NSLog(
@"Removed circle map object");
144 if (circleObject != nil) {
149 NSLog(
@"Set circle position to (%f, %f): %@", centerPoint.
latitude, centerPoint.
longitude, success ?
@"YES" :
@"NO");
155 BOOL animatedSuccess = [
circleObject setPositionAnimated:animatedPoint duration:2.0 animationType:AnimationTypeLinear];
156 NSLog(
@"Set circle position with animation to (%f, %f): %@", animatedPoint.
latitude, animatedPoint.
longitude, animatedSuccess ?
@"YES" :
@"NO");
162 NSLog(
@"Set circle radius to 10.0 meters: %@", radiusSuccess ?
@"YES" :
@"NO");
168 NSLog(
@"Enabled collision detection for circle: %@", collisionSuccess ?
@"YES" :
@"NO");
173 BOOL bufferSuccess = [
circleObject setBufferWithWidth:5.0 height:5.0];
174 NSLog(
@"Set collision buffer to 5x5 pixels: %@", bufferSuccess ?
@"YES" :
@"NO");
179 BOOL offsetSuccess = [
circleObject setOffsetWithX:2.0 longitude:3.0];
180 NSLog(
@"Set position offset to (2.0, 3.0) pixels: %@", offsetSuccess ?
@"YES" :
@"NO");
186 NSLog(
@"Set circle outline color to blue: %@", outlineColorSuccess ?
@"YES" :
@"NO");
192 NSLog(
@"Set circle outline alpha to 0.5: %@", outlineAlphaSuccess ?
@"YES" :
@"NO");
198 NSLog(
@"Set circle outline radius to 2.0: %@", outlineRadiusSuccess ?
@"YES" :
@"NO");
204 NSLog(
@"Set circle color to red with 80%% opacity: %@", colorSuccess ?
@"YES" :
@"NO");
210 NSLog(
@"Set rendering priority to 1: %@", prioritySuccess ?
@"YES" :
@"NO");
216 NSLog(
@"Set circle visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
222 NSLog(
@"Circle map object type: %@", objectType);
228 NSLog(
@"Set circle alpha to 0.7: %@", alphaSuccess ?
@"YES" :
@"NO");
234 NSLog(
@"Set circle interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
240 NSLog(
@"Set circle title to 'Circle Object': %@", titleSuccess ?
@"YES" :
@"NO");
246 titleStyle.
color =
@"#3366CC";
248 titleStyle.
anchor = NCTitleAnchorTop;
255 NSLog(
@"Set circle title with style: %@", titleStyleSuccess ?
@"YES" :
@"NO");
260 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
262 NSLog(
@"Set circle custom data: %@", dataSuccess ?
@"YES" :
@"NO");
267 NSInteger objectId = circleObject.id;
268 NSLog(
@"Circle object ID: %ld", (
long)objectId);
273 NSString *objectTypeString = circleObject.type;
274 NSLog(
@"Circle object type: %@", objectTypeString);
279 NSDictionary *retrievedData = circleObject.data;
280 NSLog(
@"Circle custom data: %@", retrievedData);
289 NSLog(
@"--- Icon Map Objects ---");
292 NSLog(
@"LocationWindow not available yet");
300 NSLog(
@"Created icon map object at (%f, %f)", position.
latitude, position.
longitude);
304 UIImage *iconImage = [
UIImage imageWithContentsOfFile:@"/path/to/icon.png"];
305 BOOL bitmapSuccess = (iconImage != nil) && [iconObject setBitmap:iconImage];
306 NSLog(
@"Set icon bitmap (UIImage): %@", bitmapSuccess ?
@"YES" :
@"NO");
312 NSLog(
@"Set icon flat mode to true: %@", flatSuccess ?
@"YES" :
@"NO");
317 NCSize *size = [[
NCSize alloc] initWithWidth:32.0 height:32.0];
319 NSLog(
@"Set icon size to (%.1f, %.1f): %@", size.width, size.height, sizeSuccess ?
@"YES" :
@"NO");
325 NSLog(
@"Set icon rotation angle to π/4: %@", angleSuccess ?
@"YES" :
@"NO");
330 BOOL angleAnimatedSuccess = [
iconObject setAngleAnimated:(float)(M_PI / 2.0) duration:2.0 animationType:NCSine];
331 NSLog(
@"Set icon rotation with animation to π/2: %@", angleAnimatedSuccess ?
@"YES" :
@"NO");
337 NSLog(
@"Enabled collision detection for icon: %@", collisionSuccess ?
@"YES" :
@"NO");
342 BOOL bufferSuccess = [
iconObject setBufferWithWidth:10.0 height:10.0];
343 NSLog(
@"Set collision buffer to 10x10 pixels: %@", bufferSuccess ?
@"YES" :
@"NO");
350 NSLog(
@"Set icon position to (%.1f, %.1f): %@", newPosition.
latitude, newPosition.
longitude, positionSuccess ?
@"YES" :
@"NO");
356 BOOL animatedSuccess = [
iconObject setPositionAnimated:animatedPosition duration:2.0 animationType:NCLinear];
357 NSLog(
@"Set icon position with animation to (%.1f, %.1f): %@", animatedPosition.
latitude, animatedPosition.
longitude, animatedSuccess ?
@"YES" :
@"NO");
362 BOOL offsetSuccess = [
iconObject setOffsetWithWidth:5.0 height:5.0];
363 NSLog(
@"Set icon offset to 5x5 pixels: %@", offsetSuccess ?
@"YES" :
@"NO");
369 NSLog(
@"Set icon priority to 1: %@", prioritySuccess ?
@"YES" :
@"NO");
375 NSLog(
@"Set icon visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
381 NSLog(
@"Icon map object type: %@", objectType);
387 NSLog(
@"Set icon alpha to 0.8: %@", alphaSuccess ?
@"YES" :
@"NO");
393 NSLog(
@"Set icon interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
399 NSLog(
@"Set icon title to 'Icon Object': %@", titleSuccess ?
@"YES" :
@"NO");
404 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
406 NSLog(
@"Set icon custom data: %@", dataSuccess ?
@"YES" :
@"NO");
411 NSInteger objectId = iconObject.id;
412 NSLog(
@"Icon object ID: %ld", (
long)objectId);
417 NSString *objectTypeString = iconObject.type;
418 NSLog(
@"Icon object type: %@", objectTypeString);
423 NSDictionary *retrievedData = iconObject.data;
424 NSLog(
@"Icon custom data: %@", retrievedData);
431 NSLog(
@"Added icon map object");
441 UIImage *loopIcon = [
UIImage imageWithContentsOfFile:@"/path/to/icon.png"];
443 if (loopIcon != nil) {
444 [
icon setBitmap:loopIcon];
448 NSLog(
@"Added icon at (%f, %f)", icon.position.latitude, icon.position.longitude);
455 NSLog(
@"Removed icon map object");
463 NSLog(
@"--- Model Map Objects ---");
466 NSLog(
@"LocationWindow not available yet");
472 NSLog(
@"Added model map object: %@", modelObject != nil ?
@"YES" :
@"NO");
475 if (modelObject == nil) {
482 NSLog(
@"Model setPosition: %@", posOk ?
@"YES" :
@"NO");
487 BOOL posAnimOk = [
modelObject setPositionAnimated:animatedModelPoint duration:0.5 animationType:AnimationTypeSine];
488 NSLog(
@"Model setPositionAnimated: %@", posAnimOk ?
@"YES" :
@"NO");
492 UIImage *texture = [
UIImage imageWithContentsOfFile:@"/path/to/model_texture.png"];
493 if (texture != nil) {
496 NSLog(
@"Model setModel: %@", modelOk ?
@"YES" :
@"NO");
501 BOOL sizeOk = [
modelObject setSizeWithWidth:64.0 height:64.0];
502 NSLog(
@"Model setSize: %@", sizeOk ?
@"YES" :
@"NO");
507 NSLog(
@"Model setCollisionEnabled: %@", collOk ?
@"YES" :
@"NO");
512 NSLog(
@"Model setAngle: %@", angleOk ?
@"YES" :
@"NO");
516 BOOL angleAnimOk = [
modelObject setAngleAnimated:(float)(M_PI / 2.0) duration:0.5 animationType:AnimationTypeQuint];
517 NSLog(
@"Model setAngleAnimated: %@", angleAnimOk ?
@"YES" :
@"NO");
521 BOOL bufOk = [
modelObject setBufferWithWidth:4.0 height:4.0];
522 NSLog(
@"Model setBuffer: %@", bufOk ?
@"YES" :
@"NO");
527 NSLog(
@"Model setPriority: %@", priOk ?
@"YES" :
@"NO");
532 NSLog(
@"Removed model map object: %@", removed ?
@"YES" :
@"NO");
540 NSLog(
@"--- Polygon Map Objects ---");
543 NSLog(
@"LocationWindow not available yet");
550 NSLog(
@"Added polygon map object");
553 if (polygonObject != nil) {
556 NSArray<NCGlobalPoint *> *points = @[
557 [[
NCGlobalPoint alloc] initWithLatitude:100.0 longitude:200.0],
558 [[
NCGlobalPoint alloc] initWithLatitude:150.0 longitude:250.0],
559 [[
NCGlobalPoint alloc] initWithLatitude:200.0 longitude:200.0],
560 [[
NCGlobalPoint alloc] initWithLatitude:150.0 longitude:150.0],
564 NSLog(
@"Set polygon with %lu points: %@", (
unsigned long)points.count, success ?
@"YES" :
@"NO");
570 NSLog(
@"Set polygon color to green with 70%% opacity: %@", colorSuccess ?
@"YES" :
@"NO");
576 NSLog(
@"Set polygon visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
582 NSLog(
@"Polygon map object type: %@", objectType);
588 NSLog(
@"Set polygon rendering order to 2: %@", orderSuccess ?
@"YES" :
@"NO");
594 NSLog(
@"Set polygon outline color to blue: %@", outlineColorSuccess ?
@"YES" :
@"NO");
600 NSLog(
@"Set polygon outline width to 2.0 pixels: %@", outlineWidthSuccess ?
@"YES" :
@"NO");
606 NSLog(
@"Set polygon outline alpha to 0.8: %@", outlineAlphaSuccess ?
@"YES" :
@"NO");
612 NSLog(
@"Set polygon outline order to 1: %@", outlineOrderSuccess ?
@"YES" :
@"NO");
618 NSLog(
@"Set polygon alpha to 0.6: %@", alphaSuccess ?
@"YES" :
@"NO");
624 NSLog(
@"Set polygon interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
630 NSLog(
@"Set polygon title to 'Polygon Object': %@", titleSuccess ?
@"YES" :
@"NO");
635 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
637 NSLog(
@"Set polygon custom data: %@", dataSuccess ?
@"YES" :
@"NO");
642 NSInteger objectId = polygonObject.id;
643 NSLog(
@"Polygon object ID: %ld", (
long)objectId);
648 NSString *objectTypeString = polygonObject.type;
649 NSLog(
@"Polygon object type: %@", objectTypeString);
654 NSDictionary *retrievedData = polygonObject.data;
655 NSLog(
@"Polygon custom data: %@", retrievedData);
661 if (polygonObject != nil) {
663 NSLog(
@"Removed polygon map object: %@", removed ?
@"YES" :
@"NO");
669 for (
int i = 0; i < 3; i++) {
671 if (polygon != nil) {
672 NSArray<NCGlobalPoint *> *points = @[
673 [[
NCGlobalPoint alloc] initWithLatitude:300.0 + i * 50 longitude:400.0 + i * 50],
674 [[
NCGlobalPoint alloc] initWithLatitude:350.0 + i * 50 longitude:450.0 + i * 50],
675 [[
NCGlobalPoint alloc] initWithLatitude:400.0 + i * 50 longitude:400.0 + i * 50],
676 [[
NCGlobalPoint alloc] initWithLatitude:350.0 + i * 50 longitude:350.0 + i * 50],
682 NSLog(
@"Created polygon %d with %lu points", i, (
unsigned long)points.count);
686 for (
int i = 0; i < polygons.count; i++) {
688 NSLog(
@"Removed polygon %d", i);
696 NSLog(
@"--- Polyline Map Objects ---");
699 NSLog(
@"LocationWindow not available yet");
705 NSArray<NCGlobalPoint *> *points = @[
706 [[
NCGlobalPoint alloc] initWithLatitude:100.0 longitude:110.0],
707 [[
NCGlobalPoint alloc] initWithLatitude:105.0 longitude:115.0],
708 [[
NCGlobalPoint alloc] initWithLatitude:110.0 longitude:120.0],
709 [[
NCGlobalPoint alloc] initWithLatitude:115.0 longitude:125.0],
713 NSLog(
@"Created polyline map object with %lu points", (
unsigned long)points.count);
719 NSLog(
@"Polyline has %lu points", (
unsigned long)polylineShape.polyline.
points.count);
726 NSLog(
@"Added polyline map object");
730 NSArray *polylines = @[
732 [[
NCGlobalPoint alloc] initWithLatitude:120.0 longitude:130.0],
733 [[
NCGlobalPoint alloc] initWithLatitude:125.0 longitude:135.0],
734 [[
NCGlobalPoint alloc] initWithLatitude:130.0 longitude:140.0],
735 ]] locationId:1 sublocationId:0]],
737 [[
NCGlobalPoint alloc] initWithLatitude:135.0 longitude:145.0],
738 [[
NCGlobalPoint alloc] initWithLatitude:140.0 longitude:150.0],
739 [[
NCGlobalPoint alloc] initWithLatitude:145.0 longitude:155.0],
740 [[
NCGlobalPoint alloc] initWithLatitude:150.0 longitude:160.0],
741 ]] locationId:1 sublocationId:0]],
747 NSLog(
@"Added polyline with %lu points", (
unsigned long)line.polyline.polyline.points.count);
754 NSLog(
@"Removed polyline map object");
757 if (polylineObject != nil) {
760 NSArray<NCGlobalPoint *> *polylinePoints = @[
761 [[
NCGlobalPoint alloc] initWithLatitude:100.0 longitude:200.0],
762 [[
NCGlobalPoint alloc] initWithLatitude:150.0 longitude:250.0],
763 [[
NCGlobalPoint alloc] initWithLatitude:200.0 longitude:300.0],
764 [[
NCGlobalPoint alloc] initWithLatitude:250.0 longitude:350.0],
768 NSLog(
@"Set polyline with %lu points: %@", (
unsigned long)polylinePoints.count, polylineSuccess ?
@"YES" :
@"NO");
774 NSLog(
@"Set polyline width to 3.0 pixels: %@", widthSuccess ?
@"YES" :
@"NO");
780 NSLog(
@"Set polyline color to green with 80%% opacity: %@", polylineColorSuccess ?
@"YES" :
@"NO");
786 NSLog(
@"Set polyline rendering order to 1: %@", polylineOrderSuccess ?
@"YES" :
@"NO");
792 NSLog(
@"Set polyline cap type to ROUND: %@", capTypeSuccess ?
@"YES" :
@"NO");
798 NSLog(
@"Set polyline join type to ROUND: %@", joinTypeSuccess ?
@"YES" :
@"NO");
804 NSLog(
@"Set polyline miter limit to 2.0: %@", miterLimitSuccess ?
@"YES" :
@"NO");
810 NSLog(
@"Set polyline outline width to 1.0 pixels: %@", outlineWidthSuccess ?
@"YES" :
@"NO");
816 NSLog(
@"Set polyline outline color to black: %@", outlineColorSuccess ?
@"YES" :
@"NO");
822 NSLog(
@"Set polyline outline alpha to 0.5: %@", outlineAlphaSuccess ?
@"YES" :
@"NO");
828 NSLog(
@"Set polyline outline rendering order to 0: %@", outlineOrderSuccess ?
@"YES" :
@"NO");
834 NSLog(
@"Set polyline outline cap type to SQUARE: %@", outlineCapTypeSuccess ?
@"YES" :
@"NO");
840 NSLog(
@"Set polyline outline join type to MITER: %@", outlineJoinTypeSuccess ?
@"YES" :
@"NO");
846 NSLog(
@"Set polyline outline miter limit to 3.0: %@", outlineMiterLimitSuccess ?
@"YES" :
@"NO");
852 NSLog(
@"Set polyline visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
858 NSLog(
@"Polyline map object type: %@", objectType);
864 NSLog(
@"Set polyline alpha to 0.7: %@", alphaSuccess ?
@"YES" :
@"NO");
870 NSLog(
@"Set polyline interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
876 NSLog(
@"Set polyline title to 'Polyline Object': %@", titleSuccess ?
@"YES" :
@"NO");
881 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
883 NSLog(
@"Set polyline custom data: %@", dataSuccess ?
@"YES" :
@"NO");
888 NSInteger objectId = polylineObject.id;
889 NSLog(
@"Polyline object ID: %ld", (
long)objectId);
894 NSString *objectTypeString = polylineObject.type;
895 NSLog(
@"Polyline object type: %@", objectTypeString);
900 NSDictionary *retrievedData = polylineObject.data;
901 NSLog(
@"Polyline custom data: %@", retrievedData);
910 NSLog(
@"--- Dotted Polyline Map Objects ---");
913 NSLog(
@"LocationWindow not available yet");
919 NSArray<NCGlobalPoint *> *points = @[
920 [[
NCGlobalPoint alloc] initWithLatitude:160.0 longitude:170.0],
921 [[
NCGlobalPoint alloc] initWithLatitude:165.0 longitude:175.0],
922 [[
NCGlobalPoint alloc] initWithLatitude:170.0 longitude:180.0],
923 [[
NCGlobalPoint alloc] initWithLatitude:175.0 longitude:185.0],
927 NSLog(
@"Created dotted polyline map object with %lu points", (
unsigned long)points.count);
933 NSLog(
@"Dotted polyline has %lu points", (
unsigned long)dottedPolylineShape.polyline.
points.count);
938 NSArray<NCGlobalPoint *> *dottedPoints = @[
939 [[
NCGlobalPoint alloc] initWithLatitude:160.0 longitude:170.0],
940 [[
NCGlobalPoint alloc] initWithLatitude:165.0 longitude:175.0],
941 [[
NCGlobalPoint alloc] initWithLatitude:170.0 longitude:180.0],
942 [[
NCGlobalPoint alloc] initWithLatitude:175.0 longitude:185.0],
946 NSLog(
@"Set dotted polyline with %lu points: %@", (
unsigned long)dottedPoints.count, dottedSuccess ?
@"YES" :
@"NO");
952 NSLog(
@"Set dotted polyline color to purple with 80%% opacity: %@", colorSuccess ?
@"YES" :
@"NO");
958 NSLog(
@"Set dotted polyline width to 3.0 pixels: %@", widthSuccess ?
@"YES" :
@"NO");
964 NSLog(
@"Set dotted polyline rendering order to 2: %@", orderSuccess ?
@"YES" :
@"NO");
970 NSLog(
@"Enabled collision detection for dotted polyline: %@", collisionSuccess ?
@"YES" :
@"NO");
976 NSLog(
@"Set dotted polyline placement to CENTER: %@", placementSuccess ?
@"YES" :
@"NO");
982 NSLog(
@"Set dotted polyline placement min ratio to 0.5: %@", minRatioSuccess ?
@"YES" :
@"NO");
988 NSLog(
@"Set dotted polyline placement spacing to 10.0: %@", spacingSuccess ?
@"YES" :
@"NO");
994 NSLog(
@"Set dotted polyline rendering priority to 1: %@", prioritySuccess ?
@"YES" :
@"NO");
1000 NSLog(
@"Set dotted polyline repeat distance to 20.0: %@", repeatDistanceSuccess ?
@"YES" :
@"NO");
1006 NSLog(
@"Set dotted polyline repeat group to 1: %@", repeatGroupSuccess ?
@"YES" :
@"NO");
1011 NCSize *size = [[
NCSize alloc] initWithWidth:16.0 height:16.0];
1013 NSLog(
@"Set dotted polyline size to (%.1f, %.1f): %@", size.width, size.height, sizeSuccess ?
@"YES" :
@"NO");
1019 NSLog(
@"Set dotted polyline visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
1025 NSLog(
@"Dotted polyline map object type: %@", objectType);
1031 NSLog(
@"Set dotted polyline alpha to 0.8: %@", alphaSuccess ?
@"YES" :
@"NO");
1037 NSLog(
@"Set dotted polyline interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
1043 NSLog(
@"Set dotted polyline title to 'Dotted Polyline Object': %@", titleSuccess ?
@"YES" :
@"NO");
1048 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
1050 NSLog(
@"Set dotted polyline custom data: %@", dataSuccess ?
@"YES" :
@"NO");
1055 NSInteger objectId = dottedPolylineObject.id;
1056 NSLog(
@"Dotted polyline object ID: %ld", (
long)objectId);
1061 NSString *objectTypeString = dottedPolylineObject.type;
1062 NSLog(
@"Dotted polyline object type: %@", objectTypeString);
1067 NSDictionary *retrievedData = dottedPolylineObject.data;
1068 NSLog(
@"Dotted polyline custom data: %@", retrievedData);
1075 NSLog(
@"Added dotted polyline map object");
1079 NSArray *dottedPolylines = @[
1081 [[
NCGlobalPoint alloc] initWithLatitude:180.0 longitude:190.0],
1082 [[
NCGlobalPoint alloc] initWithLatitude:185.0 longitude:195.0],
1083 [[
NCGlobalPoint alloc] initWithLatitude:190.0 longitude:200.0],
1084 ]] locationId:1 sublocationId:0]],
1086 [[
NCGlobalPoint alloc] initWithLatitude:195.0 longitude:205.0],
1087 [[
NCGlobalPoint alloc] initWithLatitude:200.0 longitude:210.0],
1088 [[
NCGlobalPoint alloc] initWithLatitude:205.0 longitude:215.0],
1089 [[
NCGlobalPoint alloc] initWithLatitude:210.0 longitude:220.0],
1090 ]] locationId:1 sublocationId:0]],
1096 NSLog(
@"Added dotted polyline with %lu points", (
unsigned long)dottedLine.polyline.polyline.points.count);
1103 NSLog(
@"Removed dotted polyline map object");
1111 NSLog(
@"--- Cluster map objects ---");
1114 NSLog(
@"LocationWindow not available");
1121 NSLog(
@"Added cluster map object controller");
1124 if (controller == nil) {
1136 NSLog(
@"Registered icons for clustering: %d, %d", added1, added2);
1141 NSLog(
@"Clustering enabled");
1146 NSLog(
@"Clustering is enabled: %d", clusteringEnabled);
1151 NSLog(
@"Set cluster radius to 40 px");
1156 NSLog(
@"Cluster radius: %f", clusterRadius);
1161 NSLog(
@"Set cluster markers interactive: %d", interactiveSuccess);
1165 BOOL sizeSuccess = [
controller setClusterSizeWithWidth:32.0f height:32.0f];
1166 NSLog(
@"Set default cluster icon size: %d", sizeSuccess);
1169 DemoClusterMapObjectControllerListener *listener =
1174 NSLog(
@"Added cluster map object controller listener");
1179 NSLog(
@"Visible clusters: %lu", (
unsigned long)clusters.count);
1182 if (clusters.count > 0) {
1185 UIImage *clusterImage = [
UIImage imageWithContentsOfFile:@"/path/to/cluster.png"];
1187 NSLog(
@"Set cluster bitmap (UIImage): %d", bitmapSuccess);
1193 NSLog(
@"Removed cluster map object controller listener");
1198 NSLog(
@"Removed icon from cluster controller: %d", removed);
1205 NSLog(
@"Cleared cluster controller");
1209 BOOL controllerRemoved =
1211 NSLog(
@"Removed cluster map object controller: %d", controllerRemoved);