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.

Refactor MGLStyleValueTransformer to use mbgl::style::conversion system for all value types. #8088

Closed

Description

@anandthakker

This is a follow-on to #8026, which refactored only the data-driven-style-function part of MBGLStyleValueTransformer to make use of the mbgl::style::conversion system. To finish the job:

  • Handle conversions for style functions whose value types are represented by NSEdgeInsets/UIEdgeInsets on the MGL side. (Currently, we only handle Color, NSNumber, NSString, NSValue enums, and NSValue CGVectors. Here's the full correspondence between JSON and Foundation types ( thanks @1ec5 )
  • Use this approach for conversions of non-data-driven function values (i.e., camera functions)
  • Use this approach for conversions of constant property values

Activity

  1. added
    iOS
    macOS
    on Feb 17, 2017
  2. added
    archived
    on Nov 12, 2018
  3. stale commented on Nov 25, 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

    archivediOSmacOSrefactorruntime styling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions