summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* TileJSON Bounds allows values inclusive of world extentsupstream/fix-tilejson-boundsAsheem Mamoowala2018-02-121-0/+10
|
* [core] prioritize Thread::pause() callsKonstantin Käfer2018-02-061-0/+14
|
* [core] don't force downloading of Open Sans fontsKonstantin Käfer2018-01-252-0/+24
| | | | When a SymbolLayer doesn't have a text-font defined, we automatically add Open Sans/Arial Unicode MS. However, when the SymbolLayer is only used for rendering icons, it doesn't have text-field defined either. In those cases, we still force downloading Open Sans/Arial Unicode MS during offline pack creation. If the user doesn't use this font, this change should save ~15MB and a few seconds in download time.
* [core] align implementations of local and asset file sourceKonstantin Käfer2018-01-252-0/+52
|
* [core] fix style parsing crash when a layer's paint property is not an objectKonstantin Käfer2018-01-232-0/+15
|
* [core] add raster-dem source type and hillshade layer type (#10642)Molly Lloyd2018-01-233-0/+427
|
* [core] Prevent symbols at the same zoom from sharing a crossTileID.Chris Loer2018-01-171-0/+74
| | | | | Port of GL JS PR #5994. Fixes issue #10844, which would allow multiple symbols in a tile to share the same crossTileID as one of their duplicate parent-tile symbols. Once the symbols shared a crossTileID, they would permanently remain "duplicates" of each other, even after increasing zoom level allowed the CrossTileSymbolIndex to distinguish between them.
* [core] Add warning for invalid text-font valuesJohn Firebaugh2018-01-102-0/+149
|
* [core, ios, macos, android] Add data-driven-styling support for `text-font`John Firebaugh2018-01-101-0/+75
|
* [core] port minor collision changes from -js (#10764)Ansis Brammanis2018-01-081-1/+45
|
* [test] Only use our SQLite3 wrapper in testsBruno de Oliveira Abinader2018-01-081-44/+2
|
* Support TileJSON bounds property (#10701)Asheem Mamoowala2018-01-052-0/+128
| | | | | | | | * [core] Parse TileJSON bounds property * [core] Add TileRange and LatLngBounds::contains(CanonicalTileID) Move LatLngBounds::contains impl to cpp file * [core] Skip tile creation outside of tileset bounds * [core] Fix TileRange for wrapped bounds and use for CustomTileLoader instead of LatLngBounds comparisons for tiles.
* [all] - update licenses to 2018Tobrun2018-01-031-1/+1
|
* [core] don't tie Annotation geometries to Map maxzoomKonstantin Käfer2018-01-021-0/+16
| | | | Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
* [macos,ios,android] Unit test fixupsChris Loer2017-12-111-17/+17
| | | | | | - Add explanatory comment - Remove dead/unused Android test - Increase image diff threshold to .05 to accommodate slightly different versions of "PingFang" between different test platforms
* [core, macos, ios] Unit tests for LocalGlyphRasterizerChris Loer2017-12-115-0/+282
| | | | | | Core test uses stubbed "glyph.pbf" without Chinese glyphs Darwin test relies on locally available "PingFang" font. Android test relies on locally available "Droid" font. 'expected.png' is NOT correct b/c I haven't figured out how to run unit tests on Android yet.
* [core] Enable local glyph generation using TinySDF.Chris Loer2017-12-112-265/+341
| | | | | | | - Platform-specific LocalGlyphRasterizer is responsible for deciding which glyphs to rasterize locally and for implementing the rasterization. - Default platform implementation doesn't locally generate any glyphs -> no behavior change - Unit test uses StubLocalGlyphRasterizer, which returns a single fixed bitmap for all CJK glyphs - Rename glyph_loader.test to glyph_manager.test
* [core] Support wrapped bounds in LatLngBounds::contains and ↵Asheem Mamoowala2017-12-071-3/+122
| | | | LatLngBounds::intersect.
* [core] move HeadlessBackend extension initialization code into ImplKonstantin Käfer2017-11-291-7/+2
|
* [core, ios, macos] Implement unique_any and remove linb::anyAsheem Mamoowala2017-11-221-0/+186
|
* [core] Use Actors for CustomTileLoader invocation from bindings.Asheem Mamoowala2017-11-221-2/+2
|
* [core] Custom Geometry SourcesAsheem Mamoowala2017-11-224-0/+238
|
* [core] Add unit test for CrossTileSymbolIndexAnsis Brammanis2017-11-171-0/+85
|
* [core] Split MapMode::Still into Static and TileAnsis Brammanis2017-11-1712-16/+16
| | | | | `Tile` makes sure the symbols in the resulting tile are tileable while symbols in `Still` match rendering in `Continuous` mode.
* [core] Update unit tests for viewport collision.Chris Loer2017-11-178-109/+70
| | | | Add 'GridIndex' unit test.
* Implement Expressions (#9439)Anand Thakker2017-11-0897-0/+1012
| | | Ports https://github.com/mapbox/mapbox-gl-js/pull/4777 (and its several follow-ups)
* [test] Added GLContextMode.Shared utestBruno de Oliveira Abinader2017-11-012-0/+114
|
* [core] Add LatLngBounds::contains(const LatLngBounds&)Asheem Mamoowala2017-10-301-0/+6
|
* [tests] Create a HeadlessBackend for tests using gl::ContextThiago Marcos P. Santos2017-10-251-0/+17
| | | | Qt needs a valid surface before doing any OpenGL call.
* Replace compile-time polymorphism with runtime polymorphism in the ↵John Firebaugh2017-10-231-124/+0
| | | | conversion system
* [core] correctly alter sprite URLs when attaching sprite.png/sprite.json ↵Konstantin Käfer2017-10-171-0/+8
| | | | filenames
* [core] don't generate clip IDs for buckets/layers that don't need to be clippedKonstantin Käfer2017-10-171-2/+5
|
* [core] Use convertJSON instead of RapidJSON directlyJohn Firebaugh2017-10-165-50/+23
|
* [core] Move SourceType to the 'style' namespaceAnand Thakker2017-10-163-0/+3
|
* [core] make forcing cache/network only more explicitKonstantin Käfer2017-10-123-129/+129
| | | | | | Previously, we used the existence of a `prior*` field in the Resource object as an indication for whether we should consult the cache or not. However, this is prone to error, since a failed cache lookup won't set any prior fields. Therefore, we manually set `priorExpires` to 0. This in turn triggered another bug where generated wrong expiration timestamps when the server response we got was expired (or expired between sending and receiving). This commit changes the flags so that we can now explicitly request CacheOnly/NetworkOnly (or All) loading methods, rather than the implicit Optional/Required naming scheme.
* [core] Add `cameraForLatLngs()` method with modified bearingAsheem Mamoowala2017-10-091-0/+26
|
* [test] Added GlyphManager.ImmediateFileSourceBruno de Oliveira Abinader2017-10-093-3/+70
|
* [core] Add minzoom to GeoJSONOptionsKonstantin Käfer2017-09-281-0/+2
|
* [core] fix loading of stale must-revalidate resourcesKonstantin Käfer2017-09-251-0/+78
| | | | | | In https://github.com/mapbox/mapbox-gl-native/pull/9670, we implemented support for the Cache-Control: must-revalidate header. While we now respect this header and don't show resources that are stale and have this header set, the optional cache request never completes. This means we're also never going to try to actually get a fresh tile and just never show this tile anymore. This commit fixes this by responding with a Not Found error when the resource is unusable (= stale and has must-revalidate set). Since we actually still have the data (but can't use it due to caching rules), we're responding with the data as well. To avoid a second cache hit, tile_loader_impl.hpp now passes on the data from the Optional to the Required request so that it can be reused when we get a 304 Not Modified response from the server.
* [core] Actor/ActorRef - ask calls to void methodsIvo van Dongen2017-09-222-0/+44
| | | | - allows to wait for execution of void methods as well as non-void methods
* [test] add test for rendering a 204 No Content tileKonstantin Käfer2017-09-222-0/+42
|
* Preserve depth buffer between 3D layers + optimize render order (#9931)Lauren Budorick2017-09-211-4/+8
| | | Port of https://github.com/mapbox/mapbox-gl-js/pull/5101: adds a new render pass `Pass3D` before any other rendering wherein we render layers with 3D passes (fill-extrusion layers) to offscreen framebuffers, sharing a depth renderbuffer between those layers in order to render 3D space correctly. Those framebuffers are saved on the RenderLayers and copied back to the map during the translucent pass. Rendering to offscreen framebuffers before we do any clear + draw means we can avoid expensive framebuffer restores.
* [core] make sure tiles are not treated as complete until all worker ↵Konstantin Käfer2017-09-214-16/+13
| | | | | | operations completed Previously, when we started a worker operation that eventually throws an exception (e.g. due to the tile not being parseable), and then enqueue another worker operation while the first one is processing, we treated the worker as idle once the first operation's error callback fired, even though the second operation was still in progress. Due to our use of coalescing, I was unable to come up with a reliable test since we'd need to reproduce the behavior described above, which is timing dependent.
* [core] keep tiles renderable even if a subsequent error occursKonstantin Käfer2017-09-212-0/+51
| | | | Since 9a9408e8111bcdcd0fcb9a93112d61ab8fce0601, we marked tiles as non-renderable if an error occured. This lead to situations where a tile was loaded + parsed successfully, then a revalidation attempt occured (e.g. because the resource was stale) which failed. In this case, we used to mark the tile as non-renderable although we could've used the perfectly parsed (stale) resource.
* [core] Reset zoom history state in still modeBruno de Oliveira Abinader2017-09-151-0/+6
|
* Fast tileCount with help from @mapbox/sphericalmercator moduleAsheem Mamoowala2017-09-082-0/+17
|
* Update to gejson 0.4.2 and add StyleParser test to verify that GeoJSON ↵Asheem Mamoowala2017-08-282-0/+15
| | | | without `properties` field can be loaded
* Implement icon-anchor propertyLauren Budorick2017-08-281-2/+2
|
* [core] Added GeometryTileWorker-owned image correlation IDBruno de Oliveira Abinader2017-08-251-4/+7
|
* [core] Avoid RenderStyle dependency in query codeJohn Firebaugh2017-08-241-3/+1
|