Konstantin Käfer
19bd68d3a2
[macos,ios] don't roundtrip through encodePNG when converting images
2017-01-26 15:26:55 +01:00
Minh Nguyễn
7ef2843e6a
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7
2017-01-16 11:38:35 -08:00
Minh Nguyễn
581fb3849d
[ios, macos] Fix miscellaneous static analyzer warnings ( #7670 )
...
* [ios, macos] Fixed static analyzer warnings
Fixed static analyzer warnings in MGLNetworkConfiguration, MGLRasterSource, and MGLShape.
* [ios] Fixed static analyzer warnings
Fixed static analyzer warnings in MGLAnnotationImage.
* [macos] Fixed static analyzer warnings
Fixed static analyzer warnings in MGLAnnotationImage and NSImage(MGLAdditions).
* [ios, macos] Two pointer-equal images are object-equal by definition
2017-01-11 03:08:05 -08:00
Minh Nguyễn
a6b1773a44
Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-master
...
Also reran make style-code and manually discarded anything related to fill extrusion layers.
2016-12-20 12:41:40 -08:00
Minh Nguyễn
88f91a48ae
[ios, macos] Template images as style images
...
Convert template images to SDF icons and back when storing them as style images.
2016-12-06 16:20:14 -08:00
Roman Blum
1045934d5e
[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.
2016-12-05 17:16:13 -08:00
Konstantin Käfer
62b56b799a
[core] change std::array<uint16_t, 2> to mbgl::Size
2016-10-27 18:30:58 -07:00
Minh Nguyễn
f064744c36
[macos] Fixed compilation error ( #6690 )
...
Followup to last-minute refactoring in #6637 .
2016-10-12 21:06:50 -07:00
Roman Blum
a24e559ac8
[ios, macos] possibility to set custom images to style ( #6637 )
...
* [ios, macos] possibility to set custom images to style
* [ios, macos] setImage:forName now supports MGLImage (UIImage/NSImage)
* [ios, macos] update documentation for setImage:forName: and removeImageForName:
* [ios, macos] rename method and fix prefix
* [ios, macos] change header visibility to project
* [ios, macos] update header imports
* [ios, macos] delete unnecessary whitespaces
* [ios, macos] remove unnecessary nil checks
* [ios, macos] delete unnecessary whitespaces
* [ios, macos] update documentation
* [ios, macos] make mgl_spriteImage a parameter-less instance method
* [ios, macos] add asserts
2016-10-12 12:30:20 -07:00