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
Oh, this is also another workaround you can use, until the types are amended in source code of this repo:
In summary, as originally mentioned property "fog" seems to no longer be an issue, these are, as seen in the screenshot above, still the problematic ones:
projection (should be of type ProjectionSpecification)
logoPosition (should be of type 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | undefined)
terrain (should be of type TerrainSpecification | undefined)
Description
The
MapProps
interface doesn't match with the props defined in component level.While doing some thing like
Where
props: MapProps
Getting error like
This is not just limited to the
fog
but there couple of other props with same issue.And doing something like this
where
props: MapProps
, results in bunch of TS errors.Looks like the cause for this is how the types are defined:
On the component level the
fog
props is defined as:On
MapProps
interface it is defined as:Expected Behavior
Prop types should be consistent across the exported
MapProps
interface and the componentSteps to Reproduce
Step to reproduce is explained in detail in the the description section
Environment
react-map-gl
: 7.0.21mapbox-gl
: 2.13.0Logs
No response
The text was updated successfully, but these errors were encountered: