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:
Andrew Casey
2018-12-07 10:46:00 -08:00
committed by GitHub
2 changed files with 2065 additions and 2055 deletions
+2062 -2052
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -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);