Has there been a change in Google maps for mobile? - google-maps

I am having trouble getting Google Maps to work on my mobile website Here is my google maps direction page that i have been using for a while now. Here is the code in a txt file
The problem is that google maps doesn't show the route anymore but just the fronpage of google maps mobile.
Have there been some changes that i don't know about, this used to always work?
Thanks
Dave

make sure your form has a saddr and an eaddr fields (i have mine set to hidden) and change the form action just simply to "http://maps.google.com", no need for "m" or "directions", it'll just figure it all out now, which action it should take, based on the user agent I guess.
This will however, on mobile platforms, prompt an activity picker on android or launch google maps automatically on iPhone.
From what Im seeing at this point in the game, the onyl way around forcing anything is to write your own parser for the Google Directions API, using a combination of cURL and the json_decode function of PHP
:\ sadly

Related

Link to map switches to app but does nothing

Given the following TS code to open a link to Google Maps:
const linkToMap = `https://google.com/maps/search/?api=1&query=${searchTerm}`;
window.open(linkToMap, '_blank');
When opening from a desktop or mobile browser, it works as expected. A new tab opens to Google Maps with a search for the query term. However, on Android devices, Google Maps will open and then do nothing. It will show whatever was open in the app when it was last used. It is behaving like it recognizes the maps link, but cannot handle the parameters. How can I fix this? Is there a specific way I need to structure the link? Is there a way to get logs for the app to see if its throwing an error?
I've tried using an older link scheme (https://www.google.com/maps?q=760+West+Genesee+Street+Syracuse+NY+13204) but got the same result.

How to implement Google map in Xamarin forms

I'm trying to make xamarin.forms app with google map on page.
Earlier I used Device.OpenUri, but as official documetation says: "This often navigates out of the application."
My goal is to stay in aplication and make exact the same page like this:
I can't find any good documentation or step by step tutoriel neighter...
Did you check Xamarin Forms Map? If you don't like how the default pins look like, you can define a template for them (check here).
In case you already have a link of google maps that you want to show, and you don't want to create it by yourself (solution from above), try with WebView and set URL to the link you have.

Pop out Google Picker from IFRAME in Google Sites Apps Script Gadget?

So I made this google apps script to use the google picker on my google sites webpage. The apps script is inserted into the webpage via the google apps script gadget. This all functions as I intended, however, it does not behave the way I'd like it to or expected. Everything is rendered inside the requisite IFRAME. And from what I can find and tried, this has to be the case (please correct me if I'm wrong). This requires me to provide the screen real estate to show the picker even when it's not visible - which is pretty poor design. Does anyone know a way around this? That is, to make the picker modal to or pop out of the IFRAME instead stuck inside it?

Is there a way to construct mobile friendly google maps urls that do not redirect to google places?

I'm attempting to construct and send a google maps url to a mobile browser. When the url is opened I would like it to bring up a google map with the geopoint marked. I have seen the stack question: What parameters should I use in a Google Maps URL to go to a lat-lon? And the answer there works perfectly for iphones, and standard PC/Mac browsers. However I opened the link I created
https://maps.google.com/maps?z=18&t=h&q=loc:51.5+-0.07
with Opera Mobile and was redirected to google places with a url like
maps.google.com/m/local?z=18&t=h&q=loc:51.5+-0.07
and the textbox was filled with
loc:51.5 -0.07
i.e. the geopoint. There was no map in sight, and searching for the details autofilled in the text box did not give me anything. When I attempted to navigate to this url on my mac it gave me a 404 error. Is there a way to construct mobile friendly google maps urls that will not redirect to google places?
The parameters for launching Google Maps are undocumented, which means they're subject to change without notification. You might want to look at using a Google Maps API instead, such as the Static Maps API if all you want is an image:
https://developers.google.com/maps/documentation/staticmaps/
or the JavaScript API:
https://developers.google.com/maps/documentation/javascript/
That way too you can keep people in your own application.

Google Maps API v3 - how to save map into cookie/localstorage

I'm building a page which loads a google map, with street view on another div on the side and I would like to save that data so if the user closes his browser window and then comes back that it will bring it up again without the need to call the Google Map API again.
I've tried saving the div contents and replace it with the current one incase the user visited already.
I tried with cookies but couldn't save much information due for size limit of 4kb and I've tried localStorage (HTML5) but it didn't work as expected.
Any ideas?
Thanks