google maps javascript API v3 bug

Publicado el: 18 febrero 2016
en el canal de: 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/...


En esta página del sitio puede ver el video en línea google maps javascript API v3 bug de Duración hora minuto segunda en buena calidad , que subió el usuario John Andersen 18 febrero 2016, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 241 veces y le gustó 0 a los espectadores. Disfruta viendo!