Typo fixes, added line to MGLStyleLayer initializer description #7759
Conversation
jmkiley
commented
Jan 17, 2017
- Corrected typos in MGLMapView.h and MGLMapCamera.h
- Removed line from MGLShapeCollection.h
- Inserted a reminder in MGLStyleLayer.h initializer description to remind user not to initialize MGLStyleLayer directly
…Layer initializer description
@jmkiley, thanks for your PR! By analyzing this pull request, we identified @1ec5, @friedbunny and @incanus to be potential reviewers. |
@@ -28,9 +28,6 @@ NS_ASSUME_NONNULL_BEGIN | |||
convenient to use an `MGLPointCollection`, `MGLMultiPolyline`, or | |||
`MGLMultiPolygon` object, respectively. | |||
|
|||
A multipolyline is known as a | |||
<a href="https://tools.ietf.org/html/rfc7946#section-3.1.8">GeometryCollection</a> | |||
geometry in GeoJSON. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence was correct except for the inclusion of “multipolyline” instead of “shape collection”.
`-[MGLStyle insertLayer:belowLayer:]` method. Should not be used to create an | ||
instance of MGLStyleLayer directly. Instead, create instances of | ||
`MGLBackgroundStyleLayer` and the concrete subclasses of | ||
`MGLForegroundStyleLayer`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change will get overwritten the next time someone runs make style-code-darwin
. This documentation is defined in style-spec-overrides-v8.json.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this is the one layer file that isn’t autogenerated, so you can put the additional text directly in here. Sorry for the confusion.
Removed the change to MGLStyleLayer.h, edited the line in MGLShapeCollection.h. cc @1ec5 |
Did you still want to point this out?
You can do that in style-spec-overrides-v8.json, then run Regarding this note, I’d say something like the following, so developers know they can use this initializer, just not on MGLStyleLayer itself:
|
Inserted the line @1ec5 wrote into the MGLStyleLayer initializer method. |