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

Expand and clean up runtime styling documentation - #6076

Merged
1ec5 merged 9 commits into
masterfrom
1ec5-style-docs-5951
Aug 19, 2016
Merged

1ec5 merged 9 commits into
masterfrom
1ec5-style-docs-5951

Conversation

@1ec5

@1ec5 1ec5 commented Aug 18, 2016 •

Copy link
Copy Markdown
Contributor

This PR improves the runtime styling API’s generated documentation in several ways:

/cc @frederoni @friedbunny

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS documentation runtime styling labels Aug 18, 2016
@1ec5 1ec5 added this to the ios-v3.4.0 milestone Aug 18, 2016
@1ec5 1ec5 self-assigned this Aug 18, 2016
@mention-bot

Copy link
Copy Markdown

@1ec5, thanks for your PR! By analyzing this pull request, we identified @incanus to be potential reviewers.

@1ec5

1ec5 commented Aug 18, 2016

Copy link
Copy Markdown
Contributor Author

I’m not entirely sure about the use of null_resettable yet. To be sure, mbgl does return a default value for any property that is undefined in the style JSON but defined to have a default value in the style specification. But what happens when you attempt to set such a property to undefined at runtime? Does it revert to that default value or officially become undefined?

Also, we’ll need to revisit this decision if we go with solution 3 in #5970.

@1ec5

1ec5 commented Aug 19, 2016

Copy link
Copy Markdown
Contributor Author

null_resettable semantics aren’t being honored by optional style properties, and in fact the semantics are pretty weird right now: #6095. For the time being, I’m going to revert all the properties to be nullable.

1ec5 added 9 commits August 19, 2016 14:20
Properties representing optional attributes are qualified with null_resettable. The default value is documented.
Also expand values in documentation comments to the full enumeration values.

Fixes #5949.
Replaced pixels with points in documentation.
Key the array subtype on the last part of the property name. Don’t assume one of the unaccounted-for properties is an offset.
null_resettable semantics aren’t currently respected: #6095.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation 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.

2 participants