Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve query*Features documentation #2429

Closed
jfirebaugh opened this issue Apr 12, 2016 · 3 comments
Closed

Improve query*Features documentation #2429

jfirebaugh opened this issue Apr 12, 2016 · 3 comments
Assignees

Comments

@jfirebaugh
Copy link
Contributor

jfirebaugh commented Apr 12, 2016

The following caveats for feature querying were included in the documentation for the featuresCallback for featuresAt / featuresIn:

 * Note: because features come from vector tiles or GeoJSON data that is converted to vector tiles internally, the returned features will be:
 *
 * 1. Truncated at tile boundaries.
 * 2. Duplicated across tile boundaries.
 *
 * For example, suppose there is a highway running through your rectangle in a `featuresIn` query. `featuresIn` will only give you the parts of the highway feature that lie within the map tiles covering your rectangle, even if the road actually extends into other tiles. Also, the portion of the highway within each map tile will come back as a separate feature.

We should restore and adapt this text for the documentation for queryRenderedFeatures and querySourceFeatures.

EDIT: The scope of this ticket has expanded. Please see #2429 (comment)

@jfirebaugh
Copy link
Contributor Author

Another thing to document is the decision in #2321 about the behavior for wrapped features.

@ansis
Copy link
Contributor

ansis commented Apr 13, 2016

Another thing to document is that the order of the features is top-down based on the style.

@lucaswoj
Copy link
Contributor

lucaswoj commented Apr 26, 2016

Todo

@lucaswoj lucaswoj changed the title Restore query method caveats Improve query*Features documentation Apr 26, 2016
@jfirebaugh jfirebaugh assigned jfirebaugh and unassigned ansis May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants