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 initializer to set sourceLayer in MGLStyleLayer #6252

Closed

Description

@boundsj

In the GL JS example for adding a third party vector source and also in this Android demo app example the source-layer property can be set to a specific layer.

The iOS MGL*StyleLayer classes do not offer a way to set this value either in the initializers in the MGLStyleLayer protocol or via a property or setter method. This feature is important for styling sources that have many layers.

cc @1ec5 @frederoni

Activity

  1. added
    iOS
    on Sep 6, 2016
  2. added this to the ios-v3.4.0 milestone on Sep 6, 2016
  3. jfirebaugh commented on Sep 6, 2016

    @jfirebaugh
    Contributor

    Note that the core setter isn't hooked up internally to cause a refresh, so it only works when called prior to adding the source to the style. I don't foresee any technical blocker to allowing on-the-fly mutation, but it's probably not a big priority (GL JS doesn't have such an API for example).

  4. self-assigned this
    on Sep 7, 2016
  5. changed the title [-]Expose setter for sourceLayer in MGL*StyleLayer classes[/-] [+]Add initializer to set sourceLayer in MGLStyleLayer[/+] on Sep 7, 2016
  6. boundsj commented on Sep 7, 2016

    @boundsj
    ContributorAuthor

    Thanks for pointing that out @jfirebaugh. I adjusted the title of this issue and also proposed a fix (to add an init method only, no setter) in #6269

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

Metadata

Metadata

Assignees

Labels

iOSruntime styling

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions