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 expression accessors #10721

Closed
Closed

Description

@tobrun

Tailwork of #10654, allow to get an existing layout/paint porperty or filter expression from a layer.

Current value/function api:

assertNotNull(layer.getSymbolPlacement());
assertNotNull(layer.getSymbolPlacement().getFunction());
assertEquals(CameraFunction.class, layer.getSymbolPlacement().getFunction().getClass());
assertEquals(IntervalStops.class, layer.getSymbolPlacement().getFunction().getStops().getClass());
assertEquals(1, ((IntervalStops) layer.getSymbolPlacement().getFunction().getStops()).size());

Activity

  1. added
    Android
    on Dec 16, 2017
  2. added this to the milestone on Dec 16, 2017
  3. 1ec5 commented on Dec 18, 2017

    @1ec5
    Contributor

    #10726 implemented some accessors in mbgl that could be useful for implementing fully typed accessors in Java. #10714 could also help, but that approach would probably not benefit from compile-time type checking.

  4. 1ec5 commented on Jan 26, 2018

    @1ec5
    Contributor

    #10726 implemented some accessors in mbgl that could be useful for implementing fully typed accessors in Java.

    Here’s how the iOS/macOS SDK is using these accessors:

    id MGLJSONObjectFromMBGLExpression(const mbgl::style::expression::Expression &mbglExpression) {

  5. tobrun commented on Mar 14, 2018

    @tobrun
    MemberAuthor

    Landed in #11352

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

    Androidfeature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions