Chris Loer
f87ef3f72a
[core] OverscaledTileID::isChildOf should check wrap values.
...
Fixes issue #13478
2018-11-30 12:30:50 -08:00
Mikhail Pozdnyakov
92352de87d
[core] layermanager folder
...
Move `LayerManager` and `LayerFactory` abstract classes to a dedicated folder.
2018-11-30 19:09:17 +02:00
Bruno de Oliveira Abinader
20ca1a0418
[core] Cleanup Transform, use {jump,ease}To() instead
2018-11-27 21:38:36 +02:00
Mikhail Pozdnyakov
361982fef8
[core][Android][Darwin] LayerManager creates RenderLayer instances
...
`LayerManager` is now responsible for `RenderLayer` instances creation,
so that there is a single entry point for creating of objects, which
correspond to a certain layer type.
The `LayerType type` field is dropped from `Layer::Impl`.
2018-11-27 18:10:21 +02:00
Bruno de Oliveira Abinader
52cce7925d
[core] Camera center and anchor points are mutually exclusive
2018-11-26 17:15:51 +02:00
Bruno de Oliveira Abinader
82be3104cd
[core] Fix VectorTileFeature::getValue() semantics after geometry@v1.0.0
2018-11-26 12:43:13 +02:00
Minh Nguyễn
7d5be980e2
[core] Fixed {prefix} evaluation
...
This appears to have been an attempt to use the std::string fill constructor, but it ended up creating a one-character-long string and attempting to overwrite the null terminator.
2018-11-21 09:54:05 -08:00
Mikhail Pozdnyakov
8ac87ec5cb
Refactor util::fontStacks()
...
So that it does not downcast `Layer::Impl` instances.
Also, an unneeded `std::vector` construction was removed from
`Parser::fontStacks()`.
2018-11-19 17:16:54 +02:00
Huyen Chau Nguyen
8d0b06d5dd
[core] add test about number of maximum concurrent requests
2018-11-15 12:19:48 -08:00
Huyen Chau Nguyen
9a606caf0b
[core] define number of concurrent downloads in online file source variable
2018-11-15 12:19:48 -08:00
Bruno de Oliveira Abinader
db2e1b2e5f
[core] Add RendererState::{pixelForLatLng,latLngForPixel}
2018-11-14 12:22:22 +02:00
Thiago Marcos P. Santos
01d9005c3b
[test] Add test for when requesting the same resource many times
...
This test would have prevented the crash fixed by the previous patch.
2018-11-13 23:26:34 +02:00
Thiago Marcos P. Santos
cd92a231b3
[qt] Deprecate Qt4 and old versions of Qt5
...
Not enough adoption to keep the platform alive.
2018-11-13 22:55:26 +02:00
Bruno de Oliveira Abinader
bf8b24fa8d
[build] Update to geometry v1.0.0
2018-11-13 17:28:26 +02:00
Alexander Shalamov
f2d9d92d26
[core] Change toLowerHex to produce lower hex sequences
2018-11-07 11:29:40 +02:00
Mikhail Pozdnyakov
56808731b6
Remove style::Layer::is()/as()
2018-10-31 11:22:46 +02:00
Bruno de Oliveira Abinader
55710cbb67
[core] Added RendererState::has{Image,Layer,Source}
2018-10-25 16:23:40 +03:00
Huyen Chau Nguyen
fa78bcadfd
[core] add tests for handling requests with different priorities
...
- ensure that low priority requests are handled last
- add option to set the number of maximum concurrent requests for tests
- some style fixups
2018-10-23 12:47:10 +02:00
Huyen Chau Nguyen
1e3a744d22
[core] add priorities to resources
...
- priorities can be low or regular
- offline downloads should have low priority to not throttle "regular requests"
2018-10-23 12:47:10 +02:00
Konstantin Käfer
8bf66ef7a7
[core] remove some uses of <iostream> and <sstream>
2018-10-23 12:23:40 +02:00
Konstantin Käfer
c87c25cc84
[core] don't use <sstream> and <iomanip> for string construction
2018-10-23 12:23:40 +02:00
Konstantin Käfer
eb828dfd29
[core] add the ability to stringy numbers as hex
2018-10-23 12:23:40 +02:00
Konstantin Käfer
43687b4781
[core] add ability to stringify doubles that are integer with and without trailing ".0"
2018-10-23 12:23:40 +02:00
Konstantin Käfer
decbde1616
[core] deduplicate dtoa() from RapidJSON and add tests
2018-10-23 12:23:40 +02:00
Bruno de Oliveira Abinader
ea51b11dcc
[core] Introduce mbgl::RendererState
2018-10-19 12:05:16 +02:00
Bruno de Oliveira Abinader
98c36fc06e
[core] CameraOptions receives and outputs angle and pitch as degrees, not radians
2018-10-19 12:05:16 +02:00
Ryan Hamley
0c6b1629ef
[Core] Ensure queryRenderedFeatures accounts for icon-rotate ( #13105 )
2018-10-18 12:14:52 -07:00
Chris Loer
fc11d2e872
[core, test] Add BiDi unit test
...
- Port of arabic.test.js from mapbox-gl-rtl-text
- Modify BiDi::getLine to remove trailing nulls in the event UBIDI_REMOVE_BIDI_CONTROLS causes the string to shorten.
- Patch vendored ICU to avoid undefined undefined bit shifting behavior (triggered sanitizer failure)
2018-10-15 13:15:46 -07:00
Chris Loer
6cbf150a33
[test] Add unit test for TaggedString::trim()
2018-10-15 13:15:46 -07:00
Chris Loer
2c2241c506
[test] Enable 'format' Expression test.
2018-10-15 13:15:46 -07:00
Chris Loer
d4c9b21bae
[core, tests] Don't break text-field support "identity functions"
2018-10-15 13:15:46 -07:00
Chris Loer
ce76bde13d
[core] Initial implementation of 'format' expression
2018-10-15 13:15:46 -07:00
Chris Loer
fed55418f2
[core,test] Update expression style parsing test fixture.
...
Always clear errors before trying automatic coercion for a new compound expression overload.
2018-10-15 13:15:46 -07:00
Molly Lloyd
ced996ec46
[test] add test checking that unclipped tiles are not used by ClipIDGenerator
2018-10-03 11:46:49 -07:00
Bruno de Oliveira Abinader
f3c8b92286
[core] Read style's transition from parser
2018-10-03 10:19:17 -07:00
Bruno de Oliveira Abinader
19179e08bc
[core] Do not constrain on X axis in ConstrainMode::HeightOnly
2018-10-02 06:16:13 -07:00
Konstantin Käfer
153acd981b
[core] Always request 1x and @2x sprite images for portability
...
When creating a offline region, we've previously only requested the sprite image for the specified resolution. This lead to offline packs not being usable on devices that have a different pixel ratio. We're now requesting both 1x and 2x sprites. Some devices use even higher or fractional pixel ratios. However, we only ever use 1x and 2x sprite images in our requests.
2018-09-24 11:35:44 +02:00
Konstantin Käfer
2ea0833ecf
[core] don't break ascent in the overscaled tile phase
...
We optimize our updateRenderable algorithm by breaking ascent when we've already checked a certain tile. So far, we've compared the UnwrappedTileIDs, but they don't include the overscale component. When ascending through overscaled tile IDs, we've stopped the ascent too early, when we should've kept the search going.
2018-09-21 12:12:35 +02:00
John Firebaugh
2e93a9ddcf
[core] For string-valued properties, do coercion rather than assertion
2018-09-19 14:54:38 -07:00
Konstantin Käfer
071129bf61
[linux,qt] Remove remainder of WebP support
2018-09-13 13:27:44 +02:00
Konstantin Käfer
4a3c4edb59
[android] add support for gnustl
2018-09-11 11:43:54 +02:00
Molly Lloyd
4a5dc37245
[core] Implement CrossFadedDataDrivenProperty to add support for feature expressions in *-pattern properties
2018-08-31 13:08:47 -07:00
Asheem Mamoowala
d4f4136414
Enforce Offline tile limit when merging sideloaded databases
2018-08-28 07:14:54 -07:00
Asheem Mamoowala
eb72fe580b
Require minimum side-loaded database user_version=6
2018-08-28 07:14:54 -07:00
Asheem Mamoowala
fcab3a81cd
Add unit tests and fixtures for OfflineDatabase::mergeDatabase
2018-08-28 07:14:54 -07:00
Molly Lloyd
49cf31d2b8
[core] add exception for unimplemented expressions in tests
2018-08-21 22:02:51 -07:00
Ivo van Dongen
fae099933b
[core] offline region definition - add support for arbitrary geometries
2018-08-20 22:49:01 +03:00
Konstantin Käfer
112bbc7ab2
[core] make style/conversion.hpp implementation private
2018-08-19 13:09:16 +02:00
John Firebaugh
8ca419fb2e
[core] Evict unused font stacks from GlyphManager
2018-08-17 09:38:39 -07:00
Konstantin Käfer
084c28f0bb
[core] recreate offline database when it is deleted out from under our feet
2018-08-14 17:03:46 -07:00