Commit Graph

14338 Commits

Author SHA1 Message Date
Łukasz Paczos
718d6476f7 Revert "[android] - update output path aar file"
This reverts commit dbfab81e
2019-05-14 18:22:02 +02:00
Konstantin Käfer
89fb4962cd [core] update CA bundle 2019-05-14 08:08:52 -07:00
Łukasz Paczos
ea50c776cd [android] expose trackingGesturesManagement attribute 2019-05-14 13:05:45 +02:00
Mikhail Pozdnyakov
5b6a262e15 [core] GeometryTile and TileLoader keep strong reference to FileSource
Thus we fix a potential bug: if `Renderer` outlives the `Map` it will hold a stale reference to the `FileSource` instance.
2019-05-14 11:29:24 +03:00
Mikhail Pozdnyakov
7e77aff8df [core] Make FileSource API clearer 2019-05-14 11:29:24 +03:00
Mikhail Pozdnyakov
953ee5e81b [core] Create glyph manager at renderer construction time
Avoid unnecessary glyph manager presence check in `Renderer::Impl::()`.
2019-05-14 11:29:24 +03:00
Mikhail Pozdnyakov
81823e35a6 [core] RenderTile shall never be created for a not renderable tile
A RenderTile is already never created for a not renderable tile, guarantied by the checks in `updateRenderables()`.

However, the client code had plenty of `isRenderable()` checks in the render path, which complicated the code and affected rendering performance.

This patch removes the unneeded checks from the client code and puts an assertion to `TilePyramid::addRenderTile()`.
2019-05-14 11:19:56 +03:00
Jason Wray
cd24f4c45f [build, darwin] Fix ENOBUFS in build scripts on NodeJS 12.x 2019-05-13 15:12:55 -07:00
Jason Wray
4d935b9d31 [build, darwin] Update CircleCI to Xcode 10.2.1 2019-05-13 14:44:00 -07:00
Aleksandar Stojiljkovic
926e8e8a5b Refactor: coordinatePointMatrix skip recomputation (#14507)
coordinatePointMatrix is always used with getZoom():
Projection::worldSize(scale) / std::pow(2, z) is computed as
scale * util::tileSize / std::pow(2, z)
scale is equal to std::pow(2, z).
____________________________________=>
Projection::worldSize(scale) / std::pow(2, z) => util::tileSize.
2019-05-13 22:13:37 +03:00
Łukasz Paczos
d2dd3cc2c8 [android] split image missing test 2019-05-13 19:57:04 +02:00
Minh Nguyễn
615c5387fc [macos] Copyedited changelog
Synchronized the changelog with the iOS changelog. Removed some entries about internal changes or iOS-only changes. Recategorized entries.
2019-05-10 08:08:51 -07:00
tobrun
1b8eb9a7c6 [android] - use atomic boolean for hasSurface, check if renderer is created by validating if mapboxMap isn't null when invoking MapView#onLowMemory 2019-05-10 14:29:12 +02:00
tobrun
8675d11e5e [android] - only invoke AndroidRendererFrontend::reduceMemoryUse with an active renderer 2019-05-10 14:29:12 +02:00
Łukasz Paczos
0f599ce804 [android] keep strong callback reference and use application context during cache path change 2019-05-10 14:15:06 +02:00
Łukasz Paczos
e0f32000df [android] FileUtils read/write permission check tasks retain a strong reference 2019-05-10 14:15:06 +02:00
Łukasz Paczos
b7fafaa429 [android] use strong references to the offline merge callbacks 2019-05-10 14:15:06 +02:00
Thiago Marcos P. Santos
cf08f6428a [node] Remove NodeThreadPool
Simplify, use the default thread pool, less platform abstraction.
2019-05-10 14:20:38 +03:00
Thiago Marcos P. Santos
06f1dc48a2 [core] Make the BackgroundScheduler a singleton
- Do not carry it over everywhere as parameter, it is a shared
  instance anyway and the lifecycle is pretty much the app lifecycle
  from the moment we instantiate a map.
- Rename to BackgroundScheduler because it is a Scheduler that will
  do tasks in the background, we don't make assumptions if it is a
  thread pool or a single thread.
- Most importantly, remove the dependency from `core` on `platform`.
2019-05-10 14:20:38 +03:00
Tobrun
947bc75f56 [android] - remove internal gesture event handling code, deprecate public gesture event hooks 2019-05-10 12:12:52 +02:00
tobrun
fd527b1d23 [android] - remove/readd listener to avoid recursion 2019-05-10 12:11:49 +02:00
Mikhail Pozdnyakov
b41f39d545 [core] Make ActorRef methods const
So that the lambdas calling these methods do not have to be mutable.
2019-05-10 11:59:02 +03:00
Łukasz Paczos
9fb41a74bc [android] normalize previous rotation values of the location animator 2019-05-10 10:09:27 +02:00
tobrun
b1c1471713 [android] - remove skuId from schema test 2019-05-10 06:57:00 +02:00
Jason Wray
49b8e0a626 [ios] Remove obsolete telemetry gesture events 2019-05-09 14:52:44 -07:00
Alexander Shalamov
a53c4593d6 [core] Schedule invocation of onStyleImageMissing completion callback on the same thread
Before this change, ImageManger's 'done' callback for onStyleImageMissing observer
notification that was created on renderer thread, could be called from different thread,
therefore, is not thread safe. For example, on Android platform, callback was invoked
from UI thread. This change makes callback to be scheduled on originating thread.
2019-05-09 20:45:06 +03:00
Łukasz Paczos
6fa1d357b3 [android] option to provide custom values for location camera transition 2019-05-09 19:43:49 +02:00
tobrun
dbfab81e2c [android] - update output path aar file 2019-05-09 16:08:26 +02:00
tobrun
e70ace2a09 Revert "Revert "[andriod] - bump gradle tooling for AS 3.4""
This reverts commit 038c6a1e01.
2019-05-09 16:08:26 +02:00
tobrun
f586ec378e [android] - add javadoc to highlight imcompatible onIdle with snapshot API, update test app example to use OnFullyRenderedFrame callback instead 2019-05-09 15:58:09 +02:00
Mikhail Pozdnyakov
842ee6b6f5 [android] Update ImageMissingTest
Make sure that the `addOnStyleImageMissingListener` callback
is invoked for missing images if sprite request has failed.
2019-05-09 16:48:08 +03:00
Mikhail Pozdnyakov
c953fdad24 [core] Failed sprite requests do not block tiles rendering 2019-05-09 16:48:08 +03:00
Łukasz Paczos
06b790dc75 [android] updates changelog entry for #14486 2019-05-09 15:14:58 +02:00
Łukasz Paczos
aa4c89ed25 [android] remove missing image log 2019-05-09 11:00:38 +02:00
Nadia Barbosa
fc218f8209 [ios] Podspec & changelog updates for v4.12.0-alpha.2 2019-05-08 12:55:12 -07:00
Łukasz Paczos
89b2615779 [android] changelog for 7.5.0-alpha.2 2019-05-08 19:10:42 +02:00
Mikhail Pozdnyakov
cb73f0dd1c [core] Remove clipping option from RenderTile and style::Layer 2019-05-08 15:18:33 +03:00
Konstantin Käfer
a53c88159f [core] upgrade mapbox-gl-js pin to the most recent version 2019-05-08 14:10:11 +02:00
Konstantin Käfer
20a807fdf3 [core] render extrusions directly in the main framebuffer 2019-05-08 12:25:22 +02:00
Mikhail Pozdnyakov
ef48d53e78 [core] Placement order matches viewport-y sort
Symbols are placed accordingly to their viewport Y order,
if the style `symbol-z-order` is set to `viewport-y`.

This improves rendering of symbol layers, where icons are allowed
to overlap but not text.
2019-05-08 12:21:47 +03:00
Minh Nguyễn
f703c6f255 [ios, macos] Include fix-it suggestions in deprecation warnings 2019-05-07 22:18:02 -07:00
Minh Nguyễn
84a11ba4e5 [ios, macos] Removed MGLStyleValue references from documentation (#14552) 2019-05-07 17:13:44 -07:00
Alexey
88eb1c9b27 [build] Upgrade from Xcode 9.3.0 to 9.3.1 on CircleCI
CircleCI will soon deprecate Xcode 9.3.0 on CircleCI for macOS. Moving mapbox-gl from 9.3.0 to 9.3.1 should have no impact on the CircleCI jobs, plus it will help the project hit fewer Xcode bugs.
2019-05-07 14:51:49 -07:00
Minh Nguyễn
e69efb996d [ios] Interpret negative direction as unchanged when setting visible coordinates (#14575)
* [ios] Fixed negative direction when setting visible coordinates

* [ios] Document behavior of negative direction
2019-05-03 09:02:03 -07:00
Julian Rex
359f2bb743 [ios] Uppercase'd "string" to remove cmake warning (#14576) 2019-05-03 10:45:11 -04:00
Alexander Shalamov
8a3d07fcd8 [core] Add custom source to glfw-app 2019-05-03 10:01:19 +03:00
Alexander Shalamov
ad30ba2cd1 [core] Guard access to CustomTileLoader's data members with mutex 2019-05-03 10:01:19 +03:00
Alexander Shalamov
86b94e30e1 [core] Keep shared_ptr to thread pool in CustomGeometrySource
CustomGeometrySource should keep strong reference to shared thread
pool that is used by CustomTileLoader.
2019-05-03 10:01:19 +03:00
Julian Rex
f7915fdc51 [ios] Static analysis fix tweaks - part 2 (#14572) 2019-05-02 14:08:48 -04:00
Osana Babayan
c611d085b3 [android] - update changelog for v7.4.0-beta.3 (#14571) 2019-05-02 11:44:57 -04:00