Is there phonegap solution for opening the native maps app centred on a location or with a route displayed?
I figured it out, just use window location and the device intercepts it...
$('#map').bind('tap', function(){
var url = 'http://maps.google.com/maps?';
url += 'q=[place_name]';
url += '&near=';
url += [lat];
url += ',';
url += [lon];
url += '&z=15';
// open the native maps app by calling window location
window.location = url;
});
To open iOS6 Maps app, use maps.apple.com
domain.
See:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With