We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi,
With my source setup like: <Source id="missions" type="geojson" data={routes} lineMetrics={true}>
<Source id="missions" type="geojson" data={routes} lineMetrics={true}>
with routes be set as undefined, I have this warning: Input data given to 'missions' is not a valid GeoJSON object
Input data given to 'missions' is not a valid GeoJSON object
no warning as data can be undefined as per typsecript definition
create a map component with souce like <Source id="missions" type="geojson" data={routes} lineMetrics={true}> with routes as
const [routes, setRoutes] = useState< turf.FeatureCollection<turf.LineString, {test:string}> | undefined >(undefined);
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
hi,
With my source setup like:
<Source id="missions" type="geojson" data={routes} lineMetrics={true}>
with routes be set as undefined, I have this warning:
Input data given to 'missions' is not a valid GeoJSON object
Expected Behavior
no warning as data can be undefined as per typsecript definition
Steps to Reproduce
create a map component with souce like
<Source id="missions" type="geojson" data={routes} lineMetrics={true}>
with routes as
Environment
Logs
No response
The text was updated successfully, but these errors were encountered: