This repository was archived by the owner on Jun 8, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 122
Not showing annotations in Australia region #6
Copy link
Copy link
Open
Description
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"];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.
Please help me.
Thanks.
Metadata
Metadata
Assignees
Labels
No labels