Sudarsana Babu Nagineni
7af00a404f
[core] Include pixelRatio property in MapOptions
...
Move pixelRatio property from Map constructor to MapOptions.
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
1cc1d4ea08
[core] Add setter/getter for size property in MapOptions
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
e639087c91
[core] Add getter for Map options
...
Instead of having individual getter for each Map option,
add a common getter for all Map options.
2019-03-28 16:41:15 +02:00
Bruno de Oliveira Abinader
ac6855a473
[core] Fix signature of fluent interface setters
2019-03-23 09:12:44 +02: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
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
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
Ander Conselvan de Oliveira
5733440747
[core] Group Map LatLngBounds, min and max zoom methods
...
Group bounds, minimum and maximum zoom related methods together using
the new BoundOptions.
v2: Document that getBounds() initializes all optional fields.
- Add test for getBounds() on a map with default values.
2019-03-14 18:33:11 +02:00
Bruno de Oliveira Abinader
8cc100bfd5
[core] Get FileSource via UpdateParameters in Renderer::Impl
2019-03-13 17:56:44 +02:00
Ander Conselvan de Oliveira
7d19115720
[core] Don't use exceptions in MapObserver::onDidFailLoadingMap
...
Using different exception pointers to specify the loading failure makes
an awkward API. Most users rethrow the exception only to figure out what
type of error happened so it can be reported properly. So replace the
exception pointer with a enum an string description of the failure.
2019-03-13 11:58:27 +02:00
Jason Wray
fb1b601038
[darwin] Fix MGLMapView.direction wrapping
...
Re-adds the 0-to-360° wrapping for MGLMapView.direction. Without this wrapping, we’d get ±180° from core, which results in invalid CLLocationDirection for the negative half of the rotational spectrum.
2019-03-12 14:49:49 -07:00
Sudarsana Babu Nagineni
5e2b6bf636
[core] Add MapOptions to define properties of Map
...
To simplify the Map constructor, introduce MapOptions
interface to define the properties that can be set on
a Map.
2019-03-08 18:20:55 +02:00
Bruno de Oliveira Abinader
586b22c0df
[core] Remove map coordinate setters/getters
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
ba7427b4ac
[core] Transform{State}: s/angle/bearing/
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
73ac3c784f
[core] Remove map bearing setters/getters
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
21a39306da
[core] Remove map pitch setters/getters
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
f5f10ec119
[core] Remove map zoom setters/getters
2019-03-04 14:45:32 +02: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
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
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
Julian Rex
b460efdf00
[ios] Partially offscreen annotations (without callouts) are no longer moved on-screen ( #13727 )
2019-01-22 17:45:06 -05:00
Julian Rex
49ee543e72
[macos] Fixes MGLMapView.visibleAnnotations ( #13745 )
2019-01-16 17:31:59 -05: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
Julian Rex
53e20430c8
[ios, macos] Fixes a bug where the animated parameter of -[MGLMapView selectAnnotation:animated:] was ignored. ( #13689 )
2019-01-09 13:07:00 -05:00
Julian Rex
76b3bb9d20
[ios, macos] Added missing mapViewDidBecomeIdle for iOS. Fixed typo. ( #13666 )
2019-01-04 09:15:59 -05:00
Chris Loer
662a495561
[docs] EnterIdle -> BecomeIdle
2018-12-11 11:46:16 -08:00
Chris Loer
70c2d5a4ca
[core, darwin, android] Add onDidEnterIdle to MapObserver.
...
didEnterIdle fires whenever render completes and no repaint is scheduled.
2018-12-11 11:46:16 -08:00
Minh Nguyễn
425a3ade9e
[ios, macos] Harmonize bundle identifiers
...
For consistency with each other and with their product name and module name, the iOS and macOS map SDKs now have a bundle identifier of com.mapbox.Mapbox, whether in the form of a static or dynamic framework. The logging subsystem identifier has also been changed to match.
2018-11-15 22:00:30 -08:00
Fabian Guerra Soto
c8fbcfd322
[ios, macos] Logging. ( #13235 )
...
* [ios, macos] Update the logging subsystem to platform agnostic.
* [ios, macos] Add coordinate to string function.
* [ios, macos] Add BOOL to string function.
* [ios, macos] Add tracing logs.
* [ios, macos] Add tracing logs to generated style classes.
* [ios, macos] Split logging categories accordingly to MGLLoggingLevel.
* [ios, macos] Log network requests.
* [ios, macos] Migrate NSAssert to MGLAssert.
* [ios, macos] Include MGLLoggingConfiguration to filesource-files.txt.
* [ios, macos] Fix logger string specifier for the line parameter.
* [ios, macos] Add logs to shapes classes.
* [ios, macos] Add logs to offline classes.
* [ios, macos] Add logs to annotation classes.
* [ios, macos] Add logs to foundation classes.
* [ios, macos] Fix snapshotter size logging.
* [macos] Add logs to map view.
* [ios, macos] Fix string from boolean prefix, add custom function for NSCAssert.
* Log size test
* [ios, macos] Add logging conditional compilation flag.
* [ios, macos] Rename function NSStringFromMGLTransition to MGLStringFromMGLTransition.
* [ios, macos] Remove verbose logging for release builds.
* [ios, macos] Rename NSStringFromCLLocationCoordinate2D to MGLStringFromCLLocationCoordinate2D.
* [ios, macos] Clean unnecesary blank lines in MGLLight.mm set methods.
* [ios, macos] Fix logging grammar, format, function names.
* [ios, macos] Remove compilation flag, rename flags.
2018-11-14 15:42:18 -08:00
Bruno de Oliveira Abinader
bf8b24fa8d
[build] Update to geometry v1.0.0
2018-11-13 17:28:26 +02:00
Minh Nguyễn
89cf6c6006
[macos] Removed redundant sign flip
...
Fixed an issue where the mbgl::CameraOptions’ heading was misinterpreted as going counterclockwise instead of clockwise.
2018-10-30 14:05:07 -07:00
Minh Nguyễn
8c15911717
[ios, macos] Removed extraneous radian-degree conversions
2018-10-26 16:25:29 -07:00
Fabian Guerra
064d8b9aa8
Add a custom logging for the Mapbox Maps SDK for iOS.
2018-10-26 12:45:14 -07:00
Minh Nguyễn
a030f1474f
[ios, macos] Distinguish between viewing distance and altitude
...
+[MGLMapCamera cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:] incorrectly treated the distance as an altitude. Due to backwards compatibility concerns, this method can’t be fixed in place. Instead, separate +[MGLMapCamera cameraLookingAtCenterCoordinate:correctlyFromDistance:pitch:heading:] and +[MGLMapCamera cameraLookingAtCenterCoordinate:altitude:pitch:heading:] methods have been added.
2018-10-01 18:12:03 -07:00
Fabian Guerra Soto
57837443bb
[ios, macos] Add crossSourceCollissions property. ( #12941 )
...
* [ios, macos] Add crossSourceCollissions property.
* [ios, macos] Add perSourceCollisions property.
* [ios, macos] Update changelogs.
2018-09-26 15:17:30 -07:00
Nadia Barbosa
7017ac512e
[ios, macos] Allow -convertCoordinateBounds to span antimeridian
2018-09-04 18:57:18 -07:00
Jordan Kiley
7fc872b797
Add enabled property to MGLShape ( #12352 )
...
* [ios, macos] Add -[MGLMapViewDelegate mapView:canSelectAnnotation:] method.
* [ios, macos] Update changelogs.
* [ios, macos] Add mapView:canSelect: integration tests.
* [ios, macos] Change semantics to shape annotations.
* [ios, macos] Update changelogs.
* [ios, macos] Update shapeAnnotationIsEnabled documentation, improve code readability.
2018-08-20 16:30:03 -07:00
Ivo van Dongen
ca0f2f925d
[darwin] arbitrary offline region geometries
2018-08-20 22:49:01 +03:00
Minh Nguyễn
2424582ee3
[macos] Canonicalized another exception name
2018-08-15 09:57:28 -07:00
Bobby Sudekum
4286d5869c
Add pitch argument to cameraThatFits functions ( #12213 )
2018-07-02 16:30:18 -07:00
Fabian Guerra
30376f3ce1
Merge branch 'release-boba' into master
...
# Conflicts:
# mapbox-gl-js
# platform/android/CHANGELOG.md
# platform/android/MapboxGLAndroidSDK/gradle.properties
# platform/android/gradle/dependencies.gradle
# platform/darwin/src/MGLVectorTileSource.mm
# platform/darwin/src/MGLVectorTileSource_Private.h
# platform/ios/CHANGELOG.md
# src/mbgl/style/expression/compound_expression.cpp
2018-05-17 11:47:31 -04:00
Fabian Guerra Soto
a425995189
[ios, macos] Add to-rgba expression operator. ( #11725 )
...
* [ios, macos] Add expression support to to-rgba operator.
* [ios, macos] Update style docs.
* [ios, macos] Refactored to-rgba to to-color.
* [ios, macos] Add support for to-rgba expression operator.
* [ios, macos] Add multiple parameters support to to-color operand.
* [ios, macos] Enable to-rgba operator for MGLColor or key path expressions.
* [ios, macos] Update predicates and expressions guide to reflect cast changes.
* [ios, macos] Update changelogs.
* [ios, macos] Clarify color casting usage.
2018-05-07 12:01:29 -04:00
Fabian Guerra Soto
a365dd11da
[ios, macos] Make NSPredicate+MGLAdditions public. ( #11810 )
2018-05-04 15:09:07 -04:00
Jason Wray
c067865e7b
[ios, macos] Update minimum deployment versions to iOS 9, macOS 10.11 ( #11776 )
...
* [ios] Remove iOS 8 conditionals
* [ios, macos] Bump pod deployment targets
* [ios, macos] Add changelog entries
* [ios, macos] Update docs
* Remove unnecessary selector-based version checks
* Update SQLite note
* [ios, macos] Replace lightweight generics macros with direct use
Lightweight generics for Foundation collections are available everywhere with the bump to iOS 9 and macOS 10.11.
* Update deprecated macOS method
2018-04-27 12:25:49 -04:00
Julian Rex
5b5549d644
[ios, macos] Fix for camera movement when selecting visible annotations ( #11731 )
2018-04-24 11:01:04 -04:00
Minh Nguyễn
9faed7293b
[ios, macos] Eliminated MGLAbstractShapeSource
...
MGLComputedShapeSource is now a direct subclass of MGLSource and sibling of MGLShapeSource.
2018-04-02 10:42:54 -07:00
Minh Nguyễn
a877b6dbe8
[ios, macos] Renamed MGLVectorSource to MGLVectorTileSource
2018-04-02 10:42:54 -07:00
Minh Nguyễn
29a8efab26
[ios, macos] Renamed MGLRasterSource to MGLRasterTileSource
...
Also updated various source class listings to reflect the addition of image and raster DEM sources.
2018-04-02 10:42:54 -07:00
Minh Nguyễn
59e92904c3
Eviscerate mbgl expression to Foundation JSON object conversion ( #11389 )
...
* [ios, macos] Eviscerate mbgl expression to Foundation JSON object conversion
* [ios, macos] Remove literal special case
MGLJSONObjectFromMBGLValue() is just a literal translation from C++ types to Foundation types; no need for expression-specific literal wrapping.
* [ios, macos] Implemented RGB(A) operators
* [ios, macos] More robust color conversion
* [macos] Create calibrated RGB from expression on Sierra
* [macos] Calibrate colors in expressions at runtime
* [ios, macos] Special-case number conversion without fallbacks
* [ios, macos] Test mgl_number expressions
* [ios, macos] Updated tests for aftermarket expressions
* [ios, macos] Relax roundtripping requirement for serialize()
* [ios, macos] Fixed interpolation expression tests
* [ios, macos] Removed dead code
* [ios, macos] Fixed color conversion on Sierra
2018-03-30 16:43:55 -07:00