{"id":13401173,"url":"https://github.com/visgl/react-map-gl","last_synced_at":"2026-01-11T17:43:27.372Z","repository":{"id":37080151,"uuid":"43903882","full_name":"visgl/react-map-gl","owner":"visgl","description":"React friendly API wrapper around MapboxGL JS","archived":false,"fork":false,"pushed_at":"2025-04-16T00:46:12.000Z","size":33985,"stargazers_count":8082,"open_issues_count":65,"forks_count":1358,"subscribers_count":1933,"default_branch":"master","last_synced_at":"2025-05-05T20:38:41.708Z","etag":null,"topics":["data-visualization","map","mapbox-gl","mapbox-gl-js","react","uber","webgl"],"latest_commit_sha":null,"homepage":"http://visgl.github.io/react-map-gl/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/visgl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-10-08T16:56:26.000Z","updated_at":"2025-05-05T17:59:25.000Z","dependencies_parsed_at":"2023-12-18T22:23:20.473Z","dependency_job_id":"53c6ad94-d596-4042-94e3-84bd6e0f9712","html_url":"https://github.com/visgl/react-map-gl","commit_stats":{"total_commits":978,"total_committers":195,"mean_commits":5.015384615384615,"dds":0.6073619631901841,"last_synced_commit":"7a415a443a0056b43c3fb089c0681b2f98b895b4"},"previous_names":["uber/react-map-gl"],"tags_count":217,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visgl%2Freact-map-gl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visgl%2Freact-map-gl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visgl%2Freact-map-gl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/visgl%2Freact-map-gl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/visgl","download_url":"https://codeload.github.com/visgl/react-map-gl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253561432,"owners_count":21927787,"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":["data-visualization","map","mapbox-gl","mapbox-gl-js","react","uber","webgl"],"created_at":"2024-07-30T19:00:59.483Z","updated_at":"2026-01-11T17:43:27.335Z","avatar_url":"https://github.com/visgl.png","language":"TypeScript","readme":"\u003cp align=\"right\"\u003e\n  \u003ca href=\"https://npmjs.org/package/react-map-gl\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/react-map-gl.svg?style=flat-square\" alt=\"version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/visgl/react-map-gl/actions?query=workflow%3Atest+branch%3Amaster\"\u003e\n    \u003cimg src=\"https://github.com/visgl/react-map-gl/workflows/test/badge.svg?branch=master\" alt=\"build\" /\u003e\n  \u003ca href=\"https://npmjs.org/package/react-map-gl\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/react-map-gl.svg?style=flat-square\" alt=\"downloads\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ereact-map-gl | \u003ca href=\"https://visgl.github.io/react-map-gl\"\u003eDocs\u003c/a\u003e\u003c/h1\u003e\n\n`react-map-gl` is a suite of [React](https://react.dev/) components designed to provide a React API for [mapbox-gl](https://github.com/mapbox/mapbox-gl-js) or [maplibre-gl](https://maplibre.org/maplibre-gl-js/docs/). More information in the online documentation.\n\nSee our [Design Philosophy](docs/README.md#design-philosophy).\n\n### Installation\n\nUsing `react-map-gl` requires `react \u003e= 16.3`.\n\n```sh\n# Using Maplibre\nnpm install react-map-gl maplibre-gl\n```\n_or_\n\n```sh\n# Using Mapbox\nnpm install react-map-gl mapbox-gl\n```\n\n### Example\n\n```js\n// Using Maplibre\nimport * as React from 'react';\nimport Map from 'react-map-gl/maplibre';\nimport 'maplibre-gl/dist/maplibre-gl.css';\n\nfunction App() {\n  return (\n    \u003cMap\n      initialViewState={{\n        longitude: -122.4,\n        latitude: 37.8,\n        zoom: 14\n      }}\n      style={{width: 600, height: 400}}\n      mapStyle=\"https://api.maptiler.com/maps/streets/style.json?key=\u003cMaptiler access token\u003e\"\n    /\u003e\n  );\n}\n```\n_or_\n\n```js\n// Using Mapbox\nimport * as React from 'react';\nimport Map from 'react-map-gl/mapbox';\nimport 'mapbox-gl/dist/mapbox-gl.css';\n\nfunction App() {\n  return (\n    \u003cMap\n      // https://visgl.github.io/react-map-gl/docs/get-started/mapbox-tokens\n      mapboxAccessToken=\"\u003cMapbox access token\u003e\"\n      initialViewState={{\n        longitude: -100,\n        latitude: 40,\n        zoom: 3.5\n      }}\n      style={{width: 600, height: 400}}\n      mapStyle=\"mapbox://styles/mapbox/streets-v9\"\n    /\u003e\n  );\n}\n```\n\nLearn more with in our [Getting Started](https://visgl.github.io/react-map-gl/docs/get-started) guide.\n\n\n### Contribute\n\nSee [contribution guide](/CONTRIBUTING.md).\n\n\n### Attributions\n\nreact-map-gl is part of vis.gl, an [OpenJS Foundation](https://openjsf.org) project.\n\nDevelopment is also supported by\n\n\u003cimg src=\"https://raw.githubusercontent.com/visgl/deck.gl-data/master/images/branding/mapbox.svg\" height=\"40\" /\u003e\n","funding_links":[],"categories":["Other Components","Uncategorized","TypeScript","JS Chart Libraries","前端开发框架及项目","JavaScript"],"sub_categories":["Uncategorized","其他_文本生成、文本对话"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisgl%2Freact-map-gl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvisgl%2Freact-map-gl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvisgl%2Freact-map-gl/lists"}