legomastermind
legomastermind

Reputation: 23

Maps in Cordova 3.5.0 (Multi-Platform)

I'm making an application that needs map links opening in default maps application... Can anybody help me. This is my current problematic code.

<a href="maps:q=Location" onClick="window.open('geo:0,0?q=Location', '_system');">  

This creates errors in Android when I return to the application.

Upvotes: 0

Views: 218

Answers (2)

legomastermind
legomastermind

Reputation: 23

<a onclick="window.open('http://maps.apple.com/maps?q=Place','_system','location=no');" href="geo:0,0?q=Place">Directions to Place</a>

Upvotes: 1

Krupa Patel
Krupa Patel

Reputation: 3359

Try this:

<a href="http://maps.apple.com/maps?q=21.551464, 73.951399"> 
   Open Maps
 </a>

Reference : Open google maps from hyperlink

Hope this may help you

Upvotes: 1

Related Questions