{"id":23210016,"url":"https://github.com/dqunbp/using-mapbox-gl-with-react","last_synced_at":"2025-08-19T05:32:05.471Z","repository":{"id":48485459,"uuid":"381950475","full_name":"dqunbp/using-mapbox-gl-with-react","owner":"dqunbp","description":"This is a repository for an example of using React with mapbox-gl and Next.js. You can use it as a new project template. Read more about this project from my blog post, link in README.md","archived":false,"fork":false,"pushed_at":"2021-07-23T08:09:08.000Z","size":537,"stargazers_count":16,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-17T05:57:32.664Z","etag":null,"topics":["mapbox-gl","nextjs","react"],"latest_commit_sha":null,"homepage":"https://using-mapbox-gl-with-react.vercel.app","language":"TypeScript","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/dqunbp.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-07-01T07:42:31.000Z","updated_at":"2024-11-19T00:18:19.000Z","dependencies_parsed_at":"2022-08-29T02:30:49.435Z","dependency_job_id":null,"html_url":"https://github.com/dqunbp/using-mapbox-gl-with-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dqunbp%2Fusing-mapbox-gl-with-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dqunbp%2Fusing-mapbox-gl-with-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dqunbp%2Fusing-mapbox-gl-with-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dqunbp%2Fusing-mapbox-gl-with-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dqunbp","download_url":"https://codeload.github.com/dqunbp/using-mapbox-gl-with-react/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230321271,"owners_count":18208335,"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":["mapbox-gl","nextjs","react"],"created_at":"2024-12-18T18:31:35.551Z","updated_at":"2024-12-18T18:31:35.972Z","avatar_url":"https://github.com/dqunbp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- ![Using mapbox-gl with React and Next.js](/public/hero-image.png?raw=true \"Using mapbox-gl with React and Next.js\") --\u003e\n\n\u003ca href=\"https://github.com/dqunbp/using-mapbox-gl-with-react\"\u003e\n  \u003cimg src=\"/public/hero-image.png?raw=true\" /\u003e\n\u003c/a\u003e\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n\u003cp\u003e\n  \u003ca\n    href=\"https://twitter.com/intent/tweet?text=Using%20mapbox-gl%20with%20React%20and%20Next.js.%20Guide%20to%20using%20mapbox-gl%20in%20Next.js%20application\u0026url=https%3A%2F%2Fgithub.com%2Fdqunbp%2Fusing-mapbox-gl-with-react\u0026hashtags=javascript%2Ctypescript%2Creact%2Cmapbox-gl%2Cnextjs\"\n  \u003e\n    \u003cimg\n      src=\"http://randojs.com/images/tweetShield.svg\"\n      alt=\"Tweet\"\n      height=\"20\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003c!-- \u003ch1 align=\"center\"\u003eUsing mapbox-gl with React and Next.js\u003c/h1\u003e --\u003e\n\u003ch2\u003e\n  Learn more about this project with\n  \u003ca href=\"https://dev.to/dqunbp/using-mapbox-gl-in-react-with-next-js-2glg\"\u003e\n    my dev.to blogpost\n  \u003c/a\u003e\n\u003c/h2\u003e\n\n\u003cp\u003e\n  \u003ca href=\"https://dev.to/dqunbp/using-mapbox-gl-in-react-with-next-js-2glg\"\u003e\n    \u003cimg src=\"/public/map-loading-screen.gif?raw=true\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003c!-- # Using mapbox-gl with React and Next.js --\u003e\n\u003c!-- ## Learn more about this project with [my dev.to blogpost](https://dev.to/dqunbp/using-mapbox-gl-in-react-with-next-js-2glg) --\u003e\n\n## Getting Started\n\nFirst, run the development server:\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the result.\n\nYou can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.\n\n[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.tsx`.\n\nThe `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.\n\n## Learn More\n\nTo learn more about Next.js, take a look at the following resources:\n\n- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.\n- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.\n\nYou can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!\n\n## Deploy on Vercel\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.\n\nThis is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdqunbp%2Fusing-mapbox-gl-with-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdqunbp%2Fusing-mapbox-gl-with-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdqunbp%2Fusing-mapbox-gl-with-react/lists"}