RyugaRyuzaki / multi-integration_openbim-components

Integrate openbim-components on mapbox-gl and ArcGIS
3 stars 1 forks source link

Add mapbox-gl key #1

Open keshavanarayan opened 6 months ago

keshavanarayan commented 6 months ago

Hi @RyugaRyuzaki,

Thank you for the great repo. I got the API key from mapbox.

Can you point where I should paste the key in your code?

Thank you.

RyugaRyuzaki commented 6 months ago

hi @keshavanarayan first create ".env" file in root directory, then in ".env" VITE_MAPBOX_TOKEN=, same with ArcGIS with accessToken in develop .

  1. MapBox : https://github.com/RyugaRyuzaki/multi-integration_openbim-components/blob/main/src/BimModel/MapBox.ts#L56
  2. ArcGis :https://github.com/RyugaRyuzaki/multi-integration_openbim-components/blob/main/src/BimModel/ArcGIS.ts#L38