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
According to the documentation parameters.sourceLayer is required on a vector tile source, an ignored on a geojson source.
However if you omits the sourceLayer parameter on a geojson source map.querySourceFeatures throws:
Uncaught TypeError: Cannot read property 'sourceLayer' of undefined
If i add a empty sourceLayer parameter like this:
map.querySourceFeatures("geojson_source_id", {sourceLayer: ''});
everything works as expected.
mapbox-gl-js version: 0.37
According to the documentation parameters.sourceLayer is required on a vector tile source, an ignored on a geojson source.
However if you omits the sourceLayer parameter on a geojson source map.querySourceFeatures throws:
Uncaught TypeError: Cannot read property 'sourceLayer' of undefined
If i add a empty sourceLayer parameter like this:
map.querySourceFeatures("geojson_source_id", {sourceLayer: ''});
everything works as expected.
Se example here https://jsbin.com/jujuyiciro/1/edit?html,output
The text was updated successfully, but these errors were encountered: