Commit Graph

16768 Commits

Author SHA1 Message Date
Mikhail Pozdnyakov
2ae96ad687 [core] Introduce Renderer::clearData() instead of keepRenderData map options
`Renderer::clearData()` is a better API than the removed `MapOptions::keepRenderData()`:
- gives more flexibility to the client
- similar to the existing `Renderer::reduceMemoryUse()`
- the `MapOptions::keepRenderData()` API implementation could not handle the raise condition, which
happened if the new still image request had come before all tiles from the previous requests were loaded.

Co-authored-by: Dane Springmeyer <dane@mapbox.com>
2020-03-20 11:43:59 +02:00
Jordan Kiley
6d0c81ddaf Add triage label to new issues (#232)
* Add triage label automatically

* change to status: triage
2020-03-19 17:23:07 -07:00
Julian Rex
3aa84ed731 Refactor metrics triggering (#231) 2020-03-19 13:41:48 -04:00
galinelle
bc45d65c58 Add additional transformState::latLngToScreenCoordinate getter (#16311)
This change adds a latLngToScreenCoordinate overload, to retrieve
the projected vec4 in additional to the ScreenCoordinate object,
that is useful to detect whether the projected latLng is in front
or behind the camera.
2020-03-19 18:53:09 +02:00
zmiao
f3cf855894 Update metrics 2020-03-19 14:40:49 +02:00
zmiao
b45cae286e Refactor within function 2020-03-19 14:40:49 +02:00
zmiao
c3a1caf612 update test 2020-03-19 14:40:49 +02:00
zmiao
df79b05178 [core] Using TileCoordinates for geometry comparison 2020-03-19 14:40:49 +02:00
zmiao
6989ee6e03 [build] Use found code sign identities 2020-03-19 10:20:44 +02:00
Julian Rex
be34d3f420 Remove multiline. (#230) 2020-03-19 00:38:00 -04:00
Julian Rex
f719de9ff4 Updates metrics trigger. (#229) 2020-03-18 23:06:40 -04:00
Mikhail Pozdnyakov
52f72dd8b4 Change log entry 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
11e6bd46c2 Add Map.KeepRenderData and Map.DontKeepRenderData tests 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
0f5e5311fa Update metrics 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
9e80a9f922 [render tests] Unset MapOptions::keepRenderData() flag in tile mode 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
6a68305e1e [core] Add ImageManager::clear() 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
b48900b0a7 [core] Add RenderOrchestrator::clearData() 2020-03-18 20:14:15 +02:00
Mikhail Pozdnyakov
3536de5124 [core][tile|static mode] Introduce MapOptions::keepRenderData() flag
Render orchestrator stores the render data between render frames if this flag is set.
2020-03-18 20:14:15 +02:00
Minh Nguyễn
81df48df70 ios-v5.8.0-beta.1, macos-v0.15.0-beta.1 2020-03-17 12:27:35 -07:00
Julian Rex
d0bed6e00d Try with 1 less core. 2020-03-17 12:27:04 -07:00
Minh Nguyễn
e27b889215 [ios, macos] Sorted a changelog entry 2020-03-17 02:14:03 -07:00
Minh Nguyễn
7b92e2a032 [macos] Highlight UC POIs 2020-03-17 02:14:03 -07:00
Minh Nguyễn
5196e37d48 [ios, macos] Convert NSDictionary to GeoJSON 2020-03-17 02:14:03 -07:00
Minh Nguyễn
93f5290c0e [ios, macos] SELF IN MGLShape expressions
Added support for the expression syntax “SELF IN shape” or “shape CONTAINS SELF”, which is interpreted as a “within” expression in JSON format.
2020-03-17 02:13:53 -07:00
Tobrun
14eb8f038a [textureview] validate TextureView surface texture when creating egl window surface (#278) 2020-03-17 10:12:38 +01:00
Minh Nguyễn
957296b2fb [ios, macos] Convert geometries to shapes, not features
Fixed an issue where GeoJSON geometries were converted to MGLFeature instances instead of MGLShape objects.
2020-03-17 01:48:28 -07:00
Minh Nguyễn
342606db99 [ios, macos] Documented new aggregate predicate support 2020-03-17 01:47:53 -07:00
Minh Nguyễn
fb559ea8d4 [ios, macos] Aggregate equality predicates
Added support for “ANY … =” and “ALL … !=” as synonyms for “IN” and “NOT IN”, respectively.
2020-03-17 01:47:49 -07:00
Minh Nguyễn
bc6f434a88 [ios, macos] Removed in expression workaround
Removed the match-based in expression workaround in favor of real support for an in expression operator. Avoid interpreting “literal IN literal” predicates as legacy filters.
2020-03-17 01:46:22 -07:00
Kevin Li
69b2d4c765 Add change log for v9.1.0-beta.1 (#275)
* Add change log for v9.1.0-bate.1

* improve existing entries, add gl-native entries

* add known issue release note

* fix link

* this is what the beta release tag description should look like

* make changes for changelog.md file

* fix inconsistencies

* minor fixup

* Apply suggestions from code review

Co-Authored-By: Minh Nguyễn <mxn@1ec5.org>

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* tighten up sort key entry

* use android naming

* add release note about snapshotter regression

* fix nits

* remove release note about regression

waiting for GL Native 1.4.1 patch instead

Co-authored-by: Chloe Krawczyk <chloe.krawczyk@mapbox.com>
Co-authored-by: Minh Nguyễn <mxn@1ec5.org>
2020-03-17 08:51:24 +01:00
Kevin Li
c0dfb15890 Bump gl-native to v1.4.1 (#279) 2020-03-17 15:24:33 +08:00
Minh Nguyễn
363610c7df [ios] Test snapshotting on background queue 2020-03-16 18:17:08 -07:00
Minh Nguyễn
3318a0a383 [ios, macos] Keep MGLMapSnapshotter alive through completion 2020-03-16 18:17:08 -07:00
Minh Nguyễn
d357f8c511 [ios, macos] Clarify threading in snapshotter documentation 2020-03-16 18:13:58 -07:00
Minh Nguyễn
8148cb7ff9 [ios, macos] Document changes to snapshotter memory management 2020-03-16 18:13:58 -07:00
Minh Nguyễn
8998f7a314 [ios, macos] Documented performance and caching improvements in mbgl v1.4.0 2020-03-16 18:13:58 -07:00
Minh Nguyễn
98e8af96d3 [ios, macos] Streamlined MGLMapSnapshotter
Upgraded MGLMapSnapshotter to be compatible with the latest mbgl.

Converted as many of MGLMapSnapshotter’s instance variables and properties as possible into local variables close to the point of use. The completion handler of -startWithCompletionHandler: and its variants is no longer called as part of -cancel, when the snapshotter is deallocated, or when the application is terminating. -loading once again works and is used to avoid concurrent requests, now that the completion handler is no longer memoized. Snapshotter options are copied and converted into a snapshotter on demand as late as possible.

Made the decoration step synchronous while continuing to perform it on a worker thread. Only access self on user-facing queues. Ensure MGLMapSnapshotter.loading is reset after snapshotting.

Pushed some drawing and completion code up from inner completion blocks to outer completion blocks to avoid excessively passing state around. Converted a few class methods into standalone C functions to emphasize the avoidance of captured state.
2020-03-16 18:13:42 -07:00
Minh Nguyễn
5be63a0d4a [ios, macos] Updated MGLSymbolStyleLayer.symbolSortKey documentation 2020-03-16 17:59:35 -07:00
Minh Nguyễn
48f034cecd mbgl v1.4.0 2020-03-16 17:59:34 -07:00
Alexander Shalamov
14f19f0201 Update change log for the maps-v1.4.1 release 2020-03-16 06:56:51 -04:00
Dane Springmeyer
46a6932222 start using tname variable 2020-03-16 11:50:51 +02:00
Kevin Li
9daaf2fe3a Update CHANGELOG.md (#16313) 2020-03-16 16:31:55 +08:00
Alexander Shalamov
8b12c6b305 Add async completion handler to MGLOfflineStorage::preloadData (#188)
* Add async completion handler to preloadData

* Update unit tests

* Update changelogs for iOS and macOS
2020-03-16 10:20:02 +02:00
Kevin Li
192f5d8008 Bump gl-native to 1.4.0 (#276) 2020-03-16 15:49:24 +08:00
Kevin Li
3aa80ff407 Update map_snapshotter.cpp (#16308) 2020-03-16 08:03:30 +08:00
Thiago Marcos P. Santos
7d77a55fe0 [build] Bump docker
Allow building with OpenGL ES 2.0 headers on Linux.
2020-03-14 03:08:54 +02:00
Mikhail Pozdnyakov
09d307db14 Merge pull request #16305 from mapbox/mikhail_change_log_for_maps-v1.3.0
Update change log for the maps-v1.4.0 release
2020-03-13 14:30:33 +02:00
Mikhail Pozdnyakov
a70b33be8b [core] Fix crash at Placement::getSymbolPlacement() 2020-03-13 14:30:17 +02:00
zmiao
45c0dd8844 Update Changelog 2020-03-13 12:59:23 +02:00
Minh Nguyễn
75f2681c19 [ios, macos] Minimum and maximum pitch
Added computed properties to MGLMapView for further restricting the map’s camera’s pitch.
2020-03-12 17:07:06 -07:00