Код: Выделить всё
_launchMaps(double lat, double lon) async {
String googleUrl =
'comgooglemaps://?center=${lat},${lon}';
String appleUrl =
'https://www.google.com/maps/search/?api=1&query=$lat,$lon';
if (await canLaunch("comgooglemaps://")) {
print('launching com googleUrl');
await launch(googleUrl);
} else if (await canLaunch(appleUrl)) {
print('launching apple url');
await launch(appleUrl);
} else {
throw 'Could not launch url';
}
}
Код: Выделить всё
LSApplicationQueriesSchemes
googlechromes
comgooglemaps
В ios я открываю карту Google, расположение указано в маркере, но я не получаю кнопку «Дирекции» или что -либо, что я могу начинать. Как это исправить?
Подробнее здесь: https://stackoverflow.com/questions/639 ... efined-loc