Commit Graph

5052 Commits

Author SHA1 Message Date
Tobrun
a005fb7375 [android] - update changelog for v6.0.0-beta.1 2018-01-26 17:41:20 +01:00
Konstantin Käfer
c148a7a061 [core] align implementations of local and asset file source 2018-01-25 13:45:47 -08:00
Fabian Guerra
da7759a273 Merge branch 'release-agua' into master
# Conflicts:
#	include/mbgl/style/conversion/layer.hpp
#	platform/android/MapboxGLAndroidSDK/build.gradle
#	platform/android/MapboxGLAndroidSDK/gradle.properties
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Transform.java
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegion.java
2018-01-25 14:39:18 -05:00
Minh Nguyễn
b6747a84f4 [ios, macos] Hook up hillshade style layers, raster DEM sources to iOS/macOS (#11036)
* [ios, macos] Finished implementing MGLHillshadeStyleLayer

* [macos] Added icon for hillshade layer

Also set the background layer icon to mirror in right-to-left locales.

* [ios, macos] Implemented raster DEM source

* [macos] Added Enhance Terrain debugging command

* [ios, macos] Simplified raster DEM source example
2018-01-25 10:46:27 -08:00
Fabian Guerra
0ebc2ee91f [ios, macos] Fix MGLMapSnapshotter pointForCoordinate returns an scaled point. 2018-01-25 10:06:54 -05:00
Tobrun
a4546a84de [android] - add binding integration for RasterDEMSource, add example 2018-01-25 12:54:10 +01:00
Tobrun
0d453a688b [android] - correct marker location when using Snapshot#pixelForLatLng 2018-01-25 11:07:48 +01:00
Tobrun
5dbc20dc75 [android] - add toString to Expression to print out object array notation 2018-01-25 10:21:14 +01:00
Minh Nguyễn
37e47e2f10 [ios, macos] Raster style layers are used with image sources too 2018-01-24 17:46:34 -08:00
Konstantin Käfer
d511f74ce4 [node] add setLight support 2018-01-24 16:35:47 -08:00
Konstantin Käfer
2502a3ab2b [core] update mapbox-gl-js submodule pin
* disables transition render test (transitions are not supported with Still image rendering in Node.js)
* removes support for hillshade-illumniation-direction-transition
2018-01-24 15:41:22 -08:00
Tobrun
7159a14b35 [android] - add SafeVarargs to Expression methods 2018-01-24 21:53:03 +01:00
Minh Nguyễn
703c73fda8 [ios, macos] Removed heatmap layer suppression from Darwin code generator 2018-01-24 10:21:01 -08:00
Konstantin Käfer
ecfb77c637 [build] Write out a list of files generated by our code generator scripts
This will help us tracking deleted/modified/added files
2018-01-24 08:35:31 -08:00
Konstantin Käfer
13d27c700e [build] Always use style-code's writeIfModified to unify file updates 2018-01-24 08:35:31 -08:00
Konstantin Käfer
9d1fa508a3 [build] Add temporary modifications to style spec + shaders
This ensures that the generated code matches what is checked in. Remove those temporary modifications once we add the features to master.
2018-01-24 08:35:31 -08:00
Tobrun
1a2c316f95 [android] - create Handler using the main thread looper 2018-01-24 15:46:19 +01:00
Tobrun
4ff9fe762d [android] - rename initRenderSurface to onSurfaceCreated 2018-01-24 15:13:17 +01:00
Minh Nguyễn
fb5b8d34f2 Reimplement style values atop NSExpression (#10726)
* [ios, macos] Import headers, not implementation files

* [core] Added accessors for various expression parameters

Added missing parameter accessors to various expression operator classes, as well as a method on InterpolatorBase and Step that enumerates the stops and their values.

* [ios, macos] Silenced warning in test of error condition

* [ios, macos] Made MGLSphericalPosition boxable

* [ios, macos] Implemented array enumeration during conversion

* [ios, macos] Temporarily ignore heatmap layer type

* [ios, macos] Migrated MGLSymbolStyleLayer.text to NSExpression

MGLSymbolStyleLayer.text is now of type NSExpression instead of MGLStyleValue, as a first step toward migrating the entire layer API from style values to expressions.

Implemented conversions from NSExpression to JSON arrays and vice versa. The most common NSExpression functions are now converted into style expressions, but not all of the most common style expression operators are supported yet.

* [ios, macos] Implemented string coercion

* [ios, macos] Color literals

* [ios, macos] Null constant expressions

* [ios, macos] Convert dictionary literals

* [ios, macos] Interpolation expressions

* [ios, macos] to-boolean, to-number, get from object

* [ios, macos] Variable expressions

Implemented custom expression functions for assigning and referring to variables within the context of an expression. Variables are assigned via a “context dictionary” and applied to an subexpression that is given as another argument to the same expression. Also implemented built-in variable expressions for zoom level and heatmap density.

* [ios, macos] Convert colors, offsets, padding in expressions to JSON objects

* [ios, macos] Expression-based style property getters

Implemented a conversion from mbgl::style::PropertyValues to Objective-C JSON objects, which are then converted to NSExpressions.

* [ios, macos] Consolidated property value–expression conversion in MGLStyleValueTransformer

* [ios, macos] Predicate and expression guide

Extracted documentation about predicates from a documentation comment in MGLVectorStyleLayer.h to a new jazzy guide. Added details about NSExpression support as well. Began updating the “For Style Authors” guide to reflect the transition from style values to expressions.

* [ios, macos] Updated style authoring guide

Updated the Information for Style Authors guide to discuss expressions instead of style functions. Included a table mapping style specification expression operators to NSExpression syntaxes.

* [ios, macos] Migrated codegen templates to expressions

* [ios, macos] Applied expression changes via codegen

Ran make darwin-style-code.

* [macos] Migrated macosapp to expressions

* [ios, macos] Updated style function guide

This guide needs to be thoroughly rewritten, but for now the example code has been migrated to expressions.

* [ios, macos] Eviscerated style function tests

* [ios, macos] Updated changelogs

* [ios] Migrated iosapp to expressions

* [ios, macos] Exposed JSON conversion methods publicly

* [ios, macos] Removed MGLStyleValue, MGLStyleFunction
2018-01-24 00:04:02 -08:00
Tobrun
14f3f86f63 [android] - release android v5.3.2, bump snapshot version 2018-01-23 20:26:53 +01:00
Molly Lloyd
f3294200c6 [core] add raster-dem source type and hillshade layer type (#10642) 2018-01-23 10:49:23 -08:00
Tobrun
80789ab2c8 [android] - rollback fragment flash changes for ViewPager support 2018-01-23 12:09:48 +01:00
Tobrun
938f087e38 [android] - update changelog for v5.3.2 2018-01-23 12:09:48 +01:00
Tobrun
dc8d4e8b0f [android] - handle null Call instances in HttpRequest 2018-01-23 12:09:48 +01:00
Tobrun
6e5ddfae95 [android] - allow setting an OkHttpClient 2018-01-23 12:09:48 +01:00
Łukasz Paczos
c3068ec397 Camera callbacks for velocity animated movements (#10925)
* [android] camera listeners double invocation fix

* [android] invoking camera change callbacks for velocity animated movements
2018-01-23 12:09:48 +01:00
Łukasz Paczos
06f3f8fddb [android] do not overwrite user-set focal point when tracking location (#10910) 2018-01-23 12:09:48 +01:00
Tobrun
82eabf18b1 [android] - retain configuration for user provided focal point and deselect markers on tap 2018-01-23 12:09:48 +01:00
Tobrun
4a2ced5651 [android] - add filesource activation/deactivation to OfflineRegion status and deletion 2018-01-23 12:09:48 +01:00
Tobrun
b03c226373 [android] - check if the render surface has been correctly created before destroying the map 2018-01-23 12:09:48 +01:00
Tobrun
46ace8d2c7 [android] - validate zoom level before creating mapbox telem event 2018-01-23 12:09:48 +01:00
Tobrun
2d15aed43c [android] - update changelog for v5.3.2 2018-01-22 19:35:11 +01:00
Tobrun
982fcc9d0a [android] - handle null Call instances in HttpRequest 2018-01-22 19:34:43 +01:00
Tobrun
d0987e97a4 [android] - validate zoom level before creating mapbox telem event 2018-01-22 18:28:14 +01:00
Minh Nguyễn
4fc070dcfd [ios, macos] Converted strings files to UTF-8 2018-01-19 18:09:59 -08:00
Minh Nguyễn
7cc0029758 [android, ios, macos] Updated Ukrainian translations 2018-01-19 18:09:59 -08:00
Minh Nguyễn
2820d97237 [android, ios, macos] Updated Swedish translations 2018-01-19 18:09:59 -08:00
Minh Nguyễn
e329004f26 [android, ios, macos] Updated French translations 2018-01-19 18:09:59 -08:00
Andrew Kitchen
d0193c5b2b Restores fix to MGLOpenGLStyleLayer memory-related crash (#10765)
Revert this commit to see integration test fail.
2018-01-19 20:28:57 -05:00
Andrew Kitchen
2c48871c06 Adds an integration test harness to the iOS project
This will allow us to write lightweight integration tests between MGLMapView and the core renderer.
Also includes a test for the recent custom layer memory fix, reverting the fix in order to demonstrate the failing test.
2018-01-19 20:28:57 -05:00
Minh Nguyễn
40a0b2deb7 [android, ios, macos] Added Hebrew localization 2018-01-19 15:57:54 -08:00
Jason Wray
7c2e8c5eb1 [ios] Remove support for 32-bit simulators (i386)
And restore some docs that got lost in a merge.
2018-01-19 10:25:17 -05:00
Jason Wray
42845ad63f [ios] Optimize MGLAnnotationView scale transform when not pitched 2018-01-18 13:59:43 -05:00
Tobrun
b863871bf2 [android] - allow setting an OkHttpClient 2018-01-18 15:20:24 +01:00
Tobrun
c404e3bccb [android] - expose setting a custom attribution manager through UiSettings 2018-01-18 14:12:38 +01:00
Tobrun
da891fc166 [android] - expose attribution manager as public API 2018-01-18 14:12:38 +01:00
Tobrun
11fa52a1fe [android] - cleaup dependencies.gradle 2018-01-18 14:12:09 +01:00
Jesse Bounds
fa3dee93f8 [ios] Remove unused reference to reachability
This removes a reference to reachability that has been used and incorrect since the file does not exist at the referenced location.
2018-01-17 11:52:48 -08:00
Fabian Guerra
42bcb4b405 Merge branch 'release-agua' into master
# Conflicts:
#	platform/android/CHANGELOG.md
#	platform/android/MapboxGLAndroidSDK/gradle.properties
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
#	platform/ios/CHANGELOG.md
#	platform/ios/ios.xcodeproj/project.pbxproj
#	platform/macos/CHANGELOG.md
2018-01-17 09:41:37 -05:00
Minh Nguyễn
2411fb31b7 macos-v0.6.1 2018-01-16 09:24:42 -08:00