google maps javascript API v3 bug

Veröffentlicht am: 18 Februar 2016
auf dem Kanal: John Andersen
241
0

For Google Maps JavaScript API version 3 if you load the maps script with the URL given by the examples:

https://google-developers.appspot.com...

Loads the API with:

script
src="https://maps.googleapis.com/maps/api/..."
async defer
/script

// YouTube doesn't allow brackets so they are omitted

Touch events will not work correctly on mobile devices. In fact it believes that all touch events are in the upper left hand corner. This can be tested by going to this example:

https://google-developers.appspot.com...

On a mobile device or with chrome emulating a phone and then taping the map. As the example states it should pan to where you touch but instead it will pan to the upper left every time. The correct behavior is only seen on a computer.

The solution is to remove signed_in=true from the script load. Thus the correct script URL looks like:

https://maps.googleapis.com/maps/api/...


Auf dieser Seite können Sie das Online-Video google maps javascript API v3 bug mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer John Andersen 18 Februar 2016 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 241 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!