Ivo van Dongen
733661948c
[core] BackendScope prevent double (de-)activation
...
- Guards against duplicate activations by checking wether the backend of the prior scope is the same as the current ones
- Makes sure that only the most outer backend scope deactivates by tracking activation state
2017-07-19 17:34:07 +02:00
John Firebaugh
baaae99a03
[core, android] Factor JSON string conversions
...
This adds a `convertJSON` template, to be used like:
Error error
optional<Foo> foo = convertJSON<Foo>(string, error);
Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`.
While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
2017-05-08 13:48:57 -07:00
Lauren Budorick
f6e79d7073
[core] Render fill-extrusion layers ( #8431 )
2017-04-27 15:56:55 -07:00
Ivo van Dongen
3c175adf30
[core] split off render layers
2017-04-25 17:23:54 -07:00
John Firebaugh
5dd98df50b
[all] Rationalize style::Image
...
A style has a collection of images, just as it has collections of sources and layers.
* Name things appropriately
* Use std::unique_ptr
2017-04-24 15:52:28 -07:00
Anand Thakker
b5b4549b6d
Fix edge case in composite function interpolation ( #8613 )
...
This fixes a bug where, for a zoom value greater than that of the highest zoom
stop, composite function interpolation would return nan. (Blocking a render
test over in #8593 )
* Add failing tests for composite function edge case
The failing cases here are:
- Should interpolate before the first stop
- Should interpolate past the last stop
* Fix edge case in composite function interpolation
* Hold functions constant outside stop-defined domain
2017-04-03 12:25:36 -04:00
Konstantin Käfer
3c91b6b7de
[core] cache binary shaders on Android
2017-03-22 15:59:10 +01:00
Ivo van Dongen
96a53156c2
[core] don’t query rendered features until all data is available
2017-03-14 17:27:59 +02:00
Anand Thakker
4b81c924cc
[core] Log Memory.Footprint test results ( #8170 )
...
* Log Memory.Footprint test output
* On CI, only run Memory.Footprint test with libjemalloc
2017-02-28 14:11:35 -08:00
John Firebaugh
b6e5edc268
[core] Restore support for *-transition properties
2017-02-09 15:08:51 -06:00
Ivo van Dongen
8a5bff8ee6
[core] default value support in categorical function conversion
2017-02-02 09:44:42 -08:00
John Firebaugh
141e995806
[core] Add support for data-driven styling
2017-02-02 09:44:42 -08:00
Bruno de Oliveira Abinader
88b7fc3929
[Qt] Implement mapbox::sqlite::{Database,Statement} using QtSql
2017-01-23 19:06:53 +02:00
Bruno de Oliveira Abinader
49da57393a
[core] Remove platform-specific main.cpp from MBGL_TEST_FILES
2017-01-18 19:06:32 +01:00
John Firebaugh
531a1c3070
[core] Fix calculation of delayed transitions
2017-01-17 15:18:14 -06:00
Konstantin Käfer
b6c1119172
[core] harden Glyph PBF parsing
2017-01-17 19:23:20 +01:00
Konstantin Käfer
3b8e50a2a9
[core] add tests for function parsing
2017-01-16 10:28:21 +01:00
John Firebaugh
e7778509c5
[core] Fix flickering caused by regression in #7586
...
It should be safe to invoke GeometryTileWorker::setData multiple times without invoking GeometryTileWorker::setLayers. Therefore GeometryTileWorker::redoLayout() must not consume the layers.
2017-01-10 10:15:22 -08:00
John Firebaugh
0c0064c050
[core] Get rid of user-specified refs
2017-01-04 17:38:33 -08:00
Konstantin Käfer
dc1bda435f
[core] add util::isURL() for checking whether a string starts with a URL scheme
2016-12-07 10:46:43 +01:00
Bruno de Oliveira Abinader
549929cefd
[core] Set bucket segments to initialize empty
2016-11-02 18:12:28 +02:00
Mike Morris
817c26111a
[core] [node] pass thread pool impl to Map constructor
...
Updates mbgl::Map constructor usage everywhere
Adds NodeThreadPool implementation using AsyncQueue to call
Nan::AsyncQueueWorker from main thread
2016-10-20 14:37:36 -04:00
Bruno de Oliveira Abinader
9946e60536
[test] Added TileCoordinate tests
2016-10-11 19:36:21 +03:00
John Firebaugh
31be5d3c3a
[core] Tiles that error on load are not renderable
2016-10-05 10:26:04 -07:00
Thiago Marcos P. Santos
82b801250e
[tests] Add unit tests for query features fiters
2016-10-05 11:12:16 +03:00
Ivo van Dongen
1bf12e20a6
[core] LocalFileSource implementation and tests
2016-09-30 14:57:26 +02:00
Konstantin Käfer
3f3fc7b772
[test] add .test.cpp suffix to test case files
2016-09-28 16:34:22 +02:00
Konstantin Käfer
c88ce2d51e
[core] add ability to render to offscreen textures
2016-09-27 10:42:10 +02:00
John Firebaugh
dc1861f6d5
[core] Merge GlyphStore and GlyphAtlas
2016-09-19 09:40:43 -07:00
John Firebaugh
940124ff71
[core] Merge SpriteStore and SpriteAtlas
2016-09-19 09:40:43 -07:00
John Firebaugh
41bbd4e4f7
[core] Use an actor model for tile worker concurrency
2016-09-16 12:01:06 -07:00
Ivo van Dongen
290bd07a92
[core] OnlineFileSource - rate limit
2016-09-13 14:21:37 +02:00
Tobrun
4f23d0cda8
[core] - move wrap test ( #6311 )
2016-09-12 12:50:13 -07:00
John Firebaugh
6bbb2e4c2b
[tests] Merge single test in set_style.cpp with other Map tests
2016-08-23 09:55:32 -07:00
Ivo van Dongen
df3b44531e
[core] #6071 - extract GeoJSONOptions conversion from GeoJSONSource conversion
...
* [core] geojson_options - retain original error message
* [core] tests - initial style conversion stub methods
* [core] geojsonoptions conversion - initial unit tests
* [core] tests - fix forward reference issue
* [core] geojsonoptions conversion - unit tests
* [core] geojsonoptions conversion - renamed Holder to Value
2016-08-23 14:57:55 +02:00
Konstantin Käfer
692fe1f3ff
[build] switch to CMake
...
This is very much a work in progress.
2016-08-05 11:42:22 +02:00