google maps javascript API v3 bug

Publié le: 18 février 2016
sur la chaîne: 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/...


Sur cette page du site, vous pouvez voir la vidéo en ligne google maps javascript API v3 bug durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur John Andersen 18 février 2016, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 241 fois et il a aimé 0 téléspectateurs. Bon visionnage!