Closed venkatan91 closed 6 years ago
apple native maps
launching the apple maps after using the plugin I read the documentation to change the default mode URI_SCHEME to MAPKIT .I changed the mode but nothing worked.
startExternalMap() {
let options: LaunchNavigatorOptions = {
start: [this.start.latitude, this.start.longitude],
launchModeAppleMaps: "mapkit"
};
this.launchNavigator.navigate([this.selectedCompany.latitude, this.selectedCompany.longitude], options)
.then(
success => alert('Launched navigator'),
error => alert('Error launching navigator: ' + error)
);
}
Thanks in advance !!
versions uk.co.workingedge.phonegap.plugin.launchnavigator 4.1.3 ionic-native/launch-navigator 4.4.2 ios 11.2.5
Thanks
Upon investigation, this is simply down to how Apple Maps handles launch intents from the URI or MapKit call used to launch it, and as such this plugin has no control over how the Apple Maps app chooses to handle that intent.
In a nutshell: there's nothing I can do to change the behaviour of Apple Maps.
The launchModeAppleMaps parameter toggles between using the URI scheme to launch Apple Maps vs the native MapKit class.
The URI scheme is set as described in the Apple documentation, as is the MapKit class set according to that documentation.
There are no documented options for either launch method that would cause Apple Maps to launch differently and achieve different UI features as shown in your screenshots.
This is not sufficient information to open an issue.
If you are reporting a bug relating to existing plugin functionality, please give:
If you are requesting a new feature/functionality, please give a detailed outline of the proposed addition including links to relevant native API documentation where relevant.
Failure to give the above details will result in the issue being deemed invalid and it will be closed.