google maps javascript API v3 bug

Опубликовано: 18 Февраль 2016
на канале: 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/...


На этой странице сайта вы можете посмотреть видео онлайн google maps javascript API v3 bug длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь John Andersen 18 Февраль 2016, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 241 раз и оно понравилось 0 зрителям. Приятного просмотра!