Skip to content
New issue

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

GeoJson Feature property with null value becomes "null" as string literal when querying rendered features #1376

Closed
codytodonnell opened this issue Jul 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@codytodonnell
Copy link

This issue was originally raised and resolved in mapbox (see mapbox/mapbox-gl-js#8497) but is still an issue in maplibre.

maplibre-gl-js version: 1.15.3

browser: Google Chrome

Steps to Trigger Behavior

  1. Set source data with a GeoJson FeatureCollection
  2. The collection contains at least one feature with a property with a null value
  3. When the feature is returned by map.queryRenderedFeatures(), the properties that originally had null values now have the literal "null" string as their value.

Expected Behavior

The value should remain as null.

Actual Behavior

The value became "null" as a literal string.

@HarelM
Copy link
Collaborator

HarelM commented Jul 16, 2022

Can you check if this is still the case with the latest version?
Seems like this issue is with a dependency package and I believe the latest version has all the packages up-to-date.

@HarelM
Copy link
Collaborator

HarelM commented Aug 21, 2022

No response, assuming this is fixed in latest version.

@HarelM HarelM closed this as completed Aug 21, 2022
@HarelM HarelM added the bug Something isn't working label Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants