thoughtbot / TBAnnotationClustering

Example App: How To Efficiently Display Large Amounts of Data on iOS Maps
http://robots.thoughtbot.com/how-to-handle-large-amounts-of-data-on-maps/
MIT License
728 stars 125 forks source link

Ask other country annotation #5

Open furueili opened 10 years ago

furueili commented 10 years ago

hi ,

Please give me some help, I Use these following points, but not show in map..

121.512386, 25.051269 , test1, USA-United States, +1 760-757-7700 120.7279875, 24.1767195, test2, USA-United States, +1 321-255-3850 120.6500676, 24.1629695, test3, USA-United States, +1 321-255-3850

thx

kapilgoyal12 commented 9 years ago

Hi,

I am using these points. but it is now showing on map.

-33.8664143, 151.2051628, test2, Australia, +1 2234343443 -33.8674869, 151.2069902, test3, Australia, +2 5644564566

Please help me Thanks.

ZoebHusainSheikh commented 9 years ago

Hey am facing the same issue, when I use london data it doesn't display while its working with its demo data(Hotel coordinates)

davidetroise commented 9 years ago

Probably you have to change your world in buildTree method: TBBoundingBox world = TBBoundingBoxMake(19, -166, 72, -53); that are latitude minimum, longitude minimum, latitude maximum, and longitude maximum, respectively.

donpironet commented 9 years ago

Yup you can do something like:

  //latitude minimum, longitude minimum, latitude maximum, and longitude maximum
    TBBoundingBox world = TBBoundingBoxMake(-90, -180, 90, 180);
    _root = TBQuadTreeBuildWithData(dataArray, merchants.count, world, 4);

Then you've got all the coordinates.