Volodymyr Agafonkin

Results 530 comments of Volodymyr Agafonkin

Sorry for a late reply β€” `pixelmatch` returns the number of different pixels it found. So you can literally check if the return value is 0 and not proceed with...

> this function does not check **tiles** outside the currently visible viewport Perhaps we could improve the clarity of documentation about this. `querySourceFeatures` indeed returns all features inside **tiles** loaded...

That's a valid feature request. Want to look into turning the suggestion into a pull request? I wonder how easy it is to make the ratio configurable as opposed to...

@Amit-Gore I traced the issue down to the fact that we downscale high-extent tiles to 8196 β€” [here's an explanation in the comment](https://github.com/mapbox/mapbox-gl-js/blob/master/src/data/extent.js). I'm not sure if there's a solution...

@pdesjardins90 can you set up a sample repo or a gist reproducing this? Are you using any bundlers like Webpack / Parcel for the page?

@pdesjardins90 what does it say if you do `import * as mapboxgl from 'mapbox-gl'`?

I think the issue here is that "Module bundler" in the docs refers to importing `mapbox-gl` in JS files that get bundled afterwards (e.g. with Webpack, Rollup, Parcel), not to...

All the bundlers also support UMD. Using ES modules in browsers directly is still rare, but we definitely want to explore that at some point. Related: #6391

This is a [limitation of the vector-tile-spec](https://github.com/mapbox/vector-tile-spec/blob/2242b503e14a98c79b423fe7d398c1a1f3597e91/2.1/vector_tile.proto#L19-L30) β€” there's no "JSON" value. We could add an extension (a new field type that would encode stringified JSON including arrays), but it's...

@gmaclennan yep, looks like it. I'd gladly merge a PR for this. :)