Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

ionic2 地图导航跳转第三方应用(优先跳转百度地图,若没安装会自动跳转高德地图, 若都没有安装则提示需要安装)

License

Notifications You must be signed in to change notification settings

1ziton/cordova-plugin-mapnavigator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MapNavigatorPlugin

ionic2 地图导航跳转第三方应用(优先跳转百度地图,若没安装会自动跳转高德地图, 若都没有安装则提示需要安装)

Usage

cordova plugin add cordova-plugin-mapnavigator
cordova.plugins.MapNavigator.baiMapNavigatorMethod(address, result => {
                if (result === false) {
                    //提示请安装百度或者高德app;
                    that.alert.showAlert("未检测到导航软件,请安装百度地图或高度地图App");
                }
            }, error => {
                console.log(error);
            })

About

ionic2 地图导航跳转第三方应用(优先跳转百度地图,若没安装会自动跳转高德地图, 若都没有安装则提示需要安装)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published