From 1045934d5e62eaf85bc280ce2d75e7558f5a5104 Mon Sep 17 00:00:00 2001 From: Roman Blum Date: Tue, 6 Dec 2016 02:16:13 +0100 Subject: [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. --- test/fixtures/map/get_icon/expected.png | Bin 0 -> 1010 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/fixtures/map/get_icon/expected.png (limited to 'test/fixtures/map') diff --git a/test/fixtures/map/get_icon/expected.png b/test/fixtures/map/get_icon/expected.png new file mode 100644 index 0000000000..b112096c18 Binary files /dev/null and b/test/fixtures/map/get_icon/expected.png differ -- cgit v1.2.1