Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

line-progress expression + line-gradient example #12615

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Aug 13, 2018

Refs #12575

This PR adds an example integration of line-gradient property added in #12575 and adds expression for the line-progress expression from the style spec here.

Currently the example isn't rendering as expected, to be fixed before merging:

Todo:

  • fix above rendering
  • add example to expression javadoc

@pozdnyakov are you seeing this correctly being rendered on other platforms?

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Aug 13, 2018
@tobrun tobrun self-assigned this Aug 13, 2018
@tobrun tobrun force-pushed the tvn-gradient-line-integration branch from a00a5a0 to c0f2109 Compare August 13, 2018 09:51
@pozdnyakov
Copy link
Contributor

@tobrun thanks for pointing this out! I'll investigate what's happening there

@tobrun
Copy link
Member Author

tobrun commented Aug 13, 2018

Capturing from @pozdnyakov that we are missing integration for lineMetrics (see render test example here. We will need to expose this as a GeoJsonOptions configuration.

@tobrun tobrun force-pushed the tvn-gradient-line-integration branch from c0f2109 to e46eeeb Compare August 13, 2018 14:29
@tobrun
Copy link
Member Author

tobrun commented Aug 14, 2018

in 35a63c0 I loaded the style.json mentioned above in our MapSnaphotter. Everything is rendered correctly as seen below but currently unable to do it programmatically as with e46eeeb

image

@pozdnyakov pozdnyakov force-pushed the line_gradient branch 2 times, most recently from d7fefa8 to 7f5d5c8 Compare August 20, 2018 16:40
@pozdnyakov
Copy link
Contributor

The latest patch at #12575 fixes the issue. Thanks.

@pozdnyakov
Copy link
Contributor

screenshot_20180820-194557

@tobrun tobrun force-pushed the tvn-gradient-line-integration branch 2 times, most recently from bded6c6 to e88c1c7 Compare August 20, 2018 18:09
@tobrun tobrun force-pushed the tvn-gradient-line-integration branch from e88c1c7 to 88a6f85 Compare August 20, 2018 19:33
@tobrun
Copy link
Member Author

tobrun commented Aug 20, 2018

@pozdnyakov this PR targets merging into your branch so we can merge everything together.
I will merge after CI approves.

@tobrun tobrun merged commit 9e47037 into line_gradient Aug 21, 2018
@tobrun tobrun deleted the tvn-gradient-line-integration branch August 21, 2018 09:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants