Merge pull request #6184 from ntilwalli/patch-1

Update map function to allow Element argument
This commit is contained in:
Masahiro Wakame
2015-10-12 23:19:49 +09:00
+2 -2
View File
@@ -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;