Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 801 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 801 Bytes

Repository Retired!

This repository is now considered retired. The latest one is hosted in the DefinitelyTyped repository here https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/mapbox-gl

Instructions here: mapbox/mapbox-gl-js#2440 (comment)

Old instructions follow

Installing:

npm install mapbox-gl --save
typings install registry:dt/geojson --save --global 
typings install github:smartrak/mapbox-gl-js-typescript/typings.json --save

Edit your tsconfig.json to contain

{
    "files": [
        "typings/index.d.ts"
	]
}

Now you can import mapboxgl = require('mapbox-gl');

There is a working example with webpack here: https://github.com/danzel/mapboxgl-webpack-example