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
Feature "id" property is preserved on geojson whose "id" is an object. (mongodb ObjectId)
Actual Behavior
When i use the queryRenderedFeature's mapbogl method on a geojson collection hosted on a mongodb database, the output shows the entire document structure but the "_id" property. The thing is that each "Feature" got his auto generated _id "objectId" from the mongodb engine.
The text was updated successfully, but these errors were encountered:
How does queryRenderedFeatures return your id? As a string? If so, you can use JSON.parse(idObject) as a workaround. In my use case, it returns arrays as a string, and I use this method to get back the objects.
mapbox-gl-js version: 0.29.0
Expected Behavior
Feature "id" property is preserved on geojson whose "id" is an object. (mongodb ObjectId)
Actual Behavior
When i use the queryRenderedFeature's mapbogl method on a geojson collection hosted on a mongodb database, the output shows the entire document structure but the "_id" property. The thing is that each "Feature" got his auto generated _id "objectId" from the mongodb engine.
The text was updated successfully, but these errors were encountered: