How to open a mobile device's map app when a user clicks on a link?

前端 未结 7 1951
南旧
南旧 2020-12-23 01:56

I have a web app where if a user clicks on a link it should open up a map. The best solution that I can think of is to open up a new tab/window to google maps using the

7条回答
  •  春和景丽
    2020-12-23 02:45

    No need for anything fancy. You can simply double link the address like so.

    
      
        Address
    

    On Android this will open the Google maps app, and on iOS this will open the Apple maps app. (Untested on Windows phone)

提交回复
热议问题