-
-
Notifications
You must be signed in to change notification settings - Fork 125
Not showing annotations in Australia region #6
Comments
Having the same issue, im trying to display items in GUAM myself |
@crystaldonut @kapilgoyal12 have you able to sort out this issue? |
Hi, |
The problem seems to be related to the bounding box areas, By redefining the bounding box using different coordinates you can get international points; i've haven't had the time to make the next step; which is to react to mapview coordinate changes and use different bounding boxes; basically i will unload map data when moving to another bounding area. The solution is not the best for everybody since they are bounding boxes and you might get missing countries or regions (for example USA, covers north canada, hawaii but not Alaska); but since i need only specific world regions its good enough for my needs before a rewrite is required. |
Hi I solved this issue. there was a problem in bounding box area. i got the bounded box area from these function when user will move,scroll,zoom in and out the map. -(CLLocationCoordinate2D)getNECoordinate:(MKMapRect)mRect -(CLLocationCoordinate2D)getNWCoordinate:(MKMapRect)mRect -(CLLocationCoordinate2D)getSECoordinate:(MKMapRect)mRect -(CLLocationCoordinate2D)getSWCoordinate:(MKMapRect)mRect -(CLLocationCoordinate2D)getCoordinateFromMapRectanglePoint:(double)x y:(double)y -(NSArray *)getBoundingBox:(MKMapRect)mRect Thanks |
I have the same issue , how can i solve this? |
@vishnurkaimal |
I changed the area of the bounding box to: This is an area around London showing some clusters. The first two numbers are the co-ordinates of the top left corner and the second two numbers are the co-ordinates of the bottom right corner of the bounding box you want to make. (i.e. the numbers before the lat + lon decimal point) |
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.
The text was updated successfully, but these errors were encountered: