Commit Graph

12167 Commits

Author SHA1 Message Date
Chris Loer
80fdae62ca [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 13:47:57 -08:00
Thiago Marcos P. Santos
869799a716 [tests] Added a test for getting resources from the database
This test would have flagged the Qt regression.
2018-02-26 14:43:32 +02:00
Thiago Marcos P. Santos
ba019b0256 [qt] Fix issue if resources not being found on the database
Once again QVariant getting confused about its contents
datatype. With this patch we use QString directly and
copy the contents, which should be cheap with Qt implicity
sharing.
2018-02-26 14:43:32 +02:00
Thiago Marcos P. Santos
17334c74a0 [core] Fix build with Qt + Android + GCC 4.9
Android uses and old libc when building
with GCC 4.9 and some math functions are not
on std::.
2018-02-26 13:22:33 +02:00
Thiago Marcos P. Santos
c1b17e251a [qt] Fix wrong signal being emitted
Probably caused by a typo when refactoring the asynchronous rendering.
2018-02-26 13:19:11 +02:00
Konstantin Käfer
5de373fff0 [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 11:29:15 +01:00
Ivo van Dongen
7b38ae3cc1 [android] custom layer example - remove dependencies on mbgl logging and string headers 2018-02-23 12:03:53 +02:00
Ivo van Dongen
9a3eb808cf [android] custom layer example - add error checking to debug issues more easily 2018-02-23 12:03:53 +02:00
Ivo van Dongen
5fc3d4ab1e [android] custom layer example - fix fragment shader source for opengl es 2 phones 2018-02-23 12:03:53 +02:00
Ivo van Dongen
6eedccf35f [core] blacklist vao usage on mali t720 (sapphire 650)
Avoids problems on (amongst others) Samsung Galaxy J3
2018-02-23 12:03:53 +02:00
Ivo van Dongen
86c824ce80 [core] check opengl error state after custom layer invocations 2018-02-23 12:03:53 +02:00
Tobrun
dfb9b26e67 [android] - port animated markers activity to symbol layer 2018-02-22 16:42:33 +01:00
Łukasz Paczos
fcf5fa6bbb [android] expose ImageSource coordinates setter (#11262) 2018-02-22 10:01:48 +01:00
Ansis Brammanis
ebb72b9002 [core] don't hide icons if text is an empty string 2018-02-21 14:38:30 -05:00
Osana Babayan
c2d9d6a423 [android] jni clean up - missing a couple DeleteLocalRef 2018-02-21 11:01:56 -05:00
Tobrun
06213d9145 [android] - add instrumentation tests for FileSource activation/deactivation 2018-02-20 15:42:17 +01:00
Tobrun
17e5ae84af [android] - check if hosting Activity isn't finishing before showing an dialog 2018-02-20 15:40:12 +01:00
Jason Wray
374bad18c0 Merge tag 'ios-v3.7.5' into master 2018-02-19 14:21:15 -05:00
Asheem Mamoowala
2cef23e3ff [core] Support a range of zooms in TileRange. Accounts for TilePyramid requesting parent tiles of ideal zoom tiles. 2018-02-19 11:07:54 -08:00
Osana Babayan
d0f66b132f [android] added missing delete local references 2018-02-19 12:08:35 -05:00
Jason Wray
9a30e252b5 [ios] Bump podspecs for 3.7.5 2018-02-16 20:06:32 -05:00
Jason Wray
9989e71e3f [ios] Fix loop when first asking for location permission (#11229) 2018-02-16 20:01:03 -05:00
Chris Loer
d3e6fc5eff [test] Native ignore for GL JS issue #6160 2018-02-16 14:07:33 -08:00
Chris Loer
e771210d13 [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-16 14:07:33 -08:00
Chris Loer
8635dab4c3 [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-16 14:07:33 -08:00
Osana Babayan
341eb7645f [android] incorrect LatLngBounds for the VisibleRegion for rotated map
smallest bounding box for 4 points cannot 
be created using LatLngBounds.fromLatLngs()
as the order matters in that method and that does not work for rotated map
2018-02-16 09:36:56 -05:00
Jason Wray
63eb511d83 [ios] Disable -[MGLExpressionTests testConditionalExpressionObject] on iOS 8
Temporarily disable this test until iOS 8 compatibility is added.
2018-02-15 12:21:36 -05:00
Jason Wray
47d96dddc4 [ios] Bump testMGLMapSnapshotter timeout to 5s
Timing based tests are inherently flakey and prone to failure on slow CI:

> Test case 'MGLDocumentationExampleTests.testMGLMapSnapshotter()' failed on 'iPhone X' (3.375 seconds)
> Test case 'MGLDocumentationExampleTests.testMGLMapSnapshotter()' failed on 'iPhone 8' (3.413 seconds)
> Test case 'MGLDocumentationExampleTests.testMGLMapSnapshotter()' failed on 'iPhone 7' (2.944 seconds)
2018-02-15 12:20:41 -05:00
Jason Wray
2c69b99859 [ios] Fix iOS 8's broken pluralization in MGLCoordinateFormatterTests 2018-02-15 12:20:41 -05:00
Jason Wray
709164e75a [ios] Fix type conversion warnings in MGLFeatureTests
Fixes: object of type 'MGLPointAnnotation/MGLPolyline *' is not compatible with array element type 'MGLShape<MGLFeature> *' [-Wobjc-literal-conversion]
2018-02-15 12:20:40 -05:00
Jason Wray
fdbcd47002 [ios] Fix safeAreaInsets availability warning in MGLMapViewLayoutTests
Fixes: 'safeAreaInsets' is only available on iOS 11.0 or newer [-Wunguarded-availability-new]
2018-02-15 12:20:40 -05:00
Osana Babayan
e4a40fe797 [android] bounds can go over the antimeridian / date line. (#10892) 2018-02-15 12:02:00 -05:00
Vladimir Agafonkin
82de856c94 [core, ios, macos, android, node] Heatmap layer (#11046)
Co-Authored-By: Konstantin Käfer <mail@kkaefer.com>
Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com>
Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com>
2018-02-15 17:38:23 +02:00
Ansis Brammanis
1fdec7a5c1 [core] fix opacity of duplicate labels with -allow-overlap: true 2018-02-15 09:36:29 -05:00
Molly Lloyd
8a283b0306 [core] add support for mapzen terrarium (#11154)
* add support for mapzen terrarium

* Encoding --> DEMEncoding, avoid if statement when unpacking elevation values

* add Terrarium test

* update submodule

* remove redundant checks
2018-02-14 13:17:55 -08:00
Molly Lloyd
a386cac452 [core] add maxzoom uniform for raster-dem tilesets (#11134)
* add maxzoom uniform to support external tilesets

* update git sha for gl-js

* try and fix android crash

* name default maxzoom constant
2018-02-14 11:28:51 -08:00
Chris Loer
d4df044ffe [ios] Release cached tiles on entering background.
Retain current render tiles for fast restart.
Waiting for a memory warning doesn't work because we can't make GL release calls once we're in the background.
2018-02-14 10:55:16 -08:00
Chris Loer
a11b277bc1 [core] Rename "onLowMemory" to "reduceMemoryUse".
Android still calls "reduceMemoryUse" only while handling a low memory event.
iOS, on the other hand, calls "reduceMemoryUse" every time it enters the background.
2018-02-14 10:55:16 -08:00
Chris Loer
f721779963 [core] fix onLowMemory to release GL buffers
Context cleanup must be called _after_ render sources release tiles.
2018-02-14 10:55:16 -08:00
Fabian Guerra
7081c9dfdb Merge branch 'fabian-merge-3.7.4-master' 2018-02-14 12:14:34 -05:00
Tobrun
eddcefb3c8 [android] - update changelog for 6.0.0-beta.2 2018-02-14 12:50:52 +01:00
Jesse Bounds
b31eae7514 [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-02-13 12:16:19 -05:00
Fabian Guerra
7ec840bbab [android] Add Timber library import. 2018-02-13 11:47:37 -05:00
Fabian Guerra
b68266953f Merge tag 'ios-v3.7.4' into master
# Conflicts:
#	include/mbgl/style/conversion/tileset.hpp
#	include/mbgl/util/tileset.hpp
#	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
#	src/mbgl/layout/symbol_projection.cpp
#	src/mbgl/renderer/tile_pyramid.cpp
#	src/mbgl/style/conversion/tileset.cpp
2018-02-13 11:40:40 -05:00
Pablo Guardiola
44ca0a5ec4 [android] Integration of the new events library (#10999)
* [android] integration of the new events library

* JNI Bug

- current build with JNI bug

* fix #10999 comments

* Clean-up

- clean-up timbers and test code

* [android] fix sdk identifier and sdk version

* [android] merge from master (MAS 3.0)

* [android] bump events lib version to 3.0.0-beta.1 and remove never used methods from math utils class
2018-02-13 11:31:43 +01:00
Asheem Mamoowala
aefc3daeed TileJSON Bounds allows values inclusive of world extents 2018-02-12 16:56:20 -08:00
Fabian Guerra Soto
3a0c87b1b4 [ios] Bump podspec to 3.7.4 (#11179)
* [ios] Bump podspec to 3.7.4

* [ios, macos] Update changelogs.
2018-02-12 17:37:00 -05:00
Fabian Guerra Soto
024e75bd56 [ios, macos] Fix memory leaks in MGLMapSnapshotter. (#11133) 2018-02-12 16:47:16 -05:00
Julian Rex
9ee99c91bb [ios] Adds camera change delegate methods with reason parameter. (#11151)
Added missing notification handler for UIApplicationWillResignActiveNotification.
2018-02-12 16:37:21 -05:00
Asheem Mamoowala
560afaf1fb Cherry pick #11176 for Agua patch 2018-02-12 13:29:22 -08:00