Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Add query rendered features support for layers without sources - #16400

Merged
galinelle merged 1 commit into
masterfrom
galinelle_locationIndicatorPicking
Apr 17, 2020
Merged

galinelle merged 1 commit into
masterfrom
galinelle_locationIndicatorPicking

Conversation

@galinelle

@galinelle galinelle commented Apr 15, 2020 •

Copy link
Copy Markdown
Contributor

Launch Checklist

  • briefly describe the changes in this PR
  • write tests for all new functionality

@LukasPaczos

Copy link
Copy Markdown
Contributor

Tested this locally and seems to work just fine when it comes to returning an empty feature when the puck layer is clicked.

@galinelle
galinelle requested a review from pozdnyakov April 15, 2020 15:56
@galinelle

galinelle commented Apr 15, 2020 •

Copy link
Copy Markdown
Contributor Author

Tested this locally and seems to work just fine when it comes to returning an empty feature when the puck layer is clicked.

@LukasPaczos What would you expect inside such a feature? So that it can be fixed :-)

Comment thread src/mbgl/geometry/feature_index.cpp Resolved
Comment thread src/mbgl/geometry/feature_index.cpp Resolved
Comment thread src/mbgl/geometry/feature_index.cpp Resolved
Comment thread src/mbgl/geometry/feature_index.cpp Resolved
Comment thread src/mbgl/geometry/feature_index.cpp Resolved
Comment thread src/mbgl/geometry/feature_index.hpp Resolved
Comment thread src/mbgl/geometry/feature_index.cpp Resolved
Comment thread src/mbgl/geometry/feature_index.cpp Resolved
@LukasPaczos

Copy link
Copy Markdown
Contributor

What would you expect inside such a feature?

The empty feature is totally fine.

@galinelle

Copy link
Copy Markdown
Contributor Author

test is missing, hence still WIP. Rest should be stable.

Comment thread src/mbgl/geometry/feature_index.cpp Resolved
Comment thread src/mbgl/geometry/feature_index.cpp Resolved
Comment thread src/mbgl/renderer/render_layer.hpp Resolved
Comment thread src/mbgl/geometry/feature_index.cpp Resolved
@galinelle
galinelle force-pushed the galinelle_locationIndicatorPicking branch 2 times, most recently from 41fc487 to 96020c6 Compare April 16, 2020 16:05
@galinelle galinelle changed the title WIP: Add picking to location indicator layer Add picking to location indicator layer Apr 16, 2020
@galinelle galinelle changed the title Add picking to location indicator layer Add query rendered features support for layers without sources Apr 16, 2020
@galinelle
galinelle force-pushed the galinelle_locationIndicatorPicking branch 3 times, most recently from 31d9516 to 5cb08d8 Compare April 16, 2020 17:02
@galinelle
galinelle force-pushed the galinelle_locationIndicatorPicking branch 2 times, most recently from 27cfcb9 to 5174736 Compare April 17, 2020 14:33
This change also uses the support in the LocationIndicator layer, to
return a point feature when queried in correspondence of the location
indicator.
@galinelle
galinelle force-pushed the galinelle_locationIndicatorPicking branch from 5174736 to 33465df Compare April 17, 2020 16:08
@galinelle
galinelle merged commit fea8a83 into master Apr 17, 2020
@galinelle
galinelle deleted the galinelle_locationIndicatorPicking branch April 17, 2020 19:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants