Open Google Map with markers within Google Maps App - javascript

I've used the Google Maps JavaScript API to put a bunch of markers on a map, within a web page. I'd like to allow users to choose to open the map, with markers, within the Google Maps app, should they have it on their device.
Currently the markers, when clicked, display the name of the location and some other details. I'd like to maintain this functionality within the app too.
Is there an easy way to achieve this? I'm a front-end web developer with a decent amount of JS experience, but I don't have any experience developing iOS or Android apps, and I was hoping there'd be an easy solution within the API, but haven't come across an answer. There's a good chance that this simply isn't possible due to the differences between the web and app platforms, but I just don't know.

This is a built-in feature of the Google Maps iOS (and thus I assume Android) API. In the iOS API, add the following entry in Info.plist file:
LSApplicationQueriesSchemes
Item 0... String... googlechromes
Item 1... String... comgooglemaps
And then whenever a marker is tapped in the app, if the user then taps the Google attribution logo (usually at the bottom of the screen), the Google Maps app will open that marker. These entries allow for that to happen.
The Android guys can speak to Android but I'm sure it's as simple, if not simpler. Here are some methods: How to open standard Google Map application from my application?

Related

location not detecting using gwt map api

I am using a GWT web-based application which is using map API for searching places, mapshare, poi etc.
actually when I am loading map into microsoft edge browser it is asking location access of user and if I don't allow and search anything into map then it is zooming into arctic ocean but pointing to correct location for the first time, and it is behaving properly in other browser like chrome, firefox etc.
and I am not able to debug also the entire project using eclipse. Every time I have to use maven build command to launch the application locally.

Mobile live geolocation

Im trying to get my Iphones live location to show on a map on my website.
Is there a way to acomplish this easily using HTML5 Geolocation or is it better to use Google Maps Geolocation API, or some other library?
Thanks.
I use Google Maps Geolocation API in WEB APP developed with .NET C #
And it was great
At HyperTrack we have an SDK which you can plugin to your app in as little as 3 lines of code and automatically enable location tracking in your application and view (for free) on our Dashboard. In our Sandbox mode (read: Test Mode) you can track and assign actions for up to 20 users for free as well. This mode also gives you an Action Widget that you can embed anywhere to see the activity of your user(s)/device(s).
For iOS you can visit our iOS Integration Guide.

Why doesn't the Google Map in Cordova/Ionic always load in certain devices

I am trying to figure out why sometimes the Google Map in my Ionic app does not always load in certain Android/iOS devices. It's a hit and miss issue and at first I thought it could be network or GPS issues affecting it, but the issue also happens when these are clearly up and running.
Could it be that the Google Map Javascript API faces outages lasting for a few seconds?

Launch map app on mobile device with multiple destinations

I'm looking to launch the native map app on iOS, Android and Windows Phone devices with multiple destinations shown in the directions.
Sending basic directions works fine using Google and Apple maps daddr but from what I can there's no way to specify multiple destinations using the map link (example below).
https://www.google.com/maps?daddr=LAT,LONG
I've also tried using a URL to load the desktop version of Google maps (which asks if the user wants to open the app anyway) but multiple destinations doesn't seem to be supported with Apple maps. The code below does work on Android devices but not iOS and Window Phone.
https://www.google.co.uk/maps/dir/Current+Location/LAT,LONG,LAT,LONG
Is there any way to make this happen on iOS, Android and Window Phone devices?
Edit: I need to native map apps to launch as this seems to be the only way to show the navigation (sat-nav like) maps.
searched the web, looks like its not supported on iOS
http://www.macworld.com/article/2687984/how-to-create-multi-destination-map-routes-on-your-iphone.html

Offline Custom Tiled Google Map with Phonegap?

I have a custom made tile for google map. Works perfectly fine online, but when I turn off data on my phone, it just shows the loading icon, as it can't communicate with google.
As I have my own tiles, is it possible to use google maps offline with phonegap?
I don't believe it is possible to use Google's API offline. However, If you have your own tiles, and have them embedded within your application archive, you could use Leaflet to render the local tiles. http://leafletjs.com/ If your custom tiles are remote (hosted on a server), then you're still not going to be able to consume them in an offline scenario.

Categories

Resources