visgl / react-map-gl

React friendly API wrapper around MapboxGL JS
http://visgl.github.io/react-map-gl/
Other
7.88k stars 1.36k forks source link

Update Demo in README to show importing mapbox styles. #2313

Closed lacymorrow closed 1 year ago

lacymorrow commented 1 year ago

The readme demo does not import the mapbox styles, which causes CSS errors like the mentioned issue.

Closes #2216

Pessimistress commented 1 year ago

There are multiple ways to include the required css, see https://visgl.github.io/react-map-gl/docs/get-started#styling

Importing css in JS may not be supported by all bundlers.

lacymorrow commented 1 year ago

Makes sense

lacymorrow commented 8 months ago

Seeing that 5 more folks have had this issue since I did, it would probably be useful to mention this in the docs.

2216