mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #31157 from AlexeyTokmakov/master
Update index.d.ts Add Class "Polyline" , Interface "IPolylineOptions" and change IGeoObjectFeature, field takes type "object" .
This commit is contained in:
Vendored
+2062
-2052
File diff suppressed because it is too large
Load Diff
@@ -22,8 +22,8 @@ const balloonLayout = ymaps.templateLayoutFactory.createClass(
|
||||
"<div class=\"map-marker-balloon\"></div>",
|
||||
{
|
||||
build(this: ymaps.ILayout): void {
|
||||
(<ymaps.layout.templateBased.Base> (<any> this.constructor).superclass).build.call(this);
|
||||
this.getParentElement().children.item(0)!.children.item(0)!.appendChild((<any> this.getData()).properties.get("balloonContent"));
|
||||
((this.constructor as any).superclass as ymaps.layout.templateBased.Base).build.call(this);
|
||||
this.getParentElement().children.item(0)!.children.item(0)!.appendChild((this.getData() as any).properties.get("balloonContent"));
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -52,6 +52,6 @@ mapMarker.events.add("click", (event: ymaps.Event) => {
|
||||
|
||||
map.geoObjects.add(mapMarker);
|
||||
|
||||
map.setCenter((<ymaps.IPointGeometry> mapMarker.geometry).getCoordinates() || [55.76, 37.64]);
|
||||
map.setCenter((mapMarker.geometry as ymaps.IPointGeometry).getCoordinates() || [55.76, 37.64]);
|
||||
|
||||
map.setZoom(13);
|
||||
|
||||
Reference in New Issue
Block a user