Changed parameter type to allow 'GeoJSON.Feature' objects in 'polyline'.

This commit is contained in:
Daniel Rosenwasser 2015-09-01 15:19:35 -07:00
parent e6cbee8bc9
commit e55d1b91f9
2 changed files with 1 additions and 2 deletions

View File

@ -44,7 +44,6 @@ declare module GeoJSON {
*/
export interface MultiPoint extends GeometryObject
{
coordinates: Position[]
}

View File

@ -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;