This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare namespace MapboxSdk { | |
| /********************************************************************************************************************* | |
| * SDK Types | |
| *********************************************************************************************************************/ | |
| export interface EventEmitter { | |
| response: MapiResponse; | |
| error: MapiError; | |
| downloadProgress: ProgressEvents; | |
| uploadProgress: ProgressEvents; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mapboxgl.accessToken = "your_access_token" ; | |
| /** Create Map */ | |
| var map = new mapboxgl.Map({container: "map", | |
| style: 'mapbox://styles/mapbox/streets-v9', | |
| center: [-98, 38.88], | |
| zoom: 3}); | |
| /** Init Client */ | |
| var mapboxClient = mapboxSdk({ accessToken: mapboxgl.accessToken }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| declare var Wkt: WktModule.WktStatic; | |
| declare namespace WktModule { | |
| interface WktStatic { | |
| new (obj?: any): Wkt; | |
| beginsWith(str: string, sub: string): boolean; | |
| endsWith(str: string, sub: string): boolean; | |
| delimiter: string; | |
| isArray(obj: any): boolean; | |
| trim(str: string, sub: string): string; |