Commit Graph

4605 Commits

Author SHA1 Message Date
Ivo van Dongen
36c307f04f [android] test app - fix highlight buildings example 2017-09-11 09:40:43 +03:00
Asheem Mamoowala
50fd917510 Fast tileCount with help from @mapbox/sphericalmercator module 2017-09-08 17:38:42 -07:00
John Firebaugh
b05e5ddd34 [core] Fix z-fighting of translucent fills 2017-09-08 08:30:10 -07:00
Jason Wray
efe9928ad5 [ios] Update changelog for MGLMapView.showsUserHeadingIndicator 2017-09-07 19:47:53 -04:00
Jason Wray
59076c8300 [ios] Disable implicit animation of heading indicators
The update steps for the heading indicator are typically small, so animations tend to pile up and cause performance issues. Disabling actions is a slight regression when it comes to large steps (they're not animated now, where they previously were) and this should eventually be addressed.

Also consistently use provided API for disabling CATransaction actions.
2017-09-07 19:23:30 -04:00
Jason Wray
cb1309a253 [ios] Implicitly enable showsUserLocation when enabling the heading indicator 2017-09-07 19:23:30 -04:00
Jason Wray
63250baa4e [ios] Make user heading indicator property IBInspectable
Rename it to `showsHeading` to fit in the tiny label column of the utilities panel.
2017-09-07 19:23:29 -04:00
Jason Wray
e1ff826d20 [ios] Change user location heading filter to 1°
The default is 1.
2017-09-07 19:23:29 -04:00
Jason Wray
218c720e9e [ios] Add setShowsUserHeadingIndicator and validateUserHeadingUpdating 2017-09-07 19:23:29 -04:00
Jason Wray
99616e6627 [ios] Introduce MGLUserLocationHeadingIndicator protocol 2017-09-07 19:23:29 -04:00
Jason Wray
c35b1cd56b [ios] Set a heading indicator update threshold 2017-09-07 19:23:29 -04:00
Jason Wray
5db97ed96e [ios] Introduce MGLUserLocationHeadingArrowLayer class 2017-09-07 19:23:20 -04:00
Pablo Guardiola
9ce7099089 [android] fix is download complete (a download is complete when count and required resources match and the download state is inactive) (#9913) 2017-09-07 17:26:26 +02:00
Jason Wray
c6708442c9 [ios] Refactor user location heading indicator into its own class 2017-09-06 18:21:38 -04:00
Jason Wray
cb7eb5cafb [ios] Improve iosapp's zoom debug label 2017-09-06 17:11:09 -04:00
Ivo van Dongen
d736429271 [macos] snapshotter 2017-09-05 16:29:33 +03:00
Ivo van Dongen
b3b9ef5c6c [ios] snapshotter 2017-09-05 16:29:33 +03:00
Ivo van Dongen
07343a34c5 [darwin] snapshotter 2017-09-05 16:29:33 +03:00
Ivo van Dongen
6d47471767 [ios] extend ui image additions with init from premultiplied image 2017-09-05 16:29:33 +03:00
Pablo Guardiola
73d980a6e7 bump MAS version number to 2.2.3 (#9901) 2017-08-31 18:27:12 +02:00
Bruno de Oliveira Abinader
cfcf38053e [test] Unignore render-tests/circle-pitch-alignment/* 2017-08-31 10:17:21 +03:00
Bruno de Oliveira Abinader
6f00becffe [test] One map per pixel ratio in render.test.js --recycle-map 2017-08-31 10:17:21 +03:00
Bruno de Oliveira Abinader
b43d88b725 [test] Interpret render tests params: --recycleMap and --shuffle 2017-08-31 10:17:21 +03:00
Bruno de Oliveira Abinader
6ee8d7bb60 [node] Set style default camera upon each test suite run 2017-08-31 10:17:21 +03:00
Bruno de Oliveira Abinader
d43757271e [node] Cleanup NodeMap::Render 2017-08-31 10:17:21 +03:00
Jason Wray
87348234d1 [ios] Guard against nil user location when setting tracking mode 2017-08-30 17:28:14 -04:00
Fabian Guerra Soto
c8dc77f06f [ios, macos] Make minimumZoomLevel and maximumZoomLevel IBInspectable. (#9729)
* [ios, macos] Make minimumZoomLevel and maximumZoomLevel IBInspectable.

* [ios, macos] Update changelogs.
2017-08-30 16:25:57 -04:00
Lauren Budorick
eaacc87901 Update gl-js SHA + ignore fill-extrusion-multiple test 2017-08-30 12:48:51 -07:00
Asheem Mamoowala
69b52367d3 [core][ios][macos][android]DDS-ify text-letter-spacing and text-max-width 2017-08-30 10:59:08 -07:00
Ivo van Dongen
966bf8824d [android] map snapshotter 2017-08-30 17:18:37 +03:00
Ivo van Dongen
a90e2f3a2c [android] add GenericWeakReference that can be deleted from any thread 2017-08-30 17:18:37 +03:00
Ivo van Dongen
fae9faab06 [default] map snapshotter 2017-08-30 17:18:37 +03:00
Ivo van Dongen
eba6d58312 [default] headless_frontend - support program cache dir 2017-08-30 17:18:37 +03:00
Ivo van Dongen
abecfe2333 [linux] headless display - support opengl es 2 2017-08-30 17:18:37 +03:00
Asheem Mamoowala
9491527eb6 Enable tests for #1350, #9704 2017-08-29 14:48:47 -07:00
Pablo Guardiola
927774886e bump MAS version number to 2.2.2 (#9856) 2017-08-29 21:05:29 +02:00
Thiago Marcos P. Santos
9c4071fe86 [core] Remove database on schema downgrade
Previously we were throwing an exception.
2017-08-29 14:08:30 -04:00
Fabian Guerra
a51ae29000 Merge branch release tag ios-v3.6.2 2017-08-29 11:24:42 -04:00
Anand Thakker
d436bcd56b Add {Source,CompositeCamera}Function benchmarks (#9838) 2017-08-29 10:03:57 -04:00
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
Bruno de Oliveira Abinader
9fd03a3e90 [test] Un-ignore regressions/mapbox-gl-native#9792 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
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