Konstantin Käfer
5cc3d7a733
[core] move GLContextMode to RendererBackend
2019-04-05 11:49:17 +02:00
Konstantin Käfer
66c020034e
[core] refactor RendererBackend
2019-04-05 11:49:17 +02:00
Konstantin Käfer
a782a6d15b
[core] move BackendScope to gfx namespace
2019-04-05 11:49:17 +02:00
Ansis Brammanis
2455275bf4
add onStyleImageMissing to allow dynamically loaded or generated images ( #14253 )
...
Also make `Style#updateImage(...)` much faster when the image doesn't change size. This can be useful for asynchronously generating images.
2019-04-02 12:57:45 -04:00
Mikhail Pozdnyakov
2cfdd1a2f7
[Darwin] Improve documentation for enum array properties
2019-03-29 16:18:41 +02:00
Mikhail Pozdnyakov
1eaae50ffe
[darwin] Support for variable text placement API
2019-03-29 16:18:41 +02:00
Julian Rex
c7d53676d0
[ios, core] Updates project for iOS SDK 12.2 / Always use vendored optional ( #14241 )
2019-03-27 09:58:41 -04:00
Fabian Guerra Soto
10114c85bb
[ios, macos, build] Remove DEBUG from logging configuration. ( #13933 )
...
* [ios, macos] Change the debug flag usage to NDEBUG.
* [ios, macos] Add NDEBUG preprocessor macro to ios/macos project conf.
2019-03-25 09:25:08 -07:00
Bruno de Oliveira Abinader
ac6855a473
[core] Fix signature of fluent interface setters
2019-03-23 09:12:44 +02:00
Fabian Guerra Soto
1d7b243a06
[ios, macos] Support expressions in formatting parameters. ( #14198 )
...
Modified MGLAttributedExpression object to support NSExpressions as formatting attributes only. This aligns with GL and Android implementation and specification.
Modified the documentation accordingly, and changed MGLFontSizeAttribute to MGLFontScaleAttribute to clarify the true function of the formatting parameter.
2019-03-22 13:45:39 -07:00
Fabian Guerra Soto
1388f3a502
[ios, macos] Fix conditional expression parsing error. ( #14181 )
...
Fixed an error that caused conditional expressions to crash when a conditional parameter was also a conditional expression.
2019-03-21 12:36:39 -07:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +02:00
Bruno de Oliveira Abinader
8ac73254c1
[darwin] [MGLOfflineStorage mbglFileSource] is now a shared_ptr
2019-03-20 21:30:08 +02:00
Fabian Guerra Soto
fc77090fce
[ios, macos] Fix format expression parsing. ( #14168 )
...
Fixed a parsing issue when a non-constant expression was passed to MGLAttributedExpression.expression property.
2019-03-20 10:49:23 -07:00
Fabian Guerra Soto
174c8fa7e4
[ios, macos] Add text-color support to format expressions. ( #14146 )
...
Added the possibility of overriding paint properties inside the format expression.
Added an example of how to create an MGLAttributedExpression object and documented the attributes keys and value types.
Fixed a bug that ignored the font names.
2019-03-19 14:53:35 -07:00
Minh Nguyễn
40458177b7
[ios] Deleted unused NSData category
2019-03-18 22:12:43 -07:00
Fabian Guerra Soto
7939ff213a
[ios, macos] Add format expression convenience methods support. ( #14094 )
...
Added the ios/macos format expression bindings.
The equivalent is mgl_attributed: or mgl_attributed({}) when making an expression using the expressionForFormat selector.
A new constructor called mgl_expressionForAttributedExpressions:(NSArray<NSExpression*>*)attributedExpressions was added to NSExpression+MGLAdditions category.
Updated the symbol style layer text test to use the bindings.
Updated the Predicates and Expressions.md and For Style Authors.md.ejs template with the bindings.
2019-03-15 16:10:27 -07:00
Fabian Guerra Soto
79f3307c4b
[ios, macos] Fix a bug with multiple format expressions. ( #14064 )
...
Fixed a bug where `format` expressions using the generic `MGL_FUNCTION` binding ignored multiple formatting parameters.
2019-03-07 19:28:20 -08:00
Julian Rex
b29704cd1f
[ios] Mute warnings about OpenGL deprecation. ( #14019 )
2019-03-05 08:52:14 -05:00
Bruno de Oliveira Abinader
ba7427b4ac
[core] Transform{State}: s/angle/bearing/
2019-03-04 14:45:32 +02:00
Lloyd Sheng
0a41bb1e66
[ios] Make PingFang as the default local font family for GCJ glyphs( #13988 )
...
* Make PingFang as the default local font family
* Add a changelog
2019-02-27 14:49:49 +08:00
Minh Nguyễn
26e1c925f2
[ios, macos] Expose MGLMapView OpenGL context to OpenGL style layers
...
Added a property to MGLOpenGLStyleLayer that contains the map view’s underlying OpenGL rendering context.
2019-02-25 10:44:43 -08:00
Jason Wray
c00d44740f
[ios] Mock MGLOfflineStorage in MGLDocumentationExampleTests
...
Otherwise we risk kicking-off long-running offline pack downloads that could interfere with other tests.
2019-02-19 16:33:27 -08:00
Fabian Guerra Soto
1fc7a9b82e
[ios, macos] Expose the url session configuration object. ( #13886 )
...
The `MGLNetworkConfiguration` class was make public, and added `sessionConfiguration` property to let developers customize the `NSURLSessionConfiguration` object that is used to make HTTP requests in the SDK.
2019-02-18 13:16:20 -08:00
Jordan Kiley
5d85056030
[ios, macos] Move apiBaseURL to MGLAccountManager` ( #13754 )
...
[ios, macos] Move `apiBaseURL` to `MGLAccountManager`
2019-02-13 13:20:48 -08:00
Thiago Marcos P. Santos
470b01847d
[android,linux,darwin,qt] Load OpenGL for the platform
...
These loaders will provide pointers to the platform implementation
of OpenGL. On Android, Linux and Darwin, we simply link with the
OpenGL implementation that is expected to exist on the platform.
Qt has its own GL loader, so we just connect the dots.
2019-02-12 19:42:08 +02:00
Fabian Guerra Soto
63065e1268
[ios, macos] Update unit test bundle identifier. ( #13875 )
2019-02-05 14:49:00 -08:00
Josh Erb
5d891b4b2a
[ios][documenation] add additional code snippets to API docs
2019-01-30 13:18:45 -05:00
Jason Wray
44fbba8514
[darwin, docs] Improve method/property linking in jazzy
2019-01-29 16:06:10 -08:00
Jesse Crocker
984a5ccd5b
[ios] Fix typo in MGLComputedShapeSource error message
2019-01-25 12:00:16 -08:00
Jason Wray
67e5761e72
[ios] Update more URLs to docs.mapbox.com/ios
2019-01-25 11:57:45 -08:00
Mikhail Pozdnyakov
8fedfbf160
[android, darwin] Fix core-only layer creation
...
In the layer manager implementations `addLayerTypeCoreOnly()`
should be called with core-only modules.
2019-01-25 15:38:07 +02:00
Nadia Barbosa
332c1ac96a
[ios] Fix links in documentation
...
[ios] Update to docs.mapbox.com
Update links
2019-01-23 13:16:28 -08:00
Fabian Guerra Soto
ca129e0c79
[ios, macos] MGLMapView logging improvements. ( #13776 )
...
Added NSEdgeInsets to NSString function to improve the debugging on macOS.
Added debug logs to MGLMapView.
2019-01-22 15:42:28 -08:00
Antonio Zugaldia
d5659aa664
[core,ios,android] Update feedback URL in code and tests ( #13710 )
...
* [core,ios] rename all occurrence of www.mapbox.com/map-feedback to apps.mapbox.com/feedback
* [ios,android] rename all occurrence of www.mapbox.com/feedback to apps.mapbox.com/feedback
2019-01-17 17:00:56 -08:00
Michael Muesch
24468956fc
Ability to disable any layer using pre-processing flags.
2019-01-17 18:56:58 +02:00
Julian Rex
c8c664fbf3
[ios, macos] Support getLeaves (and related) clustering methods ( #12952 ) following feature extension API ( #13382 )
2019-01-14 15:17:13 -05:00
Heather Stenson
6a31c9987b
[macos] - update links to new API doc format ( #13693 )
2019-01-10 12:55:41 -08:00
Nadia Barbosa
f867c5784c
[ios, macos] Bump code comments to streets-v8
2019-01-08 12:13:58 -08:00
Fabian Guerra Soto
4a858eb381
[ios, macos] Renames MGLStyle.enablePlacementTransitions ( #13685 )
...
* [ios, macos] Rename enablePlacementTransitions to performsPlacementTransitions.
* [ios, macos] Update changelogs.
2019-01-08 11:56:25 -06:00
Chris Loer
387fa1800f
[ios, macos] Add "includesIdeographicGlyphs" option to MGLOfflineRegion.
2018-12-21 15:13:48 -08:00
Julian Rex
1c7cd243c4
[core,ios,macos] Updates default styles to streets v11, etc. ( #13585 )
2018-12-18 16:00:19 -05:00
Mikhail Pozdnyakov
a408b2f5d5
[mac, ios] Enable core-only layers
...
`LayerManagerDarwin` can add layer types that are enabled only for JSON style.
It allows to exclude the SDK wrappers for these layers from the project and decrease binary size.
2018-12-18 18:57:16 +02:00
Fabian Guerra Soto
fed201aaed
[ios, macos] Fix number conversions when expressions cast to large numbers. ( #13580 )
...
* [ios, macos] Fix number conversions when expressions cast to large numbers.
* [ios, macos] Update changelogs.
2018-12-14 14:40:16 -08:00
Konstantin Käfer
1d8235f5b8
[build] rework platform/default directory and add -files.txt for vendored libs
2018-12-14 11:03:03 +01:00
Fabian Guerra Soto
bbeec8dacb
[ios, macos] Add enablePlacementTransitions to MGLStyle. ( #13565 )
...
* [ios, macos] Add enablePlacementTransitions to MGLStyle.
* [ios, macos] Update changelogs.
2018-12-13 10:19:56 -08:00
Alexander Shalamov
b6b1067caf
[ios, darwin] Make MGLFeature.attributes non-nullable and add integration test
...
Enforce non-nullable semantics for MGLFeature.attributes, to avoid construction of invalid mbgl::Feature properties
from nil NSDictionary object and align with public SDK property definition.
Integration test "testShapeSourceWithLineDistanceMetrics" is added to verify that MGLFeature is correctly converted.
Fixes issue #13378
2018-12-13 19:38:50 +02:00
Fabian Guerra
98984ef292
[ios, macos] Fix MGLTransition struct creation.
2018-12-12 15:07:23 -08:00
Jordan Kiley
b3a244f7d8
[darwin] move turnstile event for snapshotter ( #13549 )
2018-12-12 10:58:08 -08:00
Mikhail Pozdnyakov
ebd87a5442
[core, android, darwin] Move layer factories to separate files
2018-12-10 18:20:32 +02:00