Comments (4)
Ответ на первый вопрос:
Насколько я знаю, Yandex Maps API умеет сам отслеживать размеры контейнера: https://tech.yandex.ru/maps/doc/jsapi/2.1/ref/reference/Map-docpage/#param-options.autoFitToViewport
Надо лишь научиться принимать опции карты как аргумент директивы. Видимо, таким образом
$scope.mapOpts = {
autoFitToViewport: 'always'
}
<yandex-map options="mapOpts"></yandex-map>
Если настройка autoFitToViewport
поможет вам, присылайте PR, с добавлением возможности ее поменять. (Включать для всех ее не получится, она дорогая по производительности)
from angular-ymaps.
Второй вопрос:
Контролы обсуждаются в другой issue #10
Если ее решить, то все будет как надо
from angular-ymaps.
Третья проблема возникает из-за события boundschange
. Проще всего этого избежать, если не делать fitToViewport()
руками, а пользоваться опцией autoFitToViewport
from angular-ymaps.
Спасибо. Попробую разобраться
from angular-ymaps.
Related Issues (16)
- Было бы здорово вывести массив Контролов карты HOT 4
- Было бы удобно сделать несколько карт на странице HOT 4
- Не работает опция zoom HOT 9
- Объединение маркеров в кластеры HOT 4
- Не отображается карта HOT 2
- Ошибка TypeError: e.get(...).split is not a function HOT 2
- Angular 2 HOT 2
- Все работает, но не отображаются внутрености Яндекс Карты (аттачмент) HOT 2
- Preset маркера карты HOT 2
- ошибка "Попытка переопределить innerHTML у элемента, не добавленного в документ"
- How work with events ?
- Cluster not color clustering to color item
- http://catatron.com/angular-ymaps/
- Баги в IE10 HOT 2
- Please Add DEMO link HOT 3
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 angular-ymaps.