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.

MGLStyleAttributeFunction.functionType should be MGLStyleAttributeFunctionType #5969

Closed

Description

@1ec5

MGLStyleAttributeFunction.functionType should be of type MGLStyleAttributeFunctionType, not NSNumber. The style specification allows the type property to be omitted, but the value is actually exponential (MGLStyleAttributeFunctionTypeExponential) or interval (MGLStyleAttributeFunctionTypeInterval) by default, depending on the property, and it’s meaningless for a function to have no type. So there’s no need for a nullable object here.

/cc @frederoni

Activity

  1. added
    iOS
    macOS
    on Aug 12, 2016
  2. added this to the ios-v3.4.0 milestone on Aug 12, 2016
  3. frederoni commented on Aug 12, 2016

    @frederoni
    Contributor

    type is omitted or not yet implemented in function.hpp so I suggest we remove MGLStyleAttributeFunction.functionType and the other unused types until we can make use of them.

  4. 1ec5 commented on Aug 12, 2016

    @1ec5
    ContributorAuthor

    Is there a ticket tracking that core work? Seems like it'd be important for style specification compliance and GL JS parity.

  5. self-assigned this
    on Aug 12, 2016
  6. 1ec5 commented on Aug 12, 2016

    @1ec5
    ContributorAuthor

    Per @lucaswoj, function types are only relevant for property functions, so we’ll only need SDK support for them once #4860 is implemented.

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

Metadata

Metadata

Assignees

Labels

bugiOSmacOSruntime styling

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions