Comments (7)
Это связано с потерей контекста
работает так:
https://plnkr.co/edit/9E36GWjn6Y3CliVz5FLD?p=preview
Хорошая статья https://habrahabr.ru/company/wrike/blog/310422/
from angular2-yandex-maps.
Я не совсем понимаю где теряется контекст в этом примере, ведь функция вызывается же внутри стрелочной функции)
from angular2-yandex-maps.
https://plnkr.co/edit/GHSiFXCerVctOa5Tklr9?p=preview здесь тоже контекст теряется?
from angular2-yandex-maps.
this.add.bind(this); возвращает ссылку на функцию, но не вызывает ее, добавил вызов:
https://plnkr.co/edit/tUtKesW29KgAnzXwMmwP?p=preview
да, контекст в первом примере не отваливается, пока не понимаю с чем связано)
from angular2-yandex-maps.
всё верно, не вызывает, но я хочу добавить кластер по клику по кнопке)
from angular2-yandex-maps.
https://plnkr.co/edit/djaxM0nKECMynWLJwmjO?p=preview
подойдет этот пример?
from angular2-yandex-maps.
Не совсем, для моей задачи мне нужны именно кластеры. Вообще этот же функционал тривиальный, я удивился почему он не работает из коробки. Почему-то ngOnChanges не подхватывает изменения в 'Input'.
from angular2-yandex-maps.
Related Issues (20)
- Работа с картами в ionic
- Работа с "controls" HOT 3
- . HOT 1
- import angular2-yandex-maps in NgModule HOT 3
- Maps isn't visible HOT 1
- Виден только первый plunker HOT 2
- Is it possible to include library as NgModule? HOT 1
- Angular 4 + Yandex map HOT 1
- Angular 5 + yandex maps
- Нулевая высота карты (angular 5) HOT 5
- как обновить маркеры?
- Добавить текст в поисковую строку
- Добавить в @Input() маркера hintContent
- Подключение скрипта карт HOT 1
- event о готовности карты
- Выбор локалей
- Прошу добавить возможность задавать цент карты по адресу
- Демки на plnkr не работают
- Кластер Event, ObjectManager Event
- Ошибка на сайте https://plnkr.co/
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-yandex-maps.