summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix crash at Placement::getSymbolPlacement()Mikhail Pozdnyakov2020-03-131-1/+1
|
* [core] Binary size fixupMikhail Pozdnyakov2020-03-121-38/+46
|
* [core] Collision index uses doubled padding with the tilted viewMikhail Pozdnyakov2020-03-121-3/+11
|
* [core] Variable labels stick to latest anchor if the view is tiltedMikhail Pozdnyakov2020-03-122-22/+29
| | | | This is done in order to improve labels stability and for the performace reasons.
* [core] Do not squeeze placement period if the view is tiltedMikhail Pozdnyakov2020-03-123-14/+17
| | | | | | If the view is not tilted, we want the new symbols to show up faster, so we squeeze the placement period. On contrary, with the tilted view it's more important to make placement rarely for performance reasons and as the new symbols are normally "far away" and the user is not that interested to see them ASAP.
* [core] Place already visible symbols first and hidden symbols lastMikhail Pozdnyakov2020-03-122-1/+29
|
* [core] Not filter express `in` in `filter`.kevin2020-03-111-1/+6
|
* [core] Adjust mapbox-gl-native for the updated debug shader semanticsMikhail Pozdnyakov2020-03-118-23/+39
|
* Bump mapbox-gl-jsMikhail Pozdnyakov2020-03-1119-353/+365
|
* [core][tile mode] Fix assertion at `line-center` placement handlingMikhail Pozdnyakov2020-03-101-6/+8
| | | | The `symbolIntersectsTileEdges` algorithm should not be applied to the symbols with `line-center` placement
* [core] CollisionIndex::intercectsTileEdges -> intersectsTileEdgesMikhail Pozdnyakov2020-03-063-5/+5
|
* [core] Tile mode placement algorithm must consider icons bounding boxesMikhail Pozdnyakov2020-03-061-36/+42
| | | | | | Tile mode placement algorithm now checks if bounding boxes for both label text and icon are intersecting the edges of the tiles. Before, it checked only text bounding boxes and thus label icons might have got cut off.
* [core] Remove unnecessary intermediate PolygonFeaturezmiao2020-03-051-41/+8
|
* [core] Fix within expression serialization + fix within expression equal ↵zmiao2020-03-052-17/+33
| | | | operator
* [core] Fix within case when point is on polygon boundaryzmiao2020-03-051-0/+9
|
* [core] Make within expression support generic geoJSON datazmiao2020-03-051-22/+51
|
* [core] Use weak annotation managerAlexander Shalamov2020-03-057-26/+42
| | | | | | | Map and renderer / orchestrator should be able to run on a separate threads, however, legacy AnnotationManager is shared between Map and Renderer, therefore is not a thread safe. Until AnnotationManager is deprecated and removed from a code-base, use it only via weak pointers.
* [core] Drop BucketPlacementParametersMikhail Pozdnyakov2020-03-037-23/+15
|
* [core] Split LayerPlacementData and BucketPlacementDataMikhail Pozdnyakov2020-03-032-4/+6
|
* [core] Get rid of LayerPlacementData::firstInBucketMikhail Pozdnyakov2020-03-034-8/+6
|
* [core] Encapsulate placement code handling symbols sort rangesMikhail Pozdnyakov2020-03-038-53/+48
|
* Disable depth in heatmap offscreen rendering.Aleksandar Stojiljkovic2020-03-021-15/+13
| | | | It triggers Metal depth stencil validation error since depth test is enabled with no depth attachment.
* [core] Fix iterators in addRegularDash()Mikhail Pozdnyakov2020-02-281-10/+14
| | | | Fix using of invalid iterators.
* [build] Make csscolorparser and parsedate vendorsThiago Marcos P. Santos2020-02-274-1064/+0
| | | | | | They have a different license from the rest of the code and this will make it explicit. Also the script for generating the license will dectect them correctly.
* [core] FileSourceManager::getFileSource() returns PassRefPtrMikhail Pozdnyakov2020-02-262-3/+4
|
* [core] Fix Color serializationAlexander Shalamov2020-02-262-10/+12
|
* [core] Generate layer codeAlexander Shalamov2020-02-269-461/+650
|
* [core] Add layer serialization methodAlexander Shalamov2020-02-262-22/+95
|
* Backport https://github.com/mapbox/mapbox-gl-js/pull/9333zmiao2020-02-266-449/+427
|
* [core] Return pitch bounds in degreesJuha Alanen2020-02-261-2/+2
|
* [core] Add min and max pitch optionsJuha Alanen2020-02-255-5/+79
|
* [core] Dismiss actors from sprite loaderMikhail Pozdnyakov2020-02-244-87/+40
| | | | and get rid of `SpriteLoaderWorker`, use `scheduleAndReplyValue()` API instead.
* [core] Add bounding box overlapping check before line within polygon testzmiao2020-02-213-40/+141
|
* [test-runner] Add new metricszmiao2020-02-211-1/+1
|
* [core] Remove unnecessary includes, fix commentszmiao2020-02-212-3/+1
| | | | This reverts commit b5c386ad7708ca9fe14f219b0ffc94cf6ce8fc88.
* [core] Update unti tests. Remove unnecessary debugging codezmiao2020-02-213-170/+104
|
* [core] Move geometry within algorithm to utilzmiao2020-02-213-147/+168
|
* [core] Add support for "line within polygon"zmiao2020-02-211-4/+197
|
* [core] Fix sprite sheet merging in Style::Impl::onSpriteLoadedAlexander Shalamov2020-02-173-7/+30
| | | | | | If we get a new sprite sheet from the server, we need to merge current sprite sheet with a new one, while overwiting duplicates and keeping old unique images in a style.
* [core] Implement 'in' expression. (#16162)Kevin Li2020-02-152-0/+132
| | | | | | | | | | | | | | | | | | * Implement in.cpp * Fix review comments. * Add expression_equality test for 'in' * Fix review comments. * [core] Update changelog. * [core] Update mapbox-gl-js * [core] Ignore render-tests/debug/padding * [core] Update baseline.
* [core] Store SegmentVectors in ephemeral render objectsKonstantin Käfer2020-02-1422-287/+250
| | | | | | | We used some shared SegmentVectors, e.g. for drawing raster or background tiles. In longer running maps, this lead to resource accumulation. By storing the SegmentVectors and the contained gfx::DrawScope objects, we ensure that resources get released when the associated render objects vanish.
* Port line-dasharray fix from gl-jsKarim Naaji2020-02-142-59/+126
| | | | | | | | | | | | | | | | * Fix artifact for zero-lenghted dash array Fixes issue https://github.com/mapbox/mapbox-gl-js/issues/9213 and add render test for coverage around 0-length dash arrays Update distance field generation for regular dashes as follows: 1. Compute the dash array ranges and stretch location along the distance field 2. Collapse any 0-length distance field range 3. Collapse neighbouring same-type parts into single part * combine consecutive dashes and parts https://github.com/mapbox/mapbox-gl-js/pull/9246 https://github.com/mapbox/mapbox-gl-native/issues/16181
* [core] Set priorData from cache only if resource is useableAlexander Shalamov2020-02-141-2/+4
| | | | | | In cases when cached resource is useable, yet don't have an expiration timestamp, we provided data to the requester from the cache and the same data was returned once 304 response was received from the network.
* Revert "[core] Fix excessive onSpriteLoaded() notifications"Alexander Shalamov2020-02-141-4/+4
| | | | This reverts commit 80cb05420a86ed53815cae7fb2cb3fddf07dd1d1.
* [core] Fix excessive onSpriteLoaded() notificationsMikhail Pozdnyakov2020-02-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | What happened: The excessive `onSpriteLoaded()` notifications were caused by the trick inside `OnlineFileRequest::completed()` implemenation, which causes receving of two file source updates pointing to the *same* data in case the network response is `notModified` and the local storage has the sprite sheet already stored inside. In the SpriteLoader` implementation, it resulted in 2 extra `parseSprite()` calls and 2 extra `onSpriteLoaded()` notifications. Then, the excessive `onSpriteLoaded()` notifications affected style images and all the unnecessarily added image dupes (btw, the amount of these dupes `= 2 * number of style images`) were treated by the `RenderOrchestrator` as *updated* images. Further, `RenderOrchestrator` called `ImageManager::updateImage()` for the updated images and the `ImageManager` populated the `updatedImageVersions` map. Finally, at every frame all the geometry tiles iterated through the `updatedImageVersions` to check whether their uploaded textures needed patching. All the mentioned above had a negative performance impact. The fix: Now, `SpriteLoader` sends `onSpriteLoaded()` notifications only if the data in the file source response is different comparing to the existing one.
* [core] Support [within expression] with layout propertyzmiao2020-02-128-43/+108
|
* reserve vecotr capacity, fix for points within polygonzmiao2020-02-122-43/+38
| | | | Address review findings/nit
* Add support for expression testzmiao2020-02-125-849/+202
| | | | | | | Fix polygon within algorithm Add Unit tests Fix incorrect metrics folder for ios-render-test-runner job
* Enable within expression with Filterzmiao2020-02-126-34/+47
| | | | | | add canonical as pointer fix review findings
* Enable parse within expressionzmiao2020-02-1225-80/+1184
| | | | Add geometry type checker