69 NSLog(
@"--- LocationPolygon / LocationPolyline records ---");
72 NSArray<NCPoint *> *ring = @[
73 [[
NCPoint alloc] initWithX:1.0 y:2.0],
74 [[
NCPoint alloc] initWithX:3.0 y:4.0],
75 [[
NCPoint alloc] initWithX:5.0 y:2.0],
80 NSLog(
@"LocationPolygon location %d sublocation %d vertices %lu",
85 NSArray<NCPoint *> *linePts = @[
86 [[
NCPoint alloc] initWithX:0.0 y:0.0],
87 [[
NCPoint alloc] initWithX:10.0 y:10.0],
92 NSLog(
@"LocationPolyline points %lu", (
unsigned long)polylineBack.
points.count);
100 NSLog(
@"--- Circle Map Objects ---");
103 NSLog(
@"LocationWindow not available yet");
111 NSLog(
@"Created circle map object with center (%f, %f) and radius 5.0", center.x, center.y);
117 NSLog(
@"Circle center: (%f, %f)", circleCenter.x, circleCenter.y);
122 double radius = circleObject.radius;
123 NSLog(
@"Circle radius: %f", radius);
130 NSLog(
@"Added circle map object");
134 NSArray *circles = @[
143 NSLog(
@"Added circle at (%f, %f) with radius %f", circle.center.x, circle.center.y, circle.radius);
150 NSLog(
@"Removed circle map object");
153 if (circleObject != nil) {
158 NSLog(
@"Set circle position to (%f, %f): %@", centerPoint.x, centerPoint.y, success ?
@"YES" :
@"NO");
164 BOOL animatedSuccess = [
circleObject setPositionAnimated:animatedPoint duration:2.0 animationType:AnimationTypeLinear];
165 NSLog(
@"Set circle position with animation to (%f, %f): %@", animatedPoint.x, animatedPoint.y, animatedSuccess ?
@"YES" :
@"NO");
171 NSLog(
@"Set circle radius to 10.0 meters: %@", radiusSuccess ?
@"YES" :
@"NO");
177 NSLog(
@"Enabled collision detection for circle: %@", collisionSuccess ?
@"YES" :
@"NO");
182 BOOL bufferSuccess = [
circleObject setBufferWithWidth:5.0 height:5.0];
183 NSLog(
@"Set collision buffer to 5x5 pixels: %@", bufferSuccess ?
@"YES" :
@"NO");
188 BOOL offsetSuccess = [
circleObject setOffsetWithX:2.0 y:3.0];
189 NSLog(
@"Set position offset to (2.0, 3.0) pixels: %@", offsetSuccess ?
@"YES" :
@"NO");
194 BOOL outlineColorSuccess = [
circleObject setOutlineColorWithRed:0.0 green:0.0 blue:1.0 alpha:1.0];
195 NSLog(
@"Set circle outline color to blue: %@", outlineColorSuccess ?
@"YES" :
@"NO");
201 NSLog(
@"Set circle outline alpha to 0.5: %@", outlineAlphaSuccess ?
@"YES" :
@"NO");
207 NSLog(
@"Set circle outline radius to 2.0: %@", outlineRadiusSuccess ?
@"YES" :
@"NO");
212 BOOL colorSuccess = [
circleObject setColorWithRed:1.0 green:0.0 blue:0.0 alpha:0.8];
213 NSLog(
@"Set circle color to red with 80%% opacity: %@", colorSuccess ?
@"YES" :
@"NO");
219 NSLog(
@"Set rendering priority to 1: %@", prioritySuccess ?
@"YES" :
@"NO");
225 NSLog(
@"Set circle visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
231 NSLog(
@"Circle map object type: %@", objectType);
237 NSLog(
@"Set circle alpha to 0.7: %@", alphaSuccess ?
@"YES" :
@"NO");
243 NSLog(
@"Set circle interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
249 NSLog(
@"Set circle title to 'Circle Object': %@", titleSuccess ?
@"YES" :
@"NO");
254 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
256 NSLog(
@"Set circle custom data: %@", dataSuccess ?
@"YES" :
@"NO");
261 NSInteger objectId = circleObject.id;
262 NSLog(
@"Circle object ID: %ld", (
long)objectId);
267 NSString *objectTypeString = circleObject.type;
268 NSLog(
@"Circle object type: %@", objectTypeString);
273 NSDictionary *retrievedData = circleObject.data;
274 NSLog(
@"Circle custom data: %@", retrievedData);
283 NSLog(
@"--- Icon Map Objects ---");
286 NSLog(
@"LocationWindow not available yet");
294 NSLog(
@"Created icon map object at (%f, %f)", position.x, position.y);
300 NSLog(
@"Icon position: (%f, %f)", iconPosition.x, iconPosition.y);
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 45 degrees: %@", angleSuccess ?
@"YES" :
@"NO");
330 BOOL angleAnimatedSuccess = [
iconObject setAngleAnimated:90.0 duration:2.0 animationType:NCSine];
331 NSLog(
@"Set icon rotation with animation to 90 degrees: %@", 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.x, newPosition.y, 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.x, animatedPosition.y, 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.x, icon.position.y);
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:90.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<NCPoint *> *points = @[
557 [[
NCPoint alloc] initWithX:100.0 y:200.0],
558 [[
NCPoint alloc] initWithX:150.0 y:250.0],
559 [[
NCPoint alloc] initWithX:200.0 y:200.0],
560 [[
NCPoint alloc] initWithX:150.0 y:150.0],
565 NSLog(
@"Set polygon with %lu points: %@", (
unsigned long)points.count, success ?
@"YES" :
@"NO");
570 BOOL colorSuccess = [
polygonObject setColorWithRed:0.0 green:1.0 blue:0.0 alpha:0.7];
571 NSLog(
@"Set polygon color to green with 70%% opacity: %@", colorSuccess ?
@"YES" :
@"NO");
577 NSLog(
@"Set polygon visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
583 NSLog(
@"Polygon map object type: %@", objectType);
589 NSLog(
@"Set polygon rendering order to 2: %@", orderSuccess ?
@"YES" :
@"NO");
594 BOOL outlineColorSuccess = [
polygonObject setOutlineColorWithRed:0.0 green:0.0 blue:1.0 alpha:1.0];
595 NSLog(
@"Set polygon outline color to blue: %@", outlineColorSuccess ?
@"YES" :
@"NO");
600 BOOL outlineWidthSuccess = [
polygonObject setOutlineWidth:2.0];
601 NSLog(
@"Set polygon outline width to 2.0 pixels: %@", outlineWidthSuccess ?
@"YES" :
@"NO");
606 BOOL outlineAlphaSuccess = [
polygonObject setOutlineAlpha:0.8];
607 NSLog(
@"Set polygon outline alpha to 0.8: %@", outlineAlphaSuccess ?
@"YES" :
@"NO");
612 BOOL outlineOrderSuccess = [
polygonObject setOutlineOrder:1];
613 NSLog(
@"Set polygon outline order to 1: %@", outlineOrderSuccess ?
@"YES" :
@"NO");
619 NSLog(
@"Set polygon alpha to 0.6: %@", alphaSuccess ?
@"YES" :
@"NO");
625 NSLog(
@"Set polygon interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
631 NSLog(
@"Set polygon title to 'Polygon Object': %@", titleSuccess ?
@"YES" :
@"NO");
636 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
638 NSLog(
@"Set polygon custom data: %@", dataSuccess ?
@"YES" :
@"NO");
643 NSInteger objectId = polygonObject.id;
644 NSLog(
@"Polygon object ID: %ld", (
long)objectId);
649 NSString *objectTypeString = polygonObject.type;
650 NSLog(
@"Polygon object type: %@", objectTypeString);
655 NSDictionary *retrievedData = polygonObject.data;
656 NSLog(
@"Polygon custom data: %@", retrievedData);
662 if (polygonObject != nil) {
664 NSLog(
@"Removed polygon map object: %@", removed ?
@"YES" :
@"NO");
670 for (
int i = 0; i < 3; i++) {
672 if (polygon != nil) {
673 NSArray<NCPoint *> *points = @[
674 [[
NCPoint alloc] initWithX:300.0 + i * 50 y:400.0 + i * 50],
675 [[
NCPoint alloc] initWithX:350.0 + i * 50 y:450.0 + i * 50],
676 [[
NCPoint alloc] initWithX:400.0 + i * 50 y:400.0 + i * 50],
677 [[
NCPoint alloc] initWithX:350.0 + i * 50 y:350.0 + i * 50],
682 [
polygon setColorWithRed:0.0 green:0.0 blue:1.0 alpha:0.5];
684 NSLog(
@"Created polygon %d with %lu points", i, (
unsigned long)points.count);
688 for (
int i = 0; i < polygons.count; i++) {
690 NSLog(
@"Removed polygon %d", i);
698 NSLog(
@"--- Polyline Map Objects ---");
701 NSLog(
@"LocationWindow not available yet");
707 NSArray<NCPoint *> *points = @[
708 [[
NCPoint alloc] initWithX:100.0 y:110.0],
709 [[
NCPoint alloc] initWithX:105.0 y:115.0],
710 [[
NCPoint alloc] initWithX:110.0 y:120.0],
711 [[
NCPoint alloc] initWithX:115.0 y:125.0],
716 NSLog(
@"Created polyline map object with %lu points", (
unsigned long)points.count);
722 NSLog(
@"Polyline has %lu points", (
unsigned long)polylineShape.
polyline.
points.count);
729 NSLog(
@"Added polyline map object");
733 NSArray *polylines = @[
735 [[
NCPoint alloc] initWithX:120.0 y:130.0],
736 [[
NCPoint alloc] initWithX:125.0 y:135.0],
737 [[
NCPoint alloc] initWithX:130.0 y:140.0],
738 ]] locationId:1 sublocationId:0]],
740 [[
NCPoint alloc] initWithX:135.0 y:145.0],
741 [[
NCPoint alloc] initWithX:140.0 y:150.0],
742 [[
NCPoint alloc] initWithX:145.0 y:155.0],
743 [[
NCPoint alloc] initWithX:150.0 y:160.0],
744 ]] locationId:1 sublocationId:0]],
750 NSLog(
@"Added polyline with %lu points", (
unsigned long)line.polyline.polyline.points.count);
757 NSLog(
@"Removed polyline map object");
760 if (polylineObject != nil) {
763 NSArray<NCPoint *> *polylinePoints = @[
764 [[
NCPoint alloc] initWithX:100.0 y:200.0],
765 [[
NCPoint alloc] initWithX:150.0 y:250.0],
766 [[
NCPoint alloc] initWithX:200.0 y:300.0],
767 [[
NCPoint alloc] initWithX:250.0 y:350.0],
772 NSLog(
@"Set polyline with %lu points: %@", (
unsigned long)polylinePoints.count, polylineSuccess ?
@"YES" :
@"NO");
778 NSLog(
@"Set polyline width to 3.0 pixels: %@", widthSuccess ?
@"YES" :
@"NO");
783 BOOL polylineColorSuccess = [
polylineObject setColorWithRed:0.0 green:1.0 blue:0.0 alpha:0.8];
784 NSLog(
@"Set polyline color to green with 80%% opacity: %@", polylineColorSuccess ?
@"YES" :
@"NO");
790 NSLog(
@"Set polyline rendering order to 1: %@", polylineOrderSuccess ?
@"YES" :
@"NO");
796 NSLog(
@"Set polyline cap type to ROUND: %@", capTypeSuccess ?
@"YES" :
@"NO");
802 NSLog(
@"Set polyline join type to ROUND: %@", joinTypeSuccess ?
@"YES" :
@"NO");
808 NSLog(
@"Set polyline miter limit to 2.0: %@", miterLimitSuccess ?
@"YES" :
@"NO");
814 NSLog(
@"Set polyline outline width to 1.0 pixels: %@", outlineWidthSuccess ?
@"YES" :
@"NO");
819 BOOL outlineColorSuccess = [
polylineObject setOutlineColorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
820 NSLog(
@"Set polyline outline color to black: %@", outlineColorSuccess ?
@"YES" :
@"NO");
826 NSLog(
@"Set polyline outline alpha to 0.5: %@", outlineAlphaSuccess ?
@"YES" :
@"NO");
832 NSLog(
@"Set polyline outline rendering order to 0: %@", outlineOrderSuccess ?
@"YES" :
@"NO");
838 NSLog(
@"Set polyline outline cap type to SQUARE: %@", outlineCapTypeSuccess ?
@"YES" :
@"NO");
844 NSLog(
@"Set polyline outline join type to MITER: %@", outlineJoinTypeSuccess ?
@"YES" :
@"NO");
850 NSLog(
@"Set polyline outline miter limit to 3.0: %@", outlineMiterLimitSuccess ?
@"YES" :
@"NO");
856 NSLog(
@"Set polyline visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
862 NSLog(
@"Polyline map object type: %@", objectType);
868 NSLog(
@"Set polyline alpha to 0.7: %@", alphaSuccess ?
@"YES" :
@"NO");
874 NSLog(
@"Set polyline interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
880 NSLog(
@"Set polyline title to 'Polyline Object': %@", titleSuccess ?
@"YES" :
@"NO");
885 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
887 NSLog(
@"Set polyline custom data: %@", dataSuccess ?
@"YES" :
@"NO");
892 NSInteger objectId = polylineObject.id;
893 NSLog(
@"Polyline object ID: %ld", (
long)objectId);
898 NSString *objectTypeString = polylineObject.type;
899 NSLog(
@"Polyline object type: %@", objectTypeString);
904 NSDictionary *retrievedData = polylineObject.data;
905 NSLog(
@"Polyline custom data: %@", retrievedData);
914 NSLog(
@"--- Dotted Polyline Map Objects ---");
917 NSLog(
@"LocationWindow not available yet");
923 NSArray<NCPoint *> *points = @[
924 [[
NCPoint alloc] initWithX:160.0 y:170.0],
925 [[
NCPoint alloc] initWithX:165.0 y:175.0],
926 [[
NCPoint alloc] initWithX:170.0 y:180.0],
927 [[
NCPoint alloc] initWithX:175.0 y:185.0],
932 NSLog(
@"Created dotted polyline map object with %lu points", (
unsigned long)points.count);
938 NSLog(
@"Dotted polyline has %lu points", (
unsigned long)dottedPolylineShape.
polyline.
points.count);
943 NSArray<NCPoint *> *dottedPoints = @[
944 [[
NCPoint alloc] initWithX:160.0 y:170.0],
945 [[
NCPoint alloc] initWithX:165.0 y:175.0],
946 [[
NCPoint alloc] initWithX:170.0 y:180.0],
947 [[
NCPoint alloc] initWithX:175.0 y:185.0],
952 NSLog(
@"Set dotted polyline with %lu points: %@", (
unsigned long)dottedPoints.count, dottedSuccess ?
@"YES" :
@"NO");
958 NSLog(
@"Set dotted polyline color to purple with 80%% opacity: %@", colorSuccess ?
@"YES" :
@"NO");
964 NSLog(
@"Set dotted polyline width to 3.0 pixels: %@", widthSuccess ?
@"YES" :
@"NO");
970 NSLog(
@"Set dotted polyline rendering order to 2: %@", orderSuccess ?
@"YES" :
@"NO");
976 NSLog(
@"Enabled collision detection for dotted polyline: %@", collisionSuccess ?
@"YES" :
@"NO");
982 NSLog(
@"Set dotted polyline placement to CENTER: %@", placementSuccess ?
@"YES" :
@"NO");
988 NSLog(
@"Set dotted polyline placement min ratio to 0.5: %@", minRatioSuccess ?
@"YES" :
@"NO");
994 NSLog(
@"Set dotted polyline placement spacing to 10.0: %@", spacingSuccess ?
@"YES" :
@"NO");
1000 NSLog(
@"Set dotted polyline rendering priority to 1: %@", prioritySuccess ?
@"YES" :
@"NO");
1006 NSLog(
@"Set dotted polyline repeat distance to 20.0: %@", repeatDistanceSuccess ?
@"YES" :
@"NO");
1012 NSLog(
@"Set dotted polyline repeat group to 1: %@", repeatGroupSuccess ?
@"YES" :
@"NO");
1017 NCSize *size = [[
NCSize alloc] initWithWidth:16.0 height:16.0];
1019 NSLog(
@"Set dotted polyline size to (%.1f, %.1f): %@", size.width, size.height, sizeSuccess ?
@"YES" :
@"NO");
1025 NSLog(
@"Set dotted polyline visibility to true: %@", visibleSuccess ?
@"YES" :
@"NO");
1031 NSLog(
@"Dotted polyline map object type: %@", objectType);
1037 NSLog(
@"Set dotted polyline alpha to 0.8: %@", alphaSuccess ?
@"YES" :
@"NO");
1043 NSLog(
@"Set dotted polyline interactive to true: %@", interactiveSuccess ?
@"YES" :
@"NO");
1049 NSLog(
@"Set dotted polyline title to 'Dotted Polyline Object': %@", titleSuccess ?
@"YES" :
@"NO");
1054 NSDictionary *customData = @{
@"key":
@"value",
@"number":
@"42"};
1056 NSLog(
@"Set dotted polyline custom data: %@", dataSuccess ?
@"YES" :
@"NO");
1061 NSInteger objectId = dottedPolylineObject.id;
1062 NSLog(
@"Dotted polyline object ID: %ld", (
long)objectId);
1067 NSString *objectTypeString = dottedPolylineObject.type;
1068 NSLog(
@"Dotted polyline object type: %@", objectTypeString);
1073 NSDictionary *retrievedData = dottedPolylineObject.data;
1074 NSLog(
@"Dotted polyline custom data: %@", retrievedData);
1081 NSLog(
@"Added dotted polyline map object");
1085 NSArray *dottedPolylines = @[
1087 [[
NCPoint alloc] initWithX:180.0 y:190.0],
1088 [[
NCPoint alloc] initWithX:185.0 y:195.0],
1089 [[
NCPoint alloc] initWithX:190.0 y:200.0],
1090 ]] locationId:1 sublocationId:0]],
1092 [[
NCPoint alloc] initWithX:195.0 y:205.0],
1093 [[
NCPoint alloc] initWithX:200.0 y:210.0],
1094 [[
NCPoint alloc] initWithX:205.0 y:215.0],
1095 [[
NCPoint alloc] initWithX:210.0 y:220.0],
1096 ]] locationId:1 sublocationId:0]],
1102 NSLog(
@"Added dotted polyline with %lu points", (
unsigned long)dottedLine.polyline.polyline.points.count);
1109 NSLog(
@"Removed dotted polyline map object");
1117 NSLog(
@"--- Cluster map objects ---");
1120 NSLog(
@"LocationWindow not available");
1127 NSLog(
@"Added cluster map object controller");
1130 if (controller == nil) {
1142 NSLog(
@"Registered icons for clustering: %d, %d", added1, added2);
1147 NSLog(
@"Clustering enabled");
1152 NSLog(
@"Clustering is enabled: %d", clusteringEnabled);
1157 NSLog(
@"Set cluster radius to 40 px");
1162 NSLog(
@"Cluster radius: %f", clusterRadius);
1167 NSLog(
@"Set cluster markers interactive: %d", interactiveSuccess);
1171 BOOL sizeSuccess = [
controller setClusterSizeWithWidth:32.0f height:32.0f];
1172 NSLog(
@"Set default cluster icon size: %d", sizeSuccess);
1175 DemoClusterMapObjectControllerListener *listener =
1180 NSLog(
@"Added cluster map object controller listener");
1185 NSLog(
@"Visible clusters: %lu", (
unsigned long)clusters.count);
1188 if (clusters.count > 0) {
1191 UIImage *clusterImage = [
UIImage imageWithContentsOfFile:@"/path/to/cluster.png"];
1193 NSLog(
@"Set cluster bitmap (UIImage): %d", bitmapSuccess);
1199 NSLog(
@"Removed cluster map object controller listener");
1204 NSLog(
@"Removed icon from cluster controller: %d", removed);
1211 NSLog(
@"Cleared cluster controller");
1215 BOOL controllerRemoved =
1217 NSLog(
@"Removed cluster map object controller: %d", controllerRemoved);