visgl / react-map-gl

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

Use correct version for mapbox-gl #2100

Closed devpeds closed 1 year ago

devpeds commented 1 year ago

Hi This PR is for changing the version of mapbox-gl from * to <= 1.13.0. In detail, map.hasControl, api which is used on useControl, was added since v1.13.0 and type error is thrown if useControl and any control components are used with mapbox-gl v1.12.0 and below.

v1.12.0: https://github.com/mapbox/mapbox-gl-js/blob/v1.12.0/src/ui/map.js v1.13.0: https://github.com/mapbox/mapbox-gl-js/blob/v1.13.0/src/ui/map.js

Pessimistress commented 1 year ago

Closing in favor of #2175