forked from organicmaps/organicmaps
[ios] Fixed regression: non-working KML and GPX import
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
parent
7fffca074f
commit
6c466032f9
1 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,12 @@
|
|||
private func handleDeepLink(url: URL) -> Bool {
|
||||
LOG(.info, "handleDeepLink: \(url)")
|
||||
|
||||
if url.scheme == "file" {
|
||||
// Import bookmarks.
|
||||
DeepLinkParser.addBookmarksFile(url)
|
||||
return true // Async parsing can fail later, but here we always return true.
|
||||
}
|
||||
|
||||
// TODO(AB): Rewrite API so iOS and Android will call only one C++ method to clear/set API state.
|
||||
// This call is also required for DeepLinkParser.showMap, and it also clears old API points...
|
||||
let urlType = DeepLinkParser.parseAndSetApiURL(url)
|
||||
|
|
Loading…
Add table
Reference in a new issue