You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 8, 2019. It is now read-only.
NSInteger count = lines.count-1;
TBQuadTreeNodeData *dataArray = malloc(sizeof(TBQuadTreeNodeData) * count);
for (NSInteger i = 0; i < count; i++)
{
dataArray[i] = TBDataFromLine(lines[i]);
}
TBBoundingBox world = TBBoundingBoxMake(19, -166, 72, -53);
_root = TBQuadTreeBuildWithData(dataArray, count, world, 4);
}
}
"TBBoundingBox world = TBBoundingBoxMake(19, -166, 72, -53);"
How did you define " TBBoundingBoxMake(19, -166, 72, -53) " this. because all values in TBBoundingBoxMake are static. if i change these values then annotations will not show in USA region.
Hi,
Your demo is very good. but it is working only USA region.
Please could you tell me how it will works for other region.
I read a function in your code
(void)buildTree
{
@autoreleasepool {
NSString *data = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"USA-HotelMotel" ofType:@"csv"] encoding:NSASCIIStringEncoding error:nil];
NSArray *lines = [data componentsSeparatedByString:@"\n"];
}
}
How did you define " TBBoundingBoxMake(19, -166, 72, -53) " this. because all values in TBBoundingBoxMake are static. if i change these values then annotations will not show in USA region.
Please help me.
Thanks.