You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
This is important because iOS and macOS developers expect latitude to come before longitude in a coordinate pair, contrary to Mapbox conventions. Putting the pair inside a struct skirts that impedance mismatch.
Per #5727 (comment), the order inside NSEdgeInsets and UIEdgeInsets is reversed with respect to the order expected by mbgl and the style specification.
An offset style attribute is now exposed publicly as an NSValue representing a CGVector instead of an NSArray of NSNumbers. A padding style attribute is now exposed publicly as an NSValue representing an NSEdgeInsets or UIEdgeInsets instead of an NSArray of NSNumbers. This change also fixes round-tripping of padding values due to a difference between the style specification and Foundation regarding the order of edges around a box. Used a designated initializer on NSEdgeInsets/UIEdgeInsets to ensure correct order when converting from C++ to Objective-C.
Fixes#5947, fixes#6065.
An offset style attribute is now exposed publicly as an NSValue representing a CGVector instead of an NSArray of NSNumbers. A padding style attribute is now exposed publicly as an NSValue representing an NSEdgeInsets or UIEdgeInsets instead of an NSArray of NSNumbers. This change also fixes round-tripping of padding values due to a difference between the style specification and Foundation regarding the order of edges around a box. Used a designated initializer on NSEdgeInsets/UIEdgeInsets to ensure correct order when converting from C++ to Objective-C.
Fixes#5947, fixes#6065.
Per #5727 (comment), we should use types other than NSArray to represent fixed-length collections in the style specification:
center
asCLLocationCoordinate2D
fill-translate
,line-translate
,icon-offset
,text-offset
,icon-translate
,text-translate
,circle-translate
asCGVector
(-mbgl_offsetPropertyValueWith:
)text-offset
is a good example of whyCGVector
is preferable toNSPoint
/CGPoint
: its unit is ems rather than screen pointsline-dasharray
asNSArray<NSNumber *> *
icon-text-fit-padding
asNSEdgeInsets
/UIEdgeInsets
(-mbgl_paddingPropertyValueWith:
)text-font
asNSArray<NSFontDescriptor *> *
/NSArray<UIFontDescriptor *> *
/cc @frederoni @incanus
The text was updated successfully, but these errors were encountered: