GithubHelp home page GithubHelp logo

Comments (4)

just-boris avatar just-boris commented on June 12, 2024

Теоретически, сейчас несколько карт должны работать.
Расскажите, что именно у вас не работает

from angular-ymaps.

shcoderAlex avatar shcoderAlex commented on June 12, 2024

Добрый день.
Сейчас если разместить две карты, то события зума или свайпов повторяются на другой карте. Т.е. я свайпаю первую карту, на второй тоже происходит подобное движение

20 июля 2015 г., 18:52 пользователь Boris Serdiuk [email protected]
написал:

Теоретически, сейчас несколько карт должны работать.
Расскажите, что именно у вас не работает


Reply to this email directly or view it on GitHub
#11 (comment)
.

from angular-ymaps.

just-boris avatar just-boris commented on June 12, 2024

Скорее всего дело в том, что обе ваши карты ссылаются на одни и те же свойства center и zoom в атрибутах.
Я добавил страницу с двумя картами в примеры http://catatron.com/angular-ymaps/examples/multi-map/

У одной карты свойства сохраняются в объект leftMap

<yandex-map center="leftMap.center" zoom="leftMap.zoom"></yandex-map>

А у второй – rightMap

<yandex-map center="rightMap.center" zoom="rightMap.zoom"></yandex-map>

А если сохранять в общий объект, то они будут синхронизироваться. Возможно, это даже полезная фича

from angular-ymaps.

just-boris avatar just-boris commented on June 12, 2024

Пример добавил в документацию, считаю задачу закрытой

from angular-ymaps.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.