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

[ios, macos] Introduce MGLShapeSourceOptionLineDistanceMetrics - #12604

Merged
pozdnyakov merged 1 commit into
masterfrom
MGLShapeSourceOptionLineDistanceMetrics
Aug 21, 2018
Merged

pozdnyakov merged 1 commit into
masterfrom
MGLShapeSourceOptionLineDistanceMetrics

Conversation

@pozdnyakov

Copy link
Copy Markdown
Contributor

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the following, the initializers of MGLShapeSource have documentation comments that list supported options, since some options only apply to computed shape sources (custom sources). The new option should be listed as well. Speaking of which, does the new option apply to computed shape sources?

Remember to add a changelog entry either as part of this PR or when the line-gradient one. Thanks!

Comment thread platform/darwin/src/MGLShapeSource.h Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set this property to YES in order for the MGLLineStyleLayer.lineGradient property to have its intended effect.

@1ec5 1ec5 Aug 13, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: The “This is required” sentence is redundant to the sentence added below. I’d remove the original sentence and move “The default value” down to the next paragraph.

@friedbunny friedbunny added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling labels Aug 10, 2018
@friedbunny friedbunny added this to the ios-v4.4.0 milestone Aug 10, 2018
@friedbunny friedbunny added the needs changelog Indicates PR needs a changelog entry prior to merging. label Aug 10, 2018
@pozdnyakov
pozdnyakov force-pushed the MGLShapeSourceOptionLineDistanceMetrics branch from e80fcf2 to 7aefa6d Compare August 13, 2018 09:09
@pozdnyakov

Copy link
Copy Markdown
Contributor Author

@1ec5 Thanks for review!

In addition to the following, the initializers of MGLShapeSource have documentation comments that list supported options, since some options only apply to computed shape sources (custom sources). The new option should be listed as well. Speaking of which, does the new option apply to computed shape sources?

The latest patch has updated changelog and the documentation comments. The newly added feature depends on calculations processed in geojson-vt-cpp so it's only available for MGLShapeSource.

@pozdnyakov
pozdnyakov force-pushed the MGLShapeSourceOptionLineDistanceMetrics branch from 7aefa6d to e0e5dbb Compare August 21, 2018 08:59
@pozdnyakov
pozdnyakov merged commit 5ce64b7 into master Aug 21, 2018
@friedbunny friedbunny removed needs changelog Indicates PR needs a changelog entry prior to merging. labels Sep 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants