Commit Graph

14416 Commits

Author SHA1 Message Date
Fabian Guerra
dd18e1af1e [android] Update sdk version. 2017-08-28 17:11:40 -04:00
Ian Wagner
e78620c705 [ios] Set location to nil until the user's location is determined
The documentation for the `location` property states that "This property contains `nil` if the map view is not currently showing the user location or if the user’s location has not yet been determined." The iOS SDK presently returns a garbage value, which has some rather annoying consequences when the value should logically be nullable. This change should rectify the issue.

With _location no longer initialized to an invalid coordinate, trying to access `_location.coordinate` when `_location == nil` will return `0, 0`, which is a valid coordinate.
2017-08-28 16:41:55 -04:00
Lauren Budorick
2de89a99bc Implement icon-anchor property 2017-08-28 13:32:56 -07:00
Fabian Guerra
8c020591de [android] Diable lint check for MissingTranslation 2017-08-28 15:18:20 -04:00
Fabian Guerra
acfe485302 Merge tag 'ios-v3.6.2' into master
# Conflicts:
#	cmake/core-files.cmake
#	include/mbgl/renderer/renderer_backend.hpp
#	platform/android/CHANGELOG.md
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/AnnotationManager.java
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/IconManager.java
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/Projection.java
#	platform/android/dependencies.gradle
#	platform/darwin/src/MGLStyle.mm
#	platform/ios/CHANGELOG.md
#	platform/ios/app/Info.plist
#	platform/ios/app/MBXViewController.m
#	platform/ios/ios.xcodeproj/project.pbxproj
#	platform/macos/CHANGELOG.md
#	src/mbgl/gl/attribute.cpp
#	src/mbgl/gl/attribute.hpp
#	src/mbgl/gl/context.hpp
#	src/mbgl/gl/types.hpp
#	src/mbgl/gl/value.cpp
#	src/mbgl/gl/value.hpp
#	src/mbgl/map/backend_scope.cpp
#	src/mbgl/programs/attributes.hpp
#	src/mbgl/programs/program.hpp
#	src/mbgl/programs/segment.cpp
#	src/mbgl/programs/segment.hpp
#	src/mbgl/programs/symbol_program.hpp
#	src/mbgl/programs/uniforms.hpp
#	src/mbgl/renderer/buckets/symbol_bucket.hpp
#	src/mbgl/renderer/painter.cpp
#	src/mbgl/renderer/painter.hpp
#	src/mbgl/renderer/painter_background.cpp
#	src/mbgl/renderer/painter_circle.cpp
#	src/mbgl/renderer/painter_clipping.cpp
#	src/mbgl/renderer/painter_debug.cpp
#	src/mbgl/renderer/painter_fill.cpp
#	src/mbgl/renderer/painter_fill_extrusion.cpp
#	src/mbgl/renderer/painter_line.cpp
#	src/mbgl/renderer/painter_raster.cpp
#	src/mbgl/renderer/painter_symbol.cpp
#	src/mbgl/shaders/line.cpp
#	src/mbgl/shaders/line_pattern.cpp
#	test/renderer/backend_scope.test.cpp
2017-08-28 12:43:29 -04:00
Jason Wray
a7f06366d2 [ios] Support iOS 11 location usage descriptions 2017-08-28 12:15:11 -04:00
Konstantin Käfer
c6ab20e5c6 [core] initialize OfflineDatabase asynchronously in DefaultFileSource
Sometimes, initialization can take hundreds of milliseconds, in particular when the database doesn't exist yet, or when the app/device is doing a lot of I/O already. Instead of synchronously initializing the OfflineDatabase objects, we're now asynchronously initializing the object through a self-sent message that by virtue of being the first message for this actor guarantees that the object is there when it's needed by other member functions.
2017-08-28 13:16:27 +02:00
Chris Loer
6cbeeff689 [core] Fix issue #9843 (overzoomed line label rendering glitch).
Ports fix for GL JS issue #5112.
Line label projection can't be based on tile geometry that's behind the plane of the camera.
The relevant tests are still ignored because the overzoomed collision behavior is different between native and JS.
2017-08-25 14:20:42 -07:00
Chris Loer
17a3a805f1 [core] Add optional type template parameter to util::unit, so that it doesn't always pick up the default type of 'double' from util::mag. 2017-08-25 14:20:42 -07:00
Bruno de Oliveira Abinader
fe8cbc78d3 [core] Added GeometryTileWorker-owned image correlation ID 2017-08-25 23:41:52 +03:00
Bruno de Oliveira Abinader
f3fc9b2b92 [core] Don't throttle placement in still mode 2017-08-25 23:41:52 +03:00
Bruno de Oliveira Abinader
9fd03a3e90 [test] Un-ignore regressions/mapbox-gl-native#9792 2017-08-25 23:41:52 +03:00
Bruno de Oliveira Abinader
8b45d64efc Revert "[core] Ensure image dependencies in GeometryTileWorker::onImagesAvailable"
This reverts commit cd8eb13ba2.
2017-08-25 23:41:52 +03:00
Jason Wray
5cad92cc33 [ios] Print Xcode and SDK version during packaging 2017-08-25 16:12:00 -04:00
Konstantin Käfer
1f5a0ec48b [build] Don't fail hard for unknown warning groups 2017-08-25 15:37:13 -04:00
Konstantin Käfer
fb07beebb4 [build] Don't use maybe-uninitialized and misleading-indentation in Clang, since they're not implemented there
Cherry-pick of d03fd0dce2.
2017-08-25 15:36:30 -04:00
John Firebaugh
b0c03f9396 [core] No need to skip glClear optimization in overdraw mode 2017-08-24 13:06:23 -07:00
John Firebaugh
28be432041 [core] Eliminate temporary sources set 2017-08-24 13:06:23 -07:00
John Firebaugh
4dd30db7cb [core] Clean up includes and forward declarations 2017-08-24 13:06:23 -07:00
John Firebaugh
9c02e4d7dd [core] Inline Renderer::Impl::doRender 2017-08-24 13:06:23 -07:00
John Firebaugh
d05486391a [core] Remove unnecessary members from UpdateParameters 2017-08-24 13:06:23 -07:00
John Firebaugh
079ddfc8e4 [core] Create BackendScopes in Renderer, assert in Impl
This avoids a long series of reset() calls in the Impl.
2017-08-24 13:06:23 -07:00
John Firebaugh
ad70cd30ef [core] Inline RenderItem and RenderData 2017-08-24 13:06:23 -07:00
John Firebaugh
47ac22b6ac [core] Merge RenderStyle into Renderer::Impl 2017-08-24 13:06:23 -07:00
John Firebaugh
d26559bb28 [core] Avoid GeometryTile dependency in FeatureIndex 2017-08-24 13:06:23 -07:00
John Firebaugh
e706ed4b2e [core] Avoid RenderStyle dependency in query code 2017-08-24 13:06:23 -07:00
Jason Wray
b2fd7b680c [ios] Fix heading update loop
Updating CLLocationManager.headingOrientation triggers a new heading update, even if there was no actual change in its value.
2017-08-24 12:03:38 -04:00
Tobrun Van Nuland
3d3648387b [android] - build SNAPSHOT from release branch 2017-08-24 17:40:28 +02:00
Tobrun Van Nuland
fde31db28f Revert "[android] - configure loggin of HttpRequest, cleanup HttpRequest"
This reverts commit a059c74a54.
2017-08-24 15:01:57 +02:00
Lauren Budorick
57d87e8ef2 Update ignores + suite_implementation 2017-08-23 18:21:05 -07:00
Asheem Mamoowala
f2c9f2bf36 [ios][macos][node][android] Updated documentation and Changelogs for #9821 2017-08-22 16:49:59 -07:00
Thiago Marcos P. Santos
bd15e273dc [tests] Enforce the schema downgrade behavior
Which is, delete and recreate the database.
2017-08-22 12:46:38 +03:00
Thiago Marcos P. Santos
558d4b1a88 [core] Remove database on schema downgrade
Previously we were throwing an exception.
2017-08-22 12:46:38 +03:00
Bruno de Oliveira Abinader
224e9e6261 [test] Re-added API.ZoomHistory 2017-08-22 10:17:25 +03:00
Bruno de Oliveira Abinader
80e4b2f1ab [core] Update ZoomHistory.lastInteger{Zoom,Time} if different from floor zoom 2017-08-22 10:17:25 +03:00
Asheem Mamoowala
d21f19686b Set Default MaxZoom to 22 2017-08-21 15:01:36 -07:00
Jason Wray
acb8199d32 [ios] Document annotations-as-features limitations w/feature querying
Also move visibleAnnotations next to visibleAnnotationsInRect:.
2017-08-21 12:13:47 -04:00
Tobrun Van Nuland
374424610e [android] - update changelog with 5.1 patch releases 2017-08-21 16:13:38 +02:00
Tobrun Van Nuland
8d04e099c7 [android] - update config for next reelease 2017-08-19 11:29:38 +02:00
Tobrun Van Nuland
6de3e6fe70 [android] - update changelog for v5.1.3 2017-08-19 11:29:38 +02:00
Cameron Mace
78633322d7 bumped MAS version number 2017-08-19 11:29:38 +02:00
Tobrun Van Nuland
341165cef4 [android] - avoid IndexOutOfBounds when destroying map object 2017-08-19 11:29:38 +02:00
Tobrun Van Nuland
f356ff4b00 [android] - enable location change animation of MyLocationView by default 2017-08-19 11:29:38 +02:00
Tobrun Van Nuland
a83c19e954 [android] - re-add projectedMeters 2017-08-19 11:29:38 +02:00
Tobrun
2802c55bd5 [android] - create smallest possible LatLngBounds when visible region crosses the dateline 2017-08-19 11:29:38 +02:00
Tobrun
b4cb719ceb [android] - provide compability with Samsung devices forcing 3-4 array matrix length 2017-08-19 11:29:38 +02:00
Tobrun
05cbd4e31d [android] - keep state of initial overlain views margins (#9391) 2017-08-19 11:29:38 +02:00
Tobrun Van Nuland
a059c74a54 [android] - configure loggin of HttpRequest, cleanup HttpRequest 2017-08-19 07:59:27 +02:00
Fabian Guerra Soto
001988fba1 [ios] Update pods spec for iOS v3.6.2 (#9806) 2017-08-18 15:38:16 -04:00
Antonio Zugaldia
c540aa39d3 [android] update docs replacing bitrise mentions with circleci 2017-08-18 14:33:21 -04:00