[core] Restore AnnotationSource maximum zoom range to 22#5517
Conversation
dc3f7cd to
184cf1f
Compare
|
I've compiled As it seems, tile generation for z19 returns empty simplified features. Interesting to check with latest geojson-vt-cpp to see if the same behavior happens (/cc @yhahn). |
a8e2487 to
50ce31e
Compare
|
Capturing from chat:
|
50ce31e to
040566a
Compare
|
|
||
| std::unordered_map<std::string, std::vector<Feature>> Source::Impl::queryRenderedFeatures(const QueryParameters& parameters) const { | ||
| std::unordered_map<std::string, std::vector<Feature>> result; | ||
| if (renderTiles.empty()) { |
There was a problem hiding this comment.
The algorithm works fine without checking these boundary conditions right? Why increase the amount of code?
There was a problem hiding this comment.
This is an early return - avoids unnecessary creation of queryGeometry.
040566a to
253a3db
Compare
This is a work-in-progress PR.
So far:
Annotations.AnnotationZoomRangeShapeAnnotationImpl::updateTileData- this change makes the subsequent query forshapeTile.featuresreturn a non-emptyTileFeature.TileFeaturestill contains an empty tile ring in its geometry. This is what makesqueryRenderedFeaturesreturn no features in the test case, and causes the annotations to disappear in zoom 19.For the last item, I'm suspecting either 1) an erroneous parameter passed out to
GeoJSONVTviaOptionsstruct or 2) an unknown bug insidegeojson-vt-cpp.Fixes #5505.
👀 @mourner @kkaefer @jfirebaugh