You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A map would be a great addition to our weather app. Since MetaWeather provides the latitude and longitude of a location, it would be nice to focus that location on a map.
259
+
260
+
It would be a bit awkward to make plans for a nice weekend BBQ based on the forecast for [Lisbon, Florida](https://en.wikipedia.org/wiki/Lisbon,_Florida) or some other [Lisbon](https://en.wikipedia.org/wiki/Lisbon_(disambiguation)#United_States), just in the USA.
261
+
262
+
As you can imagine, there are quite a few components at our disposal, and we suggest the usage of [react-mapbox-gl](https://github.com/alex3165/react-mapbox-gl).
263
+
It is quite simple to integrate and to display a point at a certain latitude and longitude.
264
+
Feel free to play with their [demos](https://alex3165.github.io/react-mapbox-gl/demos) to get a feeling about how it works and look around their [documentation](https://alex3165.github.io/react-mapbox-gl/documentation).
265
+
The most important components to focus upon a location would be `ReactMapboxGl`, `Layer` and `Feature`.
266
+
267
+
We can install it into our project with:
268
+
```bash
269
+
npm install react-mapbox-gl mapbox-gl
270
+
```
271
+
272
+
273
+
In order to use react-mapbox-gl, we will need an accessToken, that we already requested:
0 commit comments