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

[ios, macos] Remove duplicated guides, rename to appendices#12540

Merged
captainbarbosa merged 8 commits into
masterfrom
cleanup-ios-guides-nb
Aug 14, 2018
Merged

[ios, macos] Remove duplicated guides, rename to appendices#12540
captainbarbosa merged 8 commits into
masterfrom
cleanup-ios-guides-nb

Conversation

@captainbarbosa
Copy link
Copy Markdown
Contributor

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

@captainbarbosa captainbarbosa added iOS Mapbox Maps SDK for iOS documentation labels Aug 2, 2018
@captainbarbosa captainbarbosa self-assigned this Aug 2, 2018
@captainbarbosa captainbarbosa requested a review from 1ec5 August 2, 2018 20:51
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
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.

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.

@friedbunny friedbunny added this to the ios-v4.3.0 milestone Aug 14, 2018
@friedbunny
Copy link
Copy Markdown
Contributor

If we can, let’s get this into ios-v4.3.0.

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

typo?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🙈

Copy link
Copy Markdown
Contributor

@friedbunny friedbunny left a comment

Choose a reason for hiding this comment

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

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

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

The new guide is called “Mapbox Studio and iOS”, not “Working with Mapbox Studio”.

Comment thread platform/ios/jazzy.yml Outdated
@@ -17,9 +17,6 @@ framework_root: ../darwin/src
custom_categories:
- name: Guides
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.

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

Kinda awkward that this macOS appendix is linking to an explicitly iOS-specific guide, but it’s better than nothing I guess.

@captainbarbosa
Copy link
Copy Markdown
Contributor Author

Accidentally edited the platform/ios/docs/guides docs instead of platform/darwin/docs/guides 🙈

@captainbarbosa captainbarbosa changed the title [ios] Remove duplicated guides [ios] Remove duplicated guides, rename to appendices Aug 14, 2018
@captainbarbosa captainbarbosa changed the title [ios] Remove duplicated guides, rename to appendices [ios, macos] Remove duplicated guides, rename to appendices Aug 14, 2018
@captainbarbosa captainbarbosa merged commit c96d9df into master Aug 14, 2018
@captainbarbosa captainbarbosa deleted the cleanup-ios-guides-nb branch August 14, 2018 23:38
@captainbarbosa captainbarbosa restored the cleanup-ios-guides-nb branch August 14, 2018 23:41
@captainbarbosa captainbarbosa deleted the cleanup-ios-guides-nb branch August 14, 2018 23:41
@captainbarbosa
Copy link
Copy Markdown
Contributor Author

I forgot to squash these commits 🙈 I'll remember to rebase + squash + merge next time.

Comment thread platform/ios/jazzy.yml

custom_categories:
- name: Guides
- name: Appendices
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.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I opened a new PR: #12634

julianrex added a commit that referenced this pull request Aug 15, 2018
Fix pod name within docs #12645
Add info on using a keypath containing a dot to Predicates & Expressions guide #12599
Remove duplicated guides, rename to appendices #12540
Copyedit iOS, macOS changelogs #12641, #12650
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants