ank5
asked on
Launch Google maps from Ionic with multiple markers
We are using the following code to launch Google Maps (which are downloaded for offline access) from Ionic application.
This launches Google Maps application on ios and sets the marker at the Longitude and Latitude that has been defined (even when the user is offline).
However, our requirement is to place multiple markers on the map. I have not been able to find a way to pass multiple longitudes and latitudes to the q parameter.
Any suggestions on how this requirement can be achieved?
var location = '33.917236,-118.012009';
window.open('comgooglemaps://?q=' + location, '_system');
This launches Google Maps application on ios and sets the marker at the Longitude and Latitude that has been defined (even when the user is offline).
However, our requirement is to place multiple markers on the map. I have not been able to find a way to pass multiple longitudes and latitudes to the q parameter.
Any suggestions on how this requirement can be achieved?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm not sure - if all resources are available I see no reason why it wouldn't run offline
That should be it on this question so let's wrap it up
Good luck on your project
Good luck on your project
ASKER
Will this launch the Google maps application on the device or can it only be used to display maps within the Ionic application?
We wanted to launch the Google maps application as user would not have internet access, so offline (downloaded) Google maps need to be used.