Commit Graph

12243 Commits

Author SHA1 Message Date
Łukasz Paczos
c0bb9aaa81 [android] reworked zoomIn and zoomOut to use ValueAnimators (#11382) 2018-03-05 14:23:28 +01:00
Anand Thakker
8ed540ea7b Port fix for "at" expression off-by-1 error (#11375)
* Port fix for "at" expression off-by-1 error

Refs https://github.com/mapbox/mapbox-gl-js/pull/6269

* Consistency

* Add ignores for symbol positiong differences in real-world tests
2018-03-02 16:38:46 -05:00
Jason Wray
4919099ea9 [ios] Add MGLMapView.showsScale to control scale bar visibility (#11335)
- Fixes scale bar not being visible until a camera change event.
- Adds IBInspectable for scale bar visibility.
- Add tests of the scale bar being added to the map view
2018-03-02 13:13:57 -05:00
Tobrun
4408e2f0bc [android] - delete local ref pixel buffer when converting Image.java to core 2018-03-02 13:50:24 +01:00
Tobrun
4152c3094a [android] - use float for pixelratio when creating a snapshotter 2018-03-02 13:44:42 +01:00
Tobrun
6ca4949d0f [android] - validate if width and height aren't 0 when creating options class 2018-03-02 13:44:16 +01:00
Łukasz Paczos
7d8aaa1bf8 Release android v6.0.0-beta.3 (#11369)
* [android] updated changelog to reflect 6.0.0-beta.3 changes

* [android] release configuration for v6.0.0-beta.3

* [android] reverted release configuration for v6.0.0-beta.3
2018-03-02 13:15:11 +01:00
Łukasz Paczos
899211d816 Remove deprecated location APIs (#11351) 2018-03-02 11:01:10 +01:00
John Firebaugh
87f88f37c4 Update mapbox-gl-js 2018-03-01 17:02:26 -08:00
John Firebaugh
54f3dc961e Relax type checking for "length" 2018-03-01 17:02:26 -08:00
John Firebaugh
15ba70b5ff Infer type assertions for object
Cross-ports https://github.com/mapbox/mapbox-gl-js/pull/6243.
2018-03-01 17:02:26 -08:00
Molly Lloyd
d5829d0d00 [android] add support for mapzen terrarium raster-dem encoding (#11339) 2018-03-01 11:15:36 -08:00
Osana Babayan
5b4b3c5c1f [android] rotated map VisibleRegion returns incorrect bounds when going over date line 2018-03-01 12:20:41 -05:00
Tobrun
0082114426 [android] - don't disable zoom button controller zooming whem zooming gestures are disabled 2018-03-01 12:21:32 +01:00
Tobrun
4d439b0043 [android] - decouple map padding from overlain views 2018-03-01 12:21:32 +01:00
Tobrun
0f9990c0c5 [android] - check if hosting Activity isn't finishing before showing an dialog 2018-03-01 12:21:32 +01:00
Ivo van Dongen
627a05475b [android] custom layer example - remove dependencies on mbgl logging and string headers 2018-03-01 12:21:32 +01:00
Ivo van Dongen
06fa9c6b29 [android] custom layer example - add error checking to debug issues more easily 2018-03-01 12:21:32 +01:00
Ivo van Dongen
c3541cd055 [android] custom layer example - fix fragment shader source for opengl es 2 phones 2018-03-01 12:21:32 +01:00
Ivo van Dongen
1f73c9999e [core] blacklist vao usage on mali t720 (sapphire 650)
Avoids problems on (amongst others) Samsung Galaxy J3
2018-03-01 12:21:32 +01:00
Ivo van Dongen
fdd9890461 [core] check opengl error state after custom layer invocations 2018-03-01 12:21:32 +01:00
Łukasz Paczos
636cf4588a [android] expose ImageSource coordinates setter (#11262)
(cherry picked from commit fcf5fa6)
2018-03-01 12:21:32 +01:00
Tobrun
a06ce19369 [android] - add default heatmap color to getter 2018-03-01 11:29:53 +01:00
Tobrun
2e008aa29e [android] - add heatmap color property 2018-03-01 11:29:53 +01:00
Łukasz Paczos
2187d140df [android] new gesture library - bumped snaphost version 2018-03-01 10:17:12 +01:00
Chris Loer
936d92a411 [test] Native ignore for GL JS issue #6160 2018-02-28 16:09:09 -08:00
Chris Loer
3d591ae2a2 [test] Native expression test support for:
- Round-tripping expressions through serialization and checking that outputs don't change
 - Checking expression serialization against expected value from fixture
2018-02-28 16:09:09 -08:00
Chris Loer
75feda12f1 [core] Implement Expression::serialize()
Issue #10714
- Each expression stores its operator as a string, and default serialization is [operator, serialize(child1), ...]
- Custom implementations of `serialize` for Expression types that don't follow the pattern
- expression::Value -> mbgl::Value converter
- node_expression bindings to expose `serialize`
2018-02-28 16:09:09 -08:00
Osana Babayan
f4833a2c4e [android] LatLngBounds.union() should take date line into account 2018-02-28 10:10:09 -05:00
Jason Wray
ab27e24ab0 [ios] Restore iosapp's HUD visibility, adjust placement 2018-02-27 18:27:42 -05:00
Jason Wray
68a9e2ea92 [ios] Provide haptic feedback when user rotates to due north 2018-02-27 18:27:42 -05:00
Chris Loer
66609c9751 [ios] Add "clear tile cache on entering background" to changelog. 2018-02-27 18:27:16 -05:00
Molly Lloyd
2dddcba3fc [ios, macos] cherry-pick darwin changes to tileset encoding param onto boba (#11324)
* [ios, macos] add tileset encoding option to darwin sources (#11274)

* add tileset encoding option to darwin sources

* correct style guide

* link out to dem encoding docs

* markdownify comments

* correct changelog
2018-02-27 15:12:25 -08:00
Łukasz Paczos
848d7dff4e [android ] - new gestures library (cp #11221) (#11332)
* [android] new gesture library - added SNAPSHOT dependency

* [android] new gesture library - cleaned up redundant classes

* [android] new gesture library - limiting scale when rotating

* [android] new gesture library - shove gesture filtering

* [android] new gesture library - increase rotation threshold when scaling

* [android] new gesture library - minimum angular velocity

* [android] new gesture library - exposed gestures execution listeners

* [android] new gesture library - notifying new listeners tests

* [android] new gesture library - removed tracking setting

* [android] new gesture library - resetting focal point with every scale/rotate callback

* [android] new gesture library - fixed camera change dispatcher callbacks

* [android] new gesture library - cancel velocity animations in maps onStop()

* [android] new gesture library - extracted telemetry pushes to a method

* [android] new gesture library - deprecated onScrollListener

* [android] new gesture library - unified shove listener name

(cherry picked from commit 7905bd6)
2018-02-27 18:35:05 +01:00
Osana Babayan
43a7db0b0b [android] LatLngBounds: latNorth should be greater or equal than latSouth 2018-02-27 18:27:22 +01:00
Osana Babayan
977e9f118c [android] LatLngBounds can go over the antimeridian / date line. 2018-02-27 18:18:05 +01:00
Chris Loer
317794746e [core,node] Pin 'nan' to ~2.8 to avoid Callback::Call deprecation.
Alternative fix to #11288, until we figure out a proper async_hooks implementation.
2018-02-26 14:53:26 -08:00
Tobrun
727afc4afc [android] - remove generics from expression api 2018-02-26 13:35:17 +01:00
Jordan Kiley
db0f6377fc Fixed DDS polygon example (#11286)
* [ios] Updated expression

* [ios] Removed centering code
2018-02-23 22:19:51 -08:00
Chris Loer
8e1fc8ff38 [core, node] Hold on to map handle during NodeMap::request.
Avoids a potential crash if garbage collection happens in the middle of a call to NodeMap::request from a map that's eligible for GC.
Fixes issue #11281
2018-02-23 18:05:13 -08:00
Konstantin Käfer
dfeb5b25d3 [core] continue loading style even if we mutate it
When we load a stale style from cache, and the user immediately starts mutating it, we should continue loading the style so that we'll get a fresh copy of the data into our cache and avoid perpetually showing the stale style.
2018-02-23 16:55:22 +01:00
Chris Loer
b79a1cc82e [core] Don't reuse heatmap render texture on viewport resize.
Fixes issue #11228.
2018-02-22 09:10:13 -08:00
Tobrun
278cd580fc [android] - fix javadoc utf8 encoding issues, add missing package-info.java items 2018-02-22 14:29:51 +01:00
osana
1862760faf [android] jni clean up - missing a couple DeleteLocalRef 2018-02-22 10:15:06 +01:00
Anand Thakker
b16893f903 Correctly parse constant expressions in dds style properties (#11282)
* Correctly parse constant expressions in dds style properties

Closes #10849

* Clarify
2018-02-21 21:39:33 -05:00
Minh Nguyễn
0525fd1e4a [ios, macos] Unwrap coordinate bounds
Updated coordinate bounds conversion methods to use the beyond-±180 method to indicate that the bounds extends beyond the antimeridian. Also copyedited conversion documentation.
2018-02-21 10:05:30 -08:00
Julian Rex
25629c81a6 [ios] Podspec bump 4.0.0-beta.2 (#11263)
* [ios] Podspec bump 4.0.0-beta.2

* [ios] Improved change log messaging.
2018-02-20 15:46:35 -05:00
Asheem Mamoowala
054d4d5ad6 [core] Support a range of zooms in TileRange. Accounts for TilePyramid requesting parent tiles of ideal zoom tiles. 2018-02-20 14:23:42 -05:00
Jason Wray
c2be33fa41 [ios] Bump podspecs for 3.7.5 2018-02-20 14:23:42 -05:00
Jason Wray
00abd2eaa6 [ios] Fix loop when first asking for location permission (#11229) 2018-02-20 14:23:42 -05:00