Skip to content

geoJSON source setData should cancel outstanding setData #6256

Description

@jdeboer-geoplan

Hi brilliant project.

I've got a small issuette.

mapbox-gl-js version:
Originally found in 0.38.0 but have updated to 0.44.1 and still see the same results.

Steps to Trigger Behavior

  1. call setdata on a geojson source with a url that takes while to return
  2. call setdata again on the source with a different url that returns first.

Expected Behavior

The map should display the second geoJSON

Actual Behavior

The layer displays the second geoJSON and then the first overwrites it.

I'm not sure a synchronous version like #2275 is what I want, I think I just want setData to abort any previous operation when it gets called again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions