4.4.2
mtehver
released this
30 Sep 12:23
·
110 commits
to master
since this release
This version brings several smaller features and fixes to 4.4.1. We recommended migrating to this version. No breaking changes, so it is a drop-in replacement to 4.4.0 and 4.4.1.
New features:
- Added
setSimplifyTolerance
,getSimplifyTolerance
methods toGeoJSONVectorTileDataSource
- Added support for complex CartoCSS selectors ('when' selectors)
- Added support for 'bevel', 'none' linejoin modes and 'square' linecap mode in CartoCSS.
- Added 'marker-color' property to CartoCSS that can be applied to both file-based markers and built-in markers.
Changes, fixes:
- Started using API 31 as compilation target on Android
- Started using Xcode 13 for compilation platform on iOS
- Implemented better error reporting of undefined variables in CartoCSS translator
- Fixed deadlock in
NMLModel
setRotation(axis, angle)
method caused by improper synchronization - Reimplemented
setLayerFeatureCollection
method inGeoJSONVectorTileDataSource
to make it faster by skipping serialization/parsing steps. - Implemented switching to 'bevel' linejoin at sharp angles when using 'miter' linejoin
- Fixed multiple issues with string escaping in parsers and generators in CartoCSS and MapnikVT library.
- Fixed minor issues related to internal expression -> predicate conversion in MapnikVT library.
- Fixed dash array generation for subpixel wide lines when rendering vector tiles
- Revised feature id generation logic in
GeoJSONVectorTileDataSource
, SDK now uses feature id, if available or a deterministic auto id generation when not available. - Reduced default simplication tolerance for
GeoJSONVectorTileDataSource
, new default value should not generate visible simplification artifacts - Converted CartoCSS 'marker-opacity' property to a view-level parameter, so it can be dependent on 'view::zoom'.
- Updated protobuf and harfbuzz libraries to the latest versions
- Disabled Sqlite locking extensions on iOS and MacCatalyst builds
- Fixed style fallback version in
CartoPackageManager
(when usingstartStyleDownload
method) - Changed exception type when encoutering unsupported geometry in
GeoJSONVectorTileDataSource
- Minor optimizations
Install with package management
-
Android gradle:
compile 'com.carto:carto-mobile-sdk:4.4.2@aar'
-
iOS and Mac Catalyst CocoaPod:
pod 'CartoMobileSDK', '4.4.2'
pod 'CartoMobileSDK-Metal', '4.4.2'
Note: Bitcode in 4.4.2 is generated using Xcode 13 and could be incompatible with earlier Xcode versions
Note: Mac Catalyst apps are supported only using ''CartoMobileSDK-Metal' framework.
- Swift Package Manager (iOS and Mac Catalyst):
https://github.com/nutiteq/mobile-sdk-ios-swift-package.git
https://github.com/nutiteq/mobile-sdk-ios-metal-swift-package.git
Note: Bitcode in 4.4.2 is generated using Xcode 13 and could be incompatible with earlier Xcode versions
Note: Mac Catalyst apps are supported only using 'Metal' framework.
- Xamarin and Visual Studio Package Manager (nuget) console:
PM> Install-Package CartoMobileSDK.iOS -Version 4.4.2
PM> Install-Package CartoMobileSDK.Android -Version 4.4.2
PM> Install-Package CartoMobileSDK.UWP -Version 4.4.2