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 MGLSource to style on first use #7988

Closed

Description

@1ec5

Adding a style layer is often a four-step process: create and add a source, then create and add a layer referencing that source. For parity with mapbox/mapbox-gl-js#3857, we should streamline this process by automatically adding the source to the style on first use: if a layer’s source is not part of the style at the time the layer is added to the style, add the source to the style first. This would mitigate a common programming error of referring to a source that does exist but hasn’t been added to the style (for example, #7976).

/cc @boundsj @friedbunny @mourner

Activity

  1. added
    GL JS parity
    iOS
    macOS
    on Feb 8, 2017
  2. changed the title [-]MGLStyleLayer subclasses should accept MGLSource in initializers[/-] [+]Add MGLSource to style on first use[/+] on Feb 8, 2017
  3. added
    archived
    on Nov 15, 2018
  4. 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

    GL JS parityarchivediOSmacOSruntime styling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions