Commit Graph

33 Commits

Author SHA1 Message Date
Jordan Kiley
8abe210964 [ios] moved changes to darwin (#9387) 2017-06-29 03:33:20 -07:00
Minh Nguyễn
30b919196b [ios, macos] Factored out tile URL template guide
Factored out redundant tile URL template documentation from the MGLRasterSource and MGLVectorSource documentation into a jazzy guide. This documentation used to live in one place, on a method on MGLTileSource, but that method had to be moved to MGLTileSource’s concrete subclasses. A jazzy guide is easier to link to, in any case.
2017-05-16 16:42:31 -07:00
Minh Nguyễn
5cc641ecad [ios, macos] Moved DDS guide examples to Swift unit test
Moved example code from DDS guide to a unit test written in Swift. The code is inserted into the guide at codegen time.
2017-05-08 14:41:21 -07:00
Minh Nguyễn
dc7e30dd43 [ios, macos] Fixed syntax error in DDS guide 2017-05-08 14:41:21 -07:00
Lauren Budorick
f6e79d7073 [core] Render fill-extrusion layers (#8431) 2017-04-27 15:56:55 -07:00
Eric Wolfe
1ca8f4e2f3 [ios][macos] Updated Mapbox logo in documentation 2017-04-19 17:21:18 -07:00
Jesse Bounds
5d4d5dcf1b [ios, macos] Rename Data-driven styling guide (#8627)
* [ios, macos] Rename Data-driven styling guide

This turns the Data-driven styling guide into a guide for working with
style functions. This helps clarify that not all style functions are
DDS specific but keeps the discussion of this related functionality in
the same guide.
2017-04-05 12:05:29 -07:00
Minh Nguyễn
fc382f7108 [macos] Fixed broken images in DDS guide 2017-04-03 15:36:07 -07:00
Minh Nguyễn
aa3db60300 [ios, macos] Copyedited data-driven styling guides
Cursorily copy-edited the data-driven styling guide, removing a stray class reference, replacing a redundant h1, and making stops examples platform-agnostic and less redundant.

Fixed an issue in the style authors guide where style function tables appeared under each style layer type table.
2017-04-01 19:28:41 -07:00
Eric Wolfe
e0fe42d832 [ios][macos] Update DDS guide
Clarifies linear and exponential interpolation, adds stops to each example for clarity, and other minor tweaks.
2017-03-20 22:34:15 -07:00
Jordan Kiley
789a49d46d [ios, macos] update iOS SDK guides (#8354)
- Added DDS guide
- Updated "For Style Authors" guide
2017-03-17 19:13:24 -04:00
Jesse Bounds
d25e2c772d [ios, macos] Rename MGLStyleConstantValue to MGLConstantStyleValue 2017-03-03 09:10:31 -08:00
Minh Nguyễn
b1e623246f [ios, macos] Marked MGLStyleFunction as abstract in docs 2017-02-10 07:11:50 -08:00
Minh Nguyễn
0a8cfdd593 [macos] Refer to Night Shift in style compatibility guide 2017-01-25 13:22:17 -08:00
Minh Nguyễn
b32c17119e [ios] EdgeInsets is UIEdgeInsets in Swift on iOS 2017-01-23 15:19:48 -08:00
Minh Nguyễn
5a2bb8d240 [ios, macos] Note that canvas sources are unsupported 2017-01-23 15:19:48 -08:00
Minh Nguyễn
0a1987f091 Fixed link in “Working with GeoJSON Data” guide 2017-01-12 12:39:15 -08:00
Minh Nguyễn
f1d661ad36 [ios, macos] Document simpler types for style values in Swift 2017-01-12 11:03:20 -08:00
Jesse Bounds
6ad47cfbad [ios, macos] Add convenience initializers to shape source (#7665)
This adds two new convenience initializers to MGLShapeSource:

-initWithIdentifier:features:options: takes an array of shape objects
that conform to MGLFeature, inserts them in a shape collection feature
and creates a source with that shape. -initWithIdentifier:shapes:options
does the same but with concrete MGLShape objects that get added to
a shape collection.

Throw an exception if an shape source is created with the features
initializer but is sent an array of features that contains something
that is not actually an object that conforms to the feature protocol.

Updates to geojson data guide

Qualify APIs that take arrays of shapes that are features
2017-01-11 16:05:38 -08:00
Minh Nguyễn
9d55c0f479 [ios, macos] Replace <q> tags with quotation marks in code blocks 2017-01-09 15:51:50 -08:00
Minh Nguyễn
e0f9870406 [macos] Flip offsets and translations
The screen origin is at the lower-left, so offsets and translations increase rightwards and upwards, in contrast to iOS and Web contexts, where the coordinate system increases rightwards and downwards. Duplicated style layer property declarations to reflect this difference.
2017-01-09 01:38:20 -08:00
Minh Nguyễn
a5e43f0272 [ios, macos] Note reversed order in NS/UIEdgeInsets 2017-01-09 01:38:20 -08:00
Minh Nguyễn
1ae84db978 [ios, macos] Clarified CGVector, NS/UIEdgeInsets accessors 2017-01-09 01:38:20 -08:00
Minh Nguyễn
80df3090ec [ios, macos] Split NSValue+MGLStyleEnumAttributeAdditions category per style layer type
Also renamed the file to have a slightly more wieldy name.
2017-01-07 14:37:53 -08:00
Minh Nguyễn
2382f199c1 [ios] Link guides to each other 2017-01-04 21:48:32 -08:00
Minh Nguyễn
a1bea12444 [ios, macos] Split For Style Authors guide
Information for Style Authors is now two separate guides, one for iOS and one for macOS. Both are compiled from the same template. Added language about rotation, tilting, and printing.
2017-01-04 21:48:24 -08:00
Minh Nguyễn
5b03318c6f [ios, macos] Compare source options to specs 2017-01-04 21:46:34 -08:00
Minh Nguyễn
7e120e32b8 [ios, macos] Added guide for style authors
Added a guide to orient JSON stylesheet authors and Mapbox Studio users around the runtime styling API. An introductory section details the many considerations for designing a robust style for use with iOS and macOS devices.
2017-01-04 21:46:25 -08:00
Minh Nguyễn
0fac9d5674 [ios, macos] Added guide for working with GeoJSON 2017-01-04 21:39:08 -08:00
Minh Nguyễn
906d700ccd [ios, macos] Indicate protocols, abstract classes in documentation navigation (#7478)
* [ios, macos] Italicize protocols, abstract classes in doc nav

Italicize protocols and abstract classes in the generated documentation’s navigation sidebar.

* [ios, macos] Denote protocols, abstract classes with glosses

Instead of oblique text, use a parenthetical gloss to denote a protocol or abstract class.
2016-12-20 17:32:06 -08:00
Minh Nguyễn
e3a6857937 [ios, macos] Highlight current topic in documentation (#7468)
* [ios, macos] Highlight current topic in docs

* highlight style
2016-12-16 17:56:45 -08:00
Maya Gao
7f67a2926d iOS jazzy theme improvements (#7422)
some small improvements to the theme
2016-12-16 16:11:47 -08:00
Jason Wray
bacf8eee70 [ios, macos] Add Mapbox Jazzy theme
- Based on Jazzy's "full width" theme.
- Add ellipsis to overlong items in navigation menu.
- Set minimum width for navigation menu.
- Use Open Sans font face.
- Inline GitHub header icon as SVG.
- Center images by default.
- Add GitHub SVG icon to 'show on github' link.
- Wrap overlong method names on class pages.
2016-07-01 14:44:51 -04:00