I need to open google map app on iOS using Meteor js. I could do it in Andriod using window.open("geo:" + addressLongLat, "_system");
, but the same code not working iOS.
4 Answers
Answers 1
On iOS geo: url scheme doesn't open Google maps, it can open Google Earth
Google maps app allows this three url schemes, comgooglemaps://
, comgooglemaps-x-callback://
and comgooglemapsurl://
More information about google maps url schemes
You can also use the http url, that will open the app if it's installed or a website if it isn't
Answers 2
Try window.open('maps://?q=' + addressLongLat, '_system');
for iOS.
Reference: https://gist.github.com/danharper/844382901f7a7b73b90a
Answers 3
I think this is an issue with loading the library within Meteor.startup. Is that how you're loading the library? If so, try place GoogleMaps.load within a template onRendered instead.
Answers 4
Using a geo
appended link will prompt the user to open the location in the maps application of their choice (assuming the user has more than one maps application on their device).
<a href="geo:-32.845027,23.006867">OPEN</a>
0 comments:
Post a Comment