Skip to content

r17x/rescript-mapbox-gl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rescript-mapbox-gl

🚧 binding for mapbox-gl-js

Table of Content

Installation

Run the following in your favorit console:

> yarn add rescript-mapbox-gl

TODO

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 (🚧)

Example

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.

API

The API closely match with mapbox-gl-js. You can refer to the mapbox-gl-js documentation

Contribution

Feel Free

License

MIT

Releases

No releases published

Packages

No packages published