From a1a5ef64361e3379d0e2829853d793b05086b80e Mon Sep 17 00:00:00 2001 From: ntilwalli Date: Wed, 7 Oct 2015 10:17:08 -0400 Subject: [PATCH] Update map function to allow Element argument The map(...) function allows both string and Element types as the first argument, documented here, https://www.mapbox.com/mapbox.js/api/v2.2.2/l-mapbox-map/ I've updated accordingly. --- mapbox/mapbox.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapbox/mapbox.d.ts b/mapbox/mapbox.d.ts index 3c774bdf6..1d4d7e19f 100644 --- a/mapbox/mapbox.d.ts +++ b/mapbox/mapbox.d.ts @@ -18,8 +18,8 @@ declare module L.mapbox { /** * Create and automatically configure a map with layers, markers, and interactivity. */ - function map(element: string, id: string, options?: MapOptions): L.mapbox.Map; - function map(element: string, tilejson: any, options?: MapOptions): L.mapbox.Map; + function map(element: string|Element, id: string, options?: MapOptions): L.mapbox.Map; + function map(element: string|Element, tilejson: any, options?: MapOptions): L.mapbox.Map; interface MapOptions extends L.Map.MapOptions { featureLayer? : FeatureLayerOptions;