Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile errors #287

Open
2 of 3 tasks
andymost opened this issue Aug 25, 2015 · 3 comments
Open
2 of 3 tasks

Mobile errors #287

andymost opened this issue Aug 25, 2015 · 3 comments
Milestone

Comments

@andymost
Copy link
Contributor

  • after setView and panTo not shown tiles (example: groupMarkerEvent.html)
  • after zoom by pinch map not response (example: base.html)
  • not working lazy param with true and false (example: lazyLoad.html & notLazyLoad.html)

Test device: nexus 4, android 5.1, chrome 42.0.2311

@Trufi Trufi added this to the Backlog milestone Oct 14, 2015
@Trufi
Copy link
Contributor

Trufi commented Oct 14, 2015

after zoom by pinch map not response (example: base.html)

Не воспроизвёлся, возможно, поправился

after setView and panTo not shown tiles (example: groupMarkerEvent.html)

Ты не правильно обрабатываешь клики в маркер, в
map.setView([e.latlng.lat, e.latlng.lng],{animate: false});
у тебя не передаётся zoom.

not working lazy param with true and false (example: lazyLoad.html & notLazyLoad.html)

У тебя вообще пустые скрипты, код страницы:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>lazyLoad</title>
        <script src="../loader.js?lazy=true" data-id="dgLoader"></script>
        <style>

        </style>
    </head>
    <body>
        <span id="info"></span>
        <div id="map" style="width: 1000px; height: 600px;"></div>
        <script>

        </script>

    </body>
</html>

@andymost
Copy link
Contributor Author

after setView and panTo not shown tiles (example: groupMarkerEvent.html)

Ты не правильно обрабатываешь клики в маркер, в
map.setView([e.latlng.lat, e.latlng.lng],{animate: false});
у тебя не передаётся zoom

Ну как показывает дока зум не обязательный параметр в методе
[Дока методов изменения состояний карты](http://api.2gis.ru/doc/maps/manual/map/#методы-изменения состояния карты)

У тебя вообще пустые скрипты, код страницы:...

Да там пустые скрипты, но для проверки ленивости этого достаточно, ведь можно посмотреть DG.ready

@Trufi
Copy link
Contributor

Trufi commented Feb 18, 2016

Зум не обязательный параметр, но если ты хочешь добавить третий параметр, то и второй тоже придется.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants