[ios, macos] Remove duplicated guides, rename to appendices#12540
Conversation
| Dynamic Type and Accessibility Text features to increase the size of all text on | ||
| the device. You can use the | ||
| [runtime styling API](#manipulating-the-style-at-runtime) to adjust your style’s | ||
| [runtime styling API](https://www.mapbox.com/ios-sdk/maps/overview/runtime-styling/) to adjust your style’s |
There was a problem hiding this comment.
This change is unnecessary; there’s still a “Manipulating the style at runtime” section. That’s important because it’s the only documentation we have between /ios-sdk and the jazzy docset that names the specific classes that form the runtime styling API.
|
If we can, let’s get this into |
| Dynamic Type and Accessibility Text features to increase the size of all text on | ||
| the device. You can use the | ||
| [runtime styling API](#manipulating-the-style-at-runtime) to adjust your style’s | ||
| [runtime styling API](#manipulating-the-style-at-runtime) to adjust your style’s to adjust your style’s |
friedbunny
left a comment
There was a problem hiding this comment.
One nit, but otherwise looks good. Perhaps it’d also be useful if you could post the update process you went through as a comment here, for posterity.
| the device. You can use the | ||
| [runtime styling API](#manipulating-the-style-at-runtime) to adjust your style’s | ||
| font and icon sizes accordingly. | ||
| [runtime styling API](#manipulating-the-style-at-runtime) to adjust your style’s font and icon sizes accordingly. |
There was a problem hiding this comment.
For consistency, let’s keep wrapping lines in this doc at 80 characters.
| If you previously used an interpolation base greater than `0` (other than `1`), you can use `MGLExpressionInterpolationMode.exponential` as the curve type for `+[NSExpression(MGLAdditions) mgl_expressionForInterpolatingExpression:withCurveType:parameters:stops:]` or `'exponential'` as the curve type for [`mgl_interpolate:withCurveType:parameters:stops:`](predicates-and-expressions.html#code-mgl_interpolate-withcurvetype-parameters-stops-code). The `parameters` argument takes that interpolation base. This interpolates between values exponentially, creating an accelerated ramp effect. | ||
|
|
||
| Here’s a visualization from Mapbox Studio (see [Working with Mapbox Studio](working-with-mapbox-studio.html)) comparing interpolation base values of `1.5` and `0.5` based on zoom. In order to convert camera style functions, use `$zoomLevel` or `MGL_FUNCTION('zoomLevel')` as the attribute key. | ||
| Here’s a visualization from Mapbox Studio (see [Working with Mapbox Studio](https://www.mapbox.com/ios-sdk/maps/overview/mapbox-studio/)) comparing interpolation base values of `1.5` and `0.5` based on zoom. In order to convert camera style functions, use `$zoomLevel` or `MGL_FUNCTION('zoomLevel')` as the attribute key. |
There was a problem hiding this comment.
The new guide is called “Mapbox Studio and iOS”, not “Working with Mapbox Studio”.
| @@ -17,9 +17,6 @@ framework_root: ../darwin/src | |||
| custom_categories: | |||
| - name: Guides | |||
There was a problem hiding this comment.
Should we keep calling this section “Guides” or refashion it as “Appendices” to clarify their scope?
| # Migrating from Style Functions to Expressions | ||
|
|
||
| [Runtime Styling](runtime-styling.html) enables you to modify every aspect of the map’s appearance dynamically as a user interacts with your application. Developers can specify in advance how a layout or paint attribute will vary as the zoom level changes or how the appearance of individual features vary based on metadata provided by a content source. | ||
| [Runtime Styling](https://www.mapbox.com/ios-sdk/maps/overview/runtime-styling/) enables you to modify every aspect of the map’s appearance dynamically as a user interacts with your application. Developers can specify in advance how a layout or paint attribute will vary as the zoom level changes or how the appearance of individual features vary based on metadata provided by a content source. |
There was a problem hiding this comment.
Kinda awkward that this macOS appendix is linking to an explicitly iOS-specific guide, but it’s better than nothing I guess.
|
Accidentally edited the |
|
I forgot to squash these commits 🙈 I'll remember to rebase + squash + merge next time. |
|
|
||
| custom_categories: | ||
| - name: Guides | ||
| - name: Appendices |
There was a problem hiding this comment.
The macOS table of contents can also call them appendices. I can take care of that at release time if you don’t get to it first.
Removes a handful of guides and associated assets that have been ported over to the new Mapbox Maps SDK for iOS page.
Partially addresses #11043.
cc @colleenmcginnis