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

Add API to MGLSource to discover source layers #6285

Closed

Description

@boundsj

To help the developer discover the layers of a source we could add a new method on MGLSource for getting an MGLSourceLayer by identifier or a property that returns all the source layers.

ref #6269 (comment)

cc @1ec5

Activity

  1. added
    iOS
    macOS
    on Sep 7, 2016
  2. jfirebaugh commented on Sep 7, 2016

    @jfirebaugh
    Contributor

    This isn't possible with current Mapbox Web APIs -- source JSON doesn't include a list of possible layers. There's only prose documentation.

  3. jfirebaugh commented on Sep 7, 2016

    @jfirebaugh
    Contributor

    I take that back, there is vector_layers key -- but it isn't standardized or documented, and the core implementation doesn't parse or store it.

  4. added
    Core
    and removed
    iOS
    macOS
    on Jan 8, 2017
  5. added
    archived
    on Nov 16, 2018
  6. stale commented on Nov 24, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corearchivedfeatureruntime styling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions