mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +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:
1 parent
1c7dc75783
commit
a1a5ef6436
1 file changed
+2
-2
Vendored
+2
-2
@@ -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