[ios, macos] Note corresponding style spec properties
Documentation for attributes whose names we’ve overridden now mention the original style specification property name, with a link to the style specification documentation for the property.
This commit is contained in:
committed by
Fredrik Karlsson
parent
903246b256
commit
e6d51c384d
@@ -141,6 +141,8 @@ typedef NS_ENUM(NSUInteger, MGLLineTranslateAnchor) {
|
||||
This property is measured in line widths.
|
||||
|
||||
This property is only applied to the style if `linePattern` is set to `nil`. Otherwise, it is ignored.
|
||||
|
||||
This attribute corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#paint-line-dasharray"><code>line-dasharray</code></a> paint property in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) MGLStyleValue<NSArray<NSNumber *> *> *lineDashPattern;
|
||||
|
||||
|
||||
@@ -20,6 +20,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
Increase or reduce the brightness of the image. The value is the maximum brightness.
|
||||
|
||||
The default value of this property is an `MGLStyleValue` object containing an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value.
|
||||
|
||||
This attribute corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#paint-raster-brightness-max"><code>raster-brightness-max</code></a> paint property in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) MGLStyleValue<NSNumber *> *maximumRasterBrightness;
|
||||
|
||||
@@ -27,6 +29,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
Increase or reduce the brightness of the image. The value is the minimum brightness.
|
||||
|
||||
The default value of this property is an `MGLStyleValue` object containing an `NSNumber` object containing the float `0`. Set this property to `nil` to reset it to the default value.
|
||||
|
||||
This attribute corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#paint-raster-brightness-min"><code>raster-brightness-min</code></a> paint property in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) MGLStyleValue<NSNumber *> *minimumRasterBrightness;
|
||||
|
||||
|
||||
@@ -90,6 +90,10 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(property.name) %>) {
|
||||
<% } if (property.requires) { -%>
|
||||
|
||||
<%- propertyReqs(property, layoutPropertiesByName, type) %>
|
||||
<% } -%>
|
||||
<% if (property.original) { -%>
|
||||
|
||||
This attribute corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-<%- type -%>-<%- property.original -%>"><code><%- property.original -%></code></a> layout property in the Mapbox Style Specification.
|
||||
<% } -%>
|
||||
*/
|
||||
@property (nonatomic<% if (!property.required) { %>, null_resettable<% } %>) MGLStyleValue<<%- propertyType(property, true) %>> *<%- camelizeWithLeadingLowercase(property.name) %>;
|
||||
@@ -108,6 +112,10 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(property.name) %>) {
|
||||
<% } if (property.requires) { -%>
|
||||
|
||||
<%- propertyReqs(property, paintPropertiesByName, type) %>
|
||||
<% } -%>
|
||||
<% if (property.original) { -%>
|
||||
|
||||
This attribute corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#paint-<%- property.original -%>"><code><%- property.original -%></code></a> paint property in the Mapbox Style Specification.
|
||||
<% } -%>
|
||||
*/
|
||||
@property (nonatomic<% if (!property.required) { %>, null_resettable<% } %>) MGLStyleValue<<%- propertyType(property, true) %>> *<%- camelizeWithLeadingLowercase(property.name) %>;
|
||||
|
||||
@@ -252,6 +252,8 @@ typedef NS_ENUM(NSUInteger, MGLTextTranslateAnchor) {
|
||||
|
||||
/**
|
||||
A string with {tokens} replaced, referencing the data property to pull from.
|
||||
|
||||
This attribute corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-icon-image"><code>icon-image</code></a> layout property in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) MGLStyleValue<NSString *> *iconImageName;
|
||||
|
||||
@@ -319,6 +321,8 @@ typedef NS_ENUM(NSUInteger, MGLTextTranslateAnchor) {
|
||||
The default value of this property is an `MGLStyleValue` object containing an `NSNumber` object containing the float `1`. Set this property to `nil` to reset it to the default value.
|
||||
|
||||
This property is only applied to the style if `iconImage` is non-`nil`. Otherwise, it is ignored.
|
||||
|
||||
This attribute corresponds to the <a href="https://www.mapbox.com/mapbox-gl-style-spec/#layout-symbol-icon-size"><code>icon-size</code></a> layout property in the Mapbox Style Specification.
|
||||
*/
|
||||
@property (nonatomic, null_resettable) MGLStyleValue<NSNumber *> *iconScale;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user