{"id":14845477,"url":"https://github.com/watergis/mapbox-gl-elevation","last_synced_at":"2025-04-28T15:41:33.362Z","repository":{"id":47217796,"uuid":"321064357","full_name":"watergis/mapbox-gl-elevation","owner":"watergis","description":"This module adds elevation control to mapbox-gl.","archived":false,"fork":false,"pushed_at":"2023-06-22T14:36:13.000Z","size":6033,"stargazers_count":24,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-30T05:43:08.705Z","etag":null,"topics":["elevation","mapbox-gl-js","plugin","terrain-rgb"],"latest_commit_sha":null,"homepage":"https://watergis.github.io/mapbox-gl-elevation/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/watergis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["JinIgarashi"],"open_collective":"watergis","custom":["https://www.paypal.me/jinigarashi"]}},"created_at":"2020-12-13T12:52:33.000Z","updated_at":"2024-10-26T01:47:14.000Z","dependencies_parsed_at":"2023-12-08T21:44:49.540Z","dependency_job_id":null,"html_url":"https://github.com/watergis/mapbox-gl-elevation","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":0.4444444444444444,"last_synced_commit":"9bb64ca14d5bf4630d357cf0ab2c3572cdbfc909"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fmapbox-gl-elevation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fmapbox-gl-elevation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fmapbox-gl-elevation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fmapbox-gl-elevation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watergis","download_url":"https://codeload.github.com/watergis/mapbox-gl-elevation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226717562,"owners_count":17670890,"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":["elevation","mapbox-gl-js","plugin","terrain-rgb"],"created_at":"2024-09-19T13:00:32.619Z","updated_at":"2024-11-29T15:49:27.880Z","avatar_url":"https://github.com/watergis.png","language":"TypeScript","funding_links":["https://github.com/sponsors/JinIgarashi","https://opencollective.com/watergis","https://www.paypal.me/jinigarashi"],"categories":["User Interface Plugins"],"sub_categories":["JavaScript"],"readme":"# mapbox-gl-elevation\n![](https://github.com/watergis/mapbox-gl-elevation/workflows/build/badge.svg)\n![](https://github.com/watergis/mapbox-gl-elevation/workflows/deploy%20gh-pages/badge.svg)\n![](https://github.com/watergis/mapbox-gl-elevation/workflows/Release%20Draft/badge.svg)\n![](https://github.com/watergis/mapbox-gl-elevation/workflows/Node.js%20Package/badge.svg)\n![GitHub](https://img.shields.io/github/license/watergis/mapbox-gl-elevation)\n\nThis module adds elevation control to mapbox-gl.\n\n## Installation:\n\n```bash\nnpm i @watergis/mapbox-gl-elevation --save\n```\n\n## Demo:\n\nTry [codesandbox](https://codesandbox.io/s/mapbox-gl-elevation-cldfe).\n\nSee [demo](https://watergis.github.io/mapbox-gl-elevation).\n\n![demo](./demo.gif)\n\n## Usage:\n\n```ts\nimport MapboxElevationControl from \"@watergis/mapbox-gl-elevation\";\nimport '@watergis/mapbox-gl-elevation/css/styles.css';\nimport mapboxgl from 'mapbox-gl';\n\nconst map = new mapboxgl.Map();\nmap.addControl(new MapboxElevationControl(\n        'https://wasac.github.io/rw-terrain/tiles/{z}/{x}/{y}.png',\n        { \n          font: ['Roboto Medium'],\n          fontSize: 12,\n          fontHalo: 1,\n          mainColor: '#263238',\n          haloColor: '#fff',\n        }\n    ), 'top-right');\n});\n```\n\n## Development:\n\n```bash\nnpm run lint # check styling of source code\nnpm run lint:fix # fix styling by eslint\nnpm run dev\n```\n\nopen [http://localhost:8080](http://localhost:8080).\n\nIf there are any changes on source code, it will be reflected automatically.\n\n## Build package:\n\n```bash\nnpm run build\n```\n\nThe modules will be generated under `dist` folder.\n\n## Deploy to Github pages\n\n```bash\nnpm run deploy\n```\n\nIt will deploy files under `example` folder to gh-pages.\n\n## How to release\n\n```zsh\nnpm version patch # it increase patch version 0.0.X\nnpm version minor # it increase minor version 0.x.0\nnpm version major # it increase major version x.0.0\ngit push origin main --tag\n# release CI will create draft release in Github pages, then publish it if it is ready.\n# publish CI will deploy npmjs and Github Packages.\n```\n\n## Contribution\n\nThis Mapbox GL Elevation Control is still under development. so most welcome any feedbacks and pull request to this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatergis%2Fmapbox-gl-elevation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatergis%2Fmapbox-gl-elevation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatergis%2Fmapbox-gl-elevation/lists"}