🚧 binding for mapbox-gl-js
Run the following in your favorit console:
> yarn add rescript-mapbox-gl
Legend: 🏗 WIP, 🚧 Isn't implemented
- Map (🏗)
- instance member (addControl,addControlWithOptions)
- Properties and Options (🏗)
- Markers and Control (🚧)
- Marker instance member
- Marker Event
- Popup instance member
- Popup Event
- Geography and Geometry (🏗)
- LngLat instance member
- LngLat static member
- LngLatBounds instance member
- LngLatBounds static member
- LngLatLike
- LngLatBoundsLike
- Point
- PointLike
- MercatorCoordinate instance member
- MercatorCoordinate static member
- EdgeInsets static member (1/3)
- User interaction handlers (🚧)
- Sources (🚧)
- Events (🚧)
open Mapbox
// create Map
let map = Map.make() // new Map.map()
// create Map with Options
let mapWithOpt = Map.makeOptions(~container=Map.id("app-hash-in-dom"), ())->Map.makeWithOption
Or you can check this example.
The API closely match with mapbox-gl-js. You can refer to the mapbox-gl-js documentation
Feel Free
MIT