diff options
author | Roman Blum <rmnblm@gmail.com> | 2016-12-06 02:16:13 +0100 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-12-05 17:16:13 -0800 |
commit | 1045934d5e62eaf85bc280ce2d75e7558f5a5104 (patch) | |
tree | cf299675768bb6ba1996d3a312823b60737bc109 /platform/ios/app | |
parent | 5579e67804369777819babba5cf6e25eb91ee77e (diff) | |
download | qtlocation-mapboxgl-1045934d5e62eaf85bc280ce2d75e7558f5a5104.tar.gz |
[core, ios, macos] Add image accessor to MGLStyle (#7096)
* [core] Add interface to get image from sprite atlas
* [tests] Add tests for Map::getImage
* [ios, macos] WIP: get MGLImage for name from style
* [ios, macos] Fixed -imageForName:
Convert from sprite images to platform images using the existing encodePNG() function, which is also used for printing. Allow -imageForName: to return nil without an assertion failure. Added a basic test.
Diffstat (limited to 'platform/ios/app')
-rw-r--r-- | platform/ios/app/Assets.xcassets/AppIcon.appiconset/Contents.json | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/ios/app/Assets.xcassets/AppIcon.appiconset/Contents.json b/platform/ios/app/Assets.xcassets/AppIcon.appiconset/Contents.json index c1b88669e7..e1bc22272f 100644 --- a/platform/ios/app/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/platform/ios/app/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -1,6 +1,16 @@ { "images" : [ { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { "size" : "29x29", "idiom" : "iphone", "filename" : "Icon-29@2x.png", @@ -37,6 +47,16 @@ "scale" : "3x" }, { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { "size" : "29x29", "idiom" : "ipad", "filename" : "Icon-Small.png", |