Marker not showing in react-mapbox-gl

38 views Asked by At

I am trying to integrate the react-mapbox-gl but the markers are not showing. This is my codesandBox link https://codesandbox.io/s/gracious-golick-8rrr4y?file=/src/App.js. I just removed my access token for security purposes. Can anyone please help me with this?
package.json

  "name": "mapbox-poc",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@testing-library/jest-dom": "^5.17.0",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "mapbox-gl": "^2.2.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-mapbox-gl": "^5.1.1",
    "react-scripts": "5.0.1",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}
0

There are 0 answers