-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[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
@@ -207,16 +207,23 @@ static Point<int16_t> coordinateToTilePoint(const UnwrappedTileID& tileID, const | |||
} | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The algorithm works fine without checking these boundary conditions right? Why increase the amount of code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an early return - avoids unnecessary creation of queryGeometry
.
040566a
to
253a3db
Compare
This is a work-in-progress PR.
So far:
Annotations.AnnotationZoomRange
ShapeAnnotationImpl::updateTileData
- this change makes the subsequent query forshapeTile.features
return a non-emptyTileFeature
.TileFeature
still contains an empty tile ring in its geometry. This is what makesqueryRenderedFeatures
return 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
GeoJSONVT
viaOptions
struct or 2) an unknown bug insidegeojson-vt-cpp
.Fixes #5505.
👀 @mourner @kkaefer @jfirebaugh