maplibre-gl-js version: 2.1.9
browser: Chromium 101.0.4951.64
Steps to Trigger Behavior
- Add GeoJSON source with a Point Feature and properties like:
{
type: "FeatureCollection",
features: [{
type: "Feature",
geometry: {
type: "Point",
coordinates: [0, 0],
},
properties: {
foo: {bar: "baz"}
},
}],
}
- Make source layer interactive and handle map mouse events.
- Get
typeof e.features[0].properties.foo
Link to Demonstration
https://codepen.io/sergey-shishkin/pen/YzazqxO
Expected Behavior
Event feature properties should have same structure as original data source.
Actual Behavior
Event feature properties turned to strings.
maplibre-gl-js version: 2.1.9
browser: Chromium 101.0.4951.64
Steps to Trigger Behavior
typeof e.features[0].properties.fooLink to Demonstration
https://codepen.io/sergey-shishkin/pen/YzazqxO
Expected Behavior
Event feature
propertiesshould have same structure as original data source.Actual Behavior
Event feature
propertiesturned to strings.