From e55d1b91f9d3b28da8719bb15cda7738611e3e42 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 1 Sep 2015 15:19:35 -0700 Subject: [PATCH] Changed parameter type to allow 'GeoJSON.Feature' objects in 'polyline'. --- geojson/geojson.d.ts | 1 - polyline/polyline.d.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/geojson/geojson.d.ts b/geojson/geojson.d.ts index 1f8a23db5..9413a9c86 100644 --- a/geojson/geojson.d.ts +++ b/geojson/geojson.d.ts @@ -44,7 +44,6 @@ declare module GeoJSON { */ export interface MultiPoint extends GeometryObject { - coordinates: Position[] } diff --git a/polyline/polyline.d.ts b/polyline/polyline.d.ts index 0f220e1d3..a7f803efc 100644 --- a/polyline/polyline.d.ts +++ b/polyline/polyline.d.ts @@ -8,7 +8,7 @@ interface Polyline { decode(string: string, precision?: number): number[][]; encode(coordinate: number[][], precision?: number): string; - fromGeoJSON(geojson: GeoJSON.GeoJsonObject, precision?: number): string; + fromGeoJSON(geojson: GeoJSON.LineString | GeoJSON.Feature, precision?: number): string; } declare var polyline: Polyline;