{"id":17288780,"url":"https://github.com/stepankuzmin/bs-mapbox-gl","last_synced_at":"2025-02-25T06:32:25.382Z","repository":{"id":47994907,"uuid":"174709239","full_name":"stepankuzmin/bs-mapbox-gl","owner":"stepankuzmin","description":"ReasonML + BuckleScript bindings for Mapbox GL JS 🚧","archived":false,"fork":false,"pushed_at":"2023-04-30T15:13:20.000Z","size":526,"stargazers_count":4,"open_issues_count":6,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-17T06:42:41.288Z","etag":null,"topics":["bucklescript","bucklescript-bindings","mapbox-gl","mapbox-gl-js","reasonml"],"latest_commit_sha":null,"homepage":"","language":"Reason","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stepankuzmin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-09T15:11:03.000Z","updated_at":"2023-03-09T03:34:06.000Z","dependencies_parsed_at":"2022-08-12T16:10:44.450Z","dependency_job_id":null,"html_url":"https://github.com/stepankuzmin/bs-mapbox-gl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepankuzmin%2Fbs-mapbox-gl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepankuzmin%2Fbs-mapbox-gl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepankuzmin%2Fbs-mapbox-gl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepankuzmin%2Fbs-mapbox-gl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stepankuzmin","download_url":"https://codeload.github.com/stepankuzmin/bs-mapbox-gl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219844369,"owners_count":16556485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bucklescript","bucklescript-bindings","mapbox-gl","mapbox-gl-js","reasonml"],"created_at":"2024-10-15T10:29:57.478Z","updated_at":"2024-10-15T10:29:58.226Z","avatar_url":"https://github.com/stepankuzmin.png","language":"Reason","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bs-mapbox-gl\n\n[![Build Status](https://img.shields.io/circleci/project/github/stepankuzmin/bs-mapbox-gl.svg?style=popout)](https://circleci.com/gh/stepankuzmin/bs-mapbox-gl)\n![npm](https://img.shields.io/npm/v/bs-mapbox-gl.svg)\n\n[BuckleScript](https://github.com/bloomberg/bucklescript) bindings for [Mapbox GL JS](https://github.com/mapbox/mapbox-gl-js).\n\n[Mapbox GL JS](https://github.com/mapbox/mapbox-gl-js) is a JavaScript library that renders interactive maps from vector tiles and Mapbox styles using WebGL.\n\n[\u003cimg width=\"981\" alt=\"Mapbox GL gallery\" src=\"https://raw.githubusercontent.com/mapbox/mapbox-gl-js/master/docs/pages/assets/gallery.png\"\u003e](https://www.mapbox.com/gallery/)\n\n## Status\n\nThis package is 🚧 WIP 🚧.\n\nFeel free to create an issue or PR if you find anything missing.\n\n## Installation\n\n```sh\nnpm install --save mapbox-gl bs-mapbox-gl\n```\n\nThen add `bs-mapbox-gl` to `bs-dependencies` in your `bsconfig.json`:\n\n```json\n{\n  \"bs-dependencies\": [\"bs-mapbox-gl\"]\n}\n```\n\n## Usage\n\nTo use any of Mapbox’s tools, APIs, or SDKs, you’ll need a Mapbox [access token](https://www.mapbox.com/help/define-access-token/). Mapbox uses access tokens to associate requests to API resources with your account. You can find all your access tokens, create new ones, or delete existing ones on your [API access tokens page](https://www.mapbox.com/studio/account/tokens/).\n\n```reason\nopen MapboxGL;\n\n// set the mapbox access token\nsetAccessToken(mapboxGL, accessToken);\n\n// get map container\nlet container = Option.getExn(getElementById(\"map\", document));\n\n// set map options\nlet map_options = {\n  \"container\": container,\n  \"style\": \"mapbox://styles/mapbox/streets-v9\",\n  \"center\": LngLat.make(~lng=-74.50, ~lat=40.),\n  \"zoom\": 9.,\n};\n\n// create and display map\nlet map = MapGL.make(map_options);\n```\n\nYou can find more examples [here](https://github.com/stepankuzmin/bs-mapbox-gl/tree/master/debug).\n\n## Contributing\n\nClone and install dependencies\n\n```shell\ngit clone https://github.com/stepankuzmin/bs-mapbox-gl.git\ncd bs-mapbox-gl\nnpm install\n```\n\nStart the debug server\n\n```shell\nMAPBOX_ACCESS_TOKEN={YOUR MAPBOX ACCESS TOKEN} npm start\n```\n\nOpen the debug page at \u003chttp://localhost:1234\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepankuzmin%2Fbs-mapbox-gl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepankuzmin%2Fbs-mapbox-gl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepankuzmin%2Fbs-mapbox-gl/lists"}