Commit Graph

14444 Commits

Author SHA1 Message Date
Jason Wray
9989e71e3f [ios] Fix loop when first asking for location permission (#11229) 2018-02-16 20:01:03 -05:00
Jordan Kiley
9459cf6a91 [ios, macos] Mark deprecated methods as unavailable (#11205)
Fixes #10735
2018-02-16 16:20:08 -08: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
Pablo Guardiola
604931247e [android] initialize events when creating mapbox instance (#11211) 2018-02-16 22:12:45 +01:00
Fabian Guerra
12103c95c0 [ios, macos] Remove the duplicated entries in changelogs. 2018-02-16 13:25:28 -05:00
Fabian Guerra
b630dbc357 [android] Reverted master changes that doesn't apply to boba. 2018-02-16 12:42:01 -05: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
Fabian Guerra
c2fe888155 [ios, macos] Added missing files 2018-02-15 13:15:33 -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
Fabian Guerra
903e7989ec Merge branch 'master' into release-boba
# Conflicts:
#	platform/android/CHANGELOG.md
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/CompassView.java
#	platform/android/scripts/exclude-activity-gen.json
#	platform/ios/CHANGELOG.md
#	platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec
#	platform/ios/Mapbox-iOS-SDK-symbols.podspec
#	platform/ios/Mapbox-iOS-SDK.podspec
#	platform/macos/CHANGELOG.md
2018-02-15 11:54:51 -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
Tobrun
c83dc310aa [android] - update changelog for 6.0.0-beta.2 2018-02-13 18:12:03 +01: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
Tobrun
7742992692 [android] - deprecate locationengine 2018-02-13 13:42:09 +01:00
Tobrun
44c00ee63e [android] - use ImageView instead of AppCompatImageView 2018-02-13 13:41:50 +01:00
Tobrun
35930614ae [android] - remove lost dependency from the sdk 2018-02-13 13:41:24 +01:00
Tobrun
143c346d9d [android] - translucent surface on TextureView 2018-02-13 12:53:18 +01:00
Tobrun
734b420649 [android] - add constrained latlng documentation, add MapboxMap#LatLngZoom 2018-02-13 12:50:51 +01:00
Pablo Guardiola
b8240f725c [android] Integration of the new events library (#10999) (#11183)
* [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 12:23:17 +01: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
Lucas Wojciechowski
94734441ce Update & simplify INSTALL.md (#11155)
* Update & simplify INSTALL.md

* Add "Launch Xcode" step

* Update INSTALL.md
2018-02-12 12:06:36 -08:00
Tobrun
ff747a8c53 [android] - add conversion of non ARGB_8888 images to c++, expose Bitmap#copy on the c++ side 2018-02-12 15:56:58 +01:00
Benjamin Jaeger
0b27909b8b NativeMapView.addImage without copying into Java 2018-02-12 15:56:58 +01:00
Tobrun
f3b3259906 [android] - update changelog for 5.4.1 2018-02-12 11:14:58 +01:00
Tobrun
22cbca41e5 [android] - don't invoke onLowMemory on map when the map isn't fully created yet 2018-02-12 11:14:58 +01:00
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