Native MAP problem on finding some Countries

Hello,

I have a problem with the native newMapView (iOS map).

In my app, I have a search box for the user to put the Country name (search by country), and it seems that a lot of countires we put in the search box just dont work at all. The map should go to the center of the country if Im not mistaken, but instead just goes to China (I think), which seems to mean that the Map/GPS just cant find the coordinates.

It seems to happen whit countries far way from where I am, wich may be the reason why I dont think I ever found this problem with an European country (Im in Europe), but for example, Brazil has this problem.

I tried a workaround, which was to search for real coordinates in the center of the country (on Google Maps) in case of the more “expected” countries that the users of my app are sure to search for (like Brazil like Ive mentioned before), and using those coordinates to “force” the Map to go to that location but the result is exaclty the same: It just goes to China or something, so I figure the problem may be with the GPS/Native iOS map with countries/coordinates far away from where you are.

I would like to know if someone can confirm to me that thats exactly the case (native iOS map/GPS problem), and if someone else has found this problem beacause It actually seems like something really bothersome/annoying for apps with World Map usage.

Thanks in advance.

Hello,

Sorry for the bump, but its something so weird that I havent figured out yet. No one that uses the Map on their apps has anything like this happening?

I actually tried on Android now, and I have e similar problem, European countries are found easily, but others (like Brasil, the example I’ve said before) just doesn’t do anything (stays on “my location”).

Can it be something wrong on my lua code?

Thanks.

Are you getting any messages in your device’s console log that might clue you in?

Rob

Hello Rob,

No, all that I get are some lines like these on Xcode log:

May 18 12:27:14 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641234.973674]: Async scan requested by “locationd” for 1 iterations with maxage=0 priority normal on en0

May 18 12:27:14 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641234.974592]: Enqueuing command type: “Scan” pending commands: 0

May 18 12:27:14 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641234.975307]: Dequeuing command type: “Scan” pending commands: 0

May 18 12:27:14 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641234.977064]: Attempting Apple80211ScanAsync on en0

May 18 12:27:16 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641236.793019]: Completed Apple80211ScanAsync on en0 (0)

May 18 12:27:16 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641236.798450]: Async scan request completed for “locationd” (0)

Thanks.

That doesn’t look relevant to maps at all.

Rob

Hello,

I figured it out… it wasn’t the map itselft, but a problem in my code that checked the coordinates.

Thanks.

I was gonna tell you right away that it’s nothing to do with your map, before i saw your last message. I hope you’ve been able to rectify that?

Hello,

Sorry for the bump, but its something so weird that I havent figured out yet. No one that uses the Map on their apps has anything like this happening?

I actually tried on Android now, and I have e similar problem, European countries are found easily, but others (like Brasil, the example I’ve said before) just doesn’t do anything (stays on “my location”).

Can it be something wrong on my lua code?

Thanks.

Are you getting any messages in your device’s console log that might clue you in?

Rob

Hello Rob,

No, all that I get are some lines like these on Xcode log:

May 18 12:27:14 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641234.973674]: Async scan requested by “locationd” for 1 iterations with maxage=0 priority normal on en0

May 18 12:27:14 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641234.974592]: Enqueuing command type: “Scan” pending commands: 0

May 18 12:27:14 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641234.975307]: Dequeuing command type: “Scan” pending commands: 0

May 18 12:27:14 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641234.977064]: Attempting Apple80211ScanAsync on en0

May 18 12:27:16 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641236.793019]: Completed Apple80211ScanAsync on en0 (0)

May 18 12:27:16 iPhone-Terra-das-Ideias wifid[15] <Notice>: WiFi:[453641236.798450]: Async scan request completed for “locationd” (0)

Thanks.

That doesn’t look relevant to maps at all.

Rob

Hello,

I figured it out… it wasn’t the map itselft, but a problem in my code that checked the coordinates.

Thanks.

I was gonna tell you right away that it’s nothing to do with your map, before i saw your last message. I hope you’ve been able to rectify that?