Minh Nguyễn
dc3470b993
[ios, macos] Only set stretchable regions for stretch resizing mode
2020-03-11 16:55:18 -07:00
Minh Nguyễn
a18d5211a6
[ios, macos] Roundtrip resizable image cap insets
2020-03-11 16:55:18 -07:00
Minh Nguyễn
9c4b5ee557
[ios, macos] Nine-part resizable images
...
The MGLSymbolStyleLayer.iconTextFit property now respects the cap insets of any nine-part stretchable image passed into the -[MGLStyle setImage:forName:] method.
The “Manipulate Style” command in macosapp demonstrates the stretchable image feature by adding a single Ohio state route shield image, which has cap insets defined in the asset catalog, and labeling each Ohio state route with that image, stretched to fit the route number without widening the icon’s stroke.
2020-03-11 16:55:18 -07:00
Minh Nguyễn
5b4fb6c216
mapbox-gl-native v1.3.0
2020-02-28 11:45:09 -08:00
Jason Wray
5b488225fb
[ios] Add MGLCompassButton and MGLOrnamentVisibility
2019-07-11 16:06:54 -07:00
Andrew Kitchen
a2817ff5ed
[darwin, macos, ios] Renames CGImage creation function to imply +1 retain count ( #10570 )
2017-11-27 16:47:58 -08:00
Fabian Guerra Soto
f01588cac7
[ios, macos] Improve snap shotter documentation. ( #10020 )
...
* [ios, macos] Improve snap shotter documentation.
* [macos] Save snapshots in correct format
* [macos] Renamed snapshot item to Export Image
* [ios, macos] Clarify Snapshotter documentation.
* [ios] Fix snapshot scale
* [macOS] Fix snapshotter 4x scaling.
* [ios] Fix snapshotter final image scale.
* [ios, macos] Update snapshotter size documentation.
* [ios, macos] Throw an exception when the snapshotter has already started.
* [ios, macos] Add snapshotter header example.
* [ios, macos] Use one of the predefined Foundation's exception names.
2017-10-04 10:03:03 -04:00
Ivo van Dongen
6d47471767
[ios] extend ui image additions with init from premultiplied image
2017-09-05 16:29:33 +03:00
Asheem Mamoowala
7f36e0cf76
[iOS][macOS] Export MGLImageSource, add and update documentation. Use animated ImageSource demo in iOS test app
2017-06-19 09:50:08 -07:00
Asheem Mamoowala
ab5b310a9e
[iOS][macOS] Add ImageSource bindings
2017-06-19 09:50:08 -07:00
John Firebaugh
cc1ea759a6
[core, node, darwin, android, qt] Make image ID part of Image
...
More like Source and Layer.
2017-05-16 12:26:35 -07:00
Ivo van Dongen
cc9f040a2d
[core] Split style image collection from SpriteAtlas
2017-05-12 13:19:00 -07:00
John Firebaugh
5dd98df50b
[all] Rationalize style::Image
...
A style has a collection of images, just as it has collections of sources and layers.
* Name things appropriately
* Use std::unique_ptr
2017-04-24 15:52:28 -07:00
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
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
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