Skip to content

queryRenderedFeatures returns duplicate results #3099

@sleepycat

Description

@sleepycat

Please see the JSbin that reproduces this issue.

mapbox-gl-js version: 0.23.0

Steps to Trigger Behavior

  1. Pan and zoom the map to focus on Mapbox DC.
  2. Look at the console to see the number of features reported by queryRenderedFeatures

Expected Behavior

With a single feature rendered, the expected behaviour is that queryRenderedFeatures returns a single copy of that feature.

Actual Behavior

QueryRenderedFeatures returns between 0 and 4 copies of the same feature.

This issue may be related to #2647. That issue is reporting that sometimes no data is returned. At issue here is that when data is returned, it's multiple copies of the same data.

If you feel this is a duplicate (oh the irony) feel free to close or fold it into #2647 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions