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.
Related
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?
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
I am building a web app with Google AppEngine. I am using the Google Maps, Google Places, and Geocoding API's.
In the local version, everything works as it should. When the page is loaded, the user's current location is indicated and all the nearby stores are marked with markers on the map that appears on the webpage.
In the deployed version, only the map loads. I checked the console developer's log on Google and I noticed that a request to the Google Maps API is made, but not to the Google Places or Geocoding API's. I'm really confused/not sure what's going on. I tried browsing through some old questions, but I can't figure out how to fix this. If anyone could offer a solution, I would greatly appreciate it.
** I have made sure that the deployed version is the most recent version. It 100% works on localhost, but doesn't on the deployed webpage.
Edit: the API's aren't being called because they don't work on "insecure origins". I've configured the app.yaml under handlers to be
- url: /.*
script: IGNORED
secure: always
but it doesn't seem to make a difference.
You don't have to separately call Google Places and Geocoding APIs. All those are included in the Google Map API. If you want to choose on what you should include in your map click here to refer the API on customizing your map.
By default, Google App Engine doesn't support secure connections, which both the Geolocation & Google Places API's need, in order to be called. However, Google App Engine can support secure connections. The local host does support secure connections, which is why the local version of my app was working.
To properly support secure connections after deploying the app, just add in the parameter "secure: always" in the app.yaml file under Handlers!
For a mapping website I would like to provide navigation information by launching waze / gogle maps/native map in this order of priority.
Is there a way to automatically detect which app is available on the device, maybe by some kind of usage of their url schemes, or do I have to just show options to the user?
Visiting www.google.com on the Android browser (or even with an android spoofed user-agent), presents the option to "Share Location". When clicked, it uses the GPS/Cell phone towers to figure out the location. I tried the google.loader.clientLocation but that only works using the IP address.
Is there a method to tap into the Android OS and access GPS data from a regular web application (and not an Android application) similar to the way Google does?
[Perhaps Google uses the Google Gears app on Android to access this data.]
Thanks!
This is an HTML5 API, and it'll work on Webkit-derivatives, Chrome, and Firefox 3.5 (for now).
http://dev.w3.org/geo/api/spec-source.html
http://merged.ca/iphone/html5-geolocation
I was trying that recently and found this forum posting interesting. I did not find a real good way to do this either and it doesn't look like we can do that without writing our own app which opens a browser instance.
http://androidforums.com/support/8868-how-get-gps-coordinates-browser.html
Here is also a nice example: http://klauskjeldsen.dk/w3c-geolocation-api-html5/