mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 17:35:49 +08:00
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.
This commit is contained in:
4
mapbox/mapbox.d.ts
vendored
4
mapbox/mapbox.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user