Comments (4)
возможно ли использование в lazy-loaded модуле с картой (для создания метки с собственным изображением)
myIconContentLayout = ymaps.templateLayoutFactory.createClass( '<div style="color: #FFFFFF; font-weight: bold;">$[properties.iconContent]</div>' );
? появляется ошибка "ReferenceError: ymaps is not defined"
angular8-yandex-maps v11.0.1
<ya-map (ready)="onReady($event)">
public onReady(e: YaReadyEvent<ymaps.Map>): void {
const { ymaps, target } = e;
const CustomLayoutClass = ymaps.templateLayoutFactory.createClass(
'<ul>' +
'{% for name in properties.names %}' +
'<li>{{ name }}</li>' +
'{% endfor %}' +
'</ul>',
);
const placemark = new ymaps.Placemark(
[55.74, 37.58],
{ names: ['Logan', 'Sofia', 'Mason', 'Layla'] },
// any as IPlacemarkOptions is missing balloonContentLayout
{ balloonContentLayout: CustomLayoutClass } as any,
);
target.geoObjects.add(placemark);
}
from angular8-yandex-maps.
и как в angular8-yandex-maps v11.0.1 установить bounds карты?
чем заменить код?
public onLoad(event: ILoadEvent) {
this.mapComponent = event.instance;
}
public onReady(e: YaReadyEvent<ymaps.Map>): void {
const { target } = e;
target.setBounds(...);
}
from angular8-yandex-maps.
возможно ли использование в lazy-loaded модуле с картой (для создания метки с собственным изображением)
myIconContentLayout = ymaps.templateLayoutFactory.createClass(
'<div style="color: #FFFFFF; font-weight: bold;">$[properties.iconContent]</div>'
);
? появляется ошибка "ReferenceError: ymaps is not defined"
angular8-yandex-maps v11.0.1
from angular8-yandex-maps.
и как в angular8-yandex-maps v11.0.1 установить bounds карты?
чем заменить код?
public onLoad(event: ILoadEvent) {
this.mapComponent = event.instance;
}
from angular8-yandex-maps.
Related Issues (20)
- Can't build a project with SSR when using a `YaApiLoaderService`
- TS2416: Property 'add' in type 'Manager<TargetGeometry>' is not assignable to the same property in base type 'IEventManager<TargetGeometry>'. HOT 2
- Support language change at runtime HOT 1
- Add angular 15 support HOT 2
- Low performance with a large number of markers when using ngFor HOT 2
- angular 14 problem with search HOT 4
- Add an error if a forRoot method is used not in a root module HOT 1
- как получить значения адреса from и to c routePanel?❓ - HOT 4
- 🐞 - peerDependencies should be added with a caret (^) HOT 2
- Возможность создания собственного элемента управления картой - можно ли❓ - HOT 3
- 🐞 - IMultiRouteParams.routingMode is missing 'bicycle' HOT 2
- ❓ - Конфликт между YandexMap и SwiperJS HOT 5
- 🚀 - Support Angular 17
- 🐞 - FeatureRemovedError HOT 1
- 🚀 - Support Yandex.Maps API v3 HOT 2
- ❓ Incorrect searching in RU HOT 4
- ❓ - Не работает интерполяция проперти в openbaloon HOT 1
- ❓ - icon image and icon title HOT 11
- ❓ - Problems with SuggestView HOT 4
- ❓ - Third-party cookie will be blocked. Learn more in the Issues tab. HOT 4
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 angular8-yandex-maps.