From b940d7fbf6d722656cf6ea991377c56cb746283e Mon Sep 17 00:00:00 2001 From: Derrick Liu Date: Fri, 23 Sep 2016 10:22:38 -0700 Subject: [PATCH] Add geojson constructor docstring --- leaflet/leaflet.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/leaflet/leaflet.d.ts b/leaflet/leaflet.d.ts index debcf9fee4..cda1e73463 100644 --- a/leaflet/leaflet.d.ts +++ b/leaflet/leaflet.d.ts @@ -568,6 +568,13 @@ declare namespace L { export function coordsToLatLng(coords: [number, number, number]): LatLng; // check if LatLng has an altitude property } + /** + * Creates a GeoJSON layer. + * + * Optionally accepts an object in GeoJSON format to display on the + * map (you can alternatively add it later with addData method) and + * an options object. + */ export function geoJSON(geojson?: Object, options?: GeoJSONOptions): GeoJSON; type Zoom = boolean | 'center';