This repository has been archived by the owner on Jun 21, 2023. It is now read-only.
ios-v5.9.0-alpha.1
Pre-release
Pre-release
MapboxCI
released this
25 Apr 07:34
·
77 commits
to master
since this release
Changes since Mapbox Maps SDK for iOS v5.8.0:
Styles and rendering
- Added the
distance
expression function for calculating the shortest distance between the evaluated feature and a GeoJSONPoint
,MultiPoint
,LineString
, orMultiLineString
geometry that you specify. Use this function in expressions in style JSON or with theMGL_FUNCTION()
syntax in anNSExpression
format string. (mapbox/mapbox-gl-native#16397) - Added the
MGLCircleStyleLayer.circleSortKey
property. (mapbox/mapbox-gl-native#15875) - Chinese, Japanese, and Korean characters are now set in the font specified in style JSON or by the
MGLSymbolLayer.textFontNames
property. If the named font is not installed on the device or bundled with the application, the characters are set in a fallback font listed in theMGLIdeographicFontFamilyName
key in the Info.plist file. (#189) - The
MGLIdeographicFontFamilyName
key in the Info.plist file can now specify the fallback fonts for CJK characters by their PostScript names or display names in addition to font family names. For example, you can specifyNotoSansCJKjp-Bold
orNoto Sans CJK JP Bold
, which ensures that the characters are set in bold. You can alternatively specify these font names in theMGLIdeographicFontFamilyName
key ofNSUserDefaults.standardUserDefaults
. (#189) - CJK characters are now laid out according to the font, so fonts with nonsquare glyphs have the correct kerning. (#189)
- Fixed an issue where the baseline for CJK characters was too low compared to non-CJK characters. (#189)
- Fixed a crash when calling the
-[MGLStyle removeImageForName:]
method with the name of a nonexistent image. (mapbox/mapbox-gl-native#16391) - Fixed an issue where properties such as
MGLFillStyleLayer.fillColor
andMGLLineStyleLayer.lineColor
misinterpreted non-opaqueUIColor
s. (#266)
Other changes
- Fixed a crash when encountering an invalid polyline. (mapbox/mapbox-gl-native#16409)
- Fixed an issue where an
MGLMapSnapshotOptions
with an invalidMGLMapCamera.centerCoordinate
, negativeMGLMapCamera.heading
, negativeMGLMapCamera.pitch
, and negativeMGLMapSnapshotOptions.zoomLevel
resulted in a snapshot centered on Null Island at zoom level 0 even if the style specified a different initial center coordinate or zoom level. (#280) - Fixed an error that occurred if your implementation of the
-[MGLOfflineStorageDelegate offlineStorage:URLForResourceOfKind:]
method returned a local file URL. (mapbox/mapbox-gl-native#16428) - Certain logging statements no longer run on the main thread. (mapbox/mapbox-gl-native#16325)
To install this pre-release via a dependency manager, see our CocoaPods or Carthage instructions.
Documentation is available online or as part of the download.