Commit Graph

5074 Commits

Author SHA1 Message Date
tobrun
0eb62576ce [android] - introduce mapview weak reference in global layout listener 2018-02-12 11:14:58 +01:00
tobrun
89dab8a01e [android] - add optional location provider lost to proguard configuration 2018-02-12 11:14:58 +01:00
tobrun
ff8d1e4b50 [android] - programmatically create GlSurfaceView 2018-02-12 11:14:58 +01:00
tobrun
f581adde16 [android] - don't recreate surface as part of view resize 2018-02-12 11:14:58 +01:00
Pablo Guardiola
6afff00ed4 [android] remove unnecessary @jar and @aar dependencies suffixes (#11161)
* [android] remove unnecessary @jar and @aar dependencies suffixes

* [android] remove lint baseline file from mapbox gl android sdk module and fix lint errors
2018-02-09 16:46:41 +01:00
Osana Babayan
7a0a4c44f4 migrated to use mapbox-java3.0
migrated to use mapbox-java3.0 
old 2.2.9 telementry is still used though
2018-02-08 10:33:12 -05:00
Konstantin Käfer
9b961fb6f9 [core] factor out RunLoop::wake() 2018-02-07 18:21:58 +01:00
Minh Nguyễn
e6d6a231e8 [ios, macos] Added Danish localization 2018-02-07 02:34:29 -08:00
Minh Nguyễn
6e7b839fe0 [macos] Updated Hungarian translations 2018-02-07 02:34:29 -08:00
Minh Nguyễn
bffc834ff1 [ios] Updated Swedish translations 2018-02-07 02:34:29 -08:00
Minh Nguyễn
6757456e16 [android, ios, macos] Updated Russian translations 2018-02-07 02:34:29 -08:00
Minh Nguyễn
1d48a7d2ff [ios] Removed byte order mark 2018-02-07 02:34:29 -08:00
Tobrun
afdb291653 [android] - blacklist flaky instrumentation tests 2018-02-05 12:19:41 +01:00
Tobrun
c9ef84316a [android] - update changelog for 5.4.0 2018-02-05 12:19:41 +01:00
Martin Hellwig
cdf65020c1 Implement new bearingTrackingMode GPS_NORTH_FACING 2018-02-05 12:19:41 +01:00
Łukasz Paczos
3714aa94e7 [android] - log lack of permissions only if enabling location 2018-02-05 12:19:41 +01:00
Tobrun
2d6fcd3178 [android] - update javadoc with links to style specification 2018-02-05 10:50:22 +01:00
Minh Nguyễn
02e6265c83 [ios] Made NSExpression+MGLAdditions.h public 2018-01-29 21:34:41 -08:00
Tobrun
828847101b [android] - release android v6.0.0-beta.1 2018-01-29 11:36:04 +01:00
Tobrun
ff891054a2 [android] - update changelog for v6.0.0-beta.1 2018-01-29 11:36:04 +01:00
Fabian Guerra Soto
306898d77b [ios] Update changelog and bump pod spec to 4.0.0-beta.1 (#11069)
* [ios] Update changelog and bump pod spec to 4.0.0-beta.1

* [ios, macos] Reorganized changelog entries

* [ios] Add missing changelog entries.

* [ios, macos] Rolled up core changes into changelogs
2018-01-26 15:56:03 -05:00
Minh Nguyễn
045392938b [ios] Fixed syntax error in style author guide 2018-01-26 10:42:23 -08:00
Minh Nguyễn
65bab30384 [ios, macos] Documented ranges of style properties 2018-01-26 10:42:23 -08:00
Fabian Guerra
91521fa106 [ios] Fix image property of MGLAnnotationImage does not update. 2018-01-26 10:20:30 -05: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