summaryrefslogtreecommitdiff
path: root/test/style
Commit message (Collapse)AuthorAgeFilesLines
* [core, android] Factor JSON string conversionsJohn Firebaugh2017-05-081-37/+0
| | | | | | | | | | | 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.
* [core] generated accessor methods on lightIvo van Dongen2017-05-081-19/+19
|
* [core] Omnibus Style::update methodJohn Firebaugh2017-05-041-4/+8
| | | | Combine Style::cascade, recalculate, relayout, and updateTiles into a single method. This allows multiple loops over sources and layers to be consolidated and prepares for additional Style-Map decoupling: rather than tracking pending updates via a set of Update flags held by the Map and passed to the Style, the Style can use its own data to determine what to update.
* [core] UpdateParameters ⇢ TileParametersJohn Firebaugh2017-05-041-11/+11
|
* [core] Move render-related sources out of style directory/namespaceJohn Firebaugh2017-05-033-5/+5
| | | | | | | | | | | | | | | | Moves the following to the renderer directory and out of the style namespace: * CascadeParameters * PropertyEvaluationParameters * UpdateParameters * PropertyEvaluator * DataDrivenPropertyEvaluator * CrossFadedPropertyEvaluator * PaintPropertyBinder * PaintProperyStatistics * PossiblyEvaluatedPropertyValue * TransitioningLight * EvaluatedLight
* [core] Refactor Source::*Impls into RenderSources and TilePyramidJohn Firebaugh2017-05-021-118/+108
|
* [core] Load source TileJSON immediatelyJohn Firebaugh2017-05-021-72/+0
| | | | | | | This reverses #3095. Rationale: * We're now exposing source attributes as a public API. Making those attributes unavailable at certain times complicates that API. * We're preparing to split RenderSource out of Source. Removing this removes a point of coupling between the two.
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-272-19/+121
|
* [core] split off render layersIvo van Dongen2017-04-252-48/+4
|
* [all] Rationalize style::ImageJohn Firebaugh2017-04-241-0/+52
| | | | | | | A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
* [core] Move Sprite parsing to thread poolKonstantin Käfer2017-04-243-6/+13
|
* Fix edge case in composite function interpolation (#8613)Anand Thakker2017-04-031-0/+46
| | | | | | | | | | | | | | | | 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
* [all] Replace Result<T> with optional<T> plus out Error parameterJohn Firebaugh2017-03-234-25/+35
|
* Make Source::getZoomRange return an optional rangeBruno de Oliveira Abinader2017-03-211-9/+16
|
* [core] s/onSourceDidChange/onSourceChanged/ + source refBruno de Oliveira Abinader2017-03-211-2/+2
|
* [core] Expose Source::getZoomRangeBruno de Oliveira Abinader2017-03-201-0/+24
|
* [core] Avoid unnecessary convert template instantiationsJohn Firebaugh2017-03-092-2/+2
|
* For data-driven paint setters, transition immediately to target value (#8306)Anand Thakker2017-03-081-0/+45
| | | Closes #8237
* [core] Restore support for *-transition propertiesJohn Firebaugh2017-02-091-0/+46
|
* [core, ios, macos] Refactor composite stop types and conversionsJohn Firebaugh2017-02-091-3/+6
|
* [core] default value support in categorical function conversionIvo van Dongen2017-02-022-2/+98
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-025-110/+131
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-274-20/+20
|
* [core] Fix calculation of delayed transitionsJohn Firebaugh2017-01-171-0/+94
|
* [core] add tests for function parsingKonstantin Käfer2017-01-161-0/+54
|
* [tests] Sidestep a gcc or gtest bugJohn Firebaugh2017-01-111-5/+5
| | | | | | | https://github.com/google/googletest/issues/458 https://github.com/google/googletest/issues/322 Not seen in CI because of https://github.com/mapbox/mapbox-gl-native/blob/0ef52d7f7ceee670e8961e811364d215fde7e980/scripts/travis_setup.sh#L17-L22
* [core] Fix flickering caused by regression in #7586John Firebaugh2017-01-101-4/+4
| | | | It should be safe to invoke GeometryTileWorker::setData multiple times without invoking GeometryTileWorker::setLayers. Therefore GeometryTileWorker::redoLayout() must not consume the layers.
* [core] Get rid of user-specified refsJohn Firebaugh2017-01-042-0/+142
|
* [core] Correct boolean function interpolationJohn Firebaugh2016-12-221-10/+20
|
* [core] guard against duplicate layer idsIvo van Dongen2016-12-121-0/+28
|
* [core] Functions must have at least one stopJohn Firebaugh2016-12-011-6/+0
| | | | This is already enforced by the style validator in mapbox-gl-style-spec. Enforce it here too.
* [core] guard against duplicate source id’sIvo van Dongen2016-11-301-0/+21
|
* [build] upgrade to variant 1.1.4 and dependenciesKonstantin Käfer2016-11-282-9/+9
|
* [build] move logging to utilKonstantin Käfer2016-11-222-2/+2
|
* [build] move default ThreadPool implementation to platform/defaultKonstantin Käfer2016-11-221-1/+1
|
* [core] Convert style properties to a tuple-based approachJohn Firebaugh2016-11-171-3/+3
| | | | | | | | This converts the style property classes (CirclePaintProperties and so on) to the same tuple-based approach as gl::Attribute and gl::Uniform. The approach is outlined in https://github.com/mapbox/cpp/blob/master/C%2B%2B%20Structural%20Metaprogramming.md. The main advantage of this approach is it allows writing algorithms that work on sets of style properties, without resorting to code generation or manually repetitive code. This lets us iterate on approaches to data-driven properties more easily. Another advantage is that the cascading, unevaluated, and evaluated states of a set of properties exist as independent structures, instead of individual properties holding their own state. This is a more functional approach that makes data flow clearer and reduces state.
* [core] symbol layer - recalculate style on icon/text size changesIvo van Dongen2016-11-111-1/+1
|
* [core] change std::array<uint16_t, 2> to mbgl::SizeKonstantin Käfer2016-10-271-1/+1
|
* [core] fixup formattingIvo van Dongen2016-10-211-11/+11
|
* [core] [node] pass thread pool impl to Map constructorMike Morris2016-10-201-1/+1
| | | | | | | Updates mbgl::Map constructor usage everywhere Adds NodeThreadPool implementation using AsyncQueue to call Nan::AsyncQueueWorker from main thread
* [core] reload geojson source on url changeIvo van Dongen2016-10-201-0/+34
|
* [test] add .test.cpp suffix to test case filesKonstantin Käfer2016-09-288-0/+0
|
* [core] Source-driven attributionMinh Nguyễn2016-09-261-0/+39
| | | | | | Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution. Fixes #2723.
* [core] Trigger Update::RecalculateStyle when toggling layer visibilityBruno de Oliveira Abinader2016-09-261-2/+15
|
* [core] Merge GlyphStore and GlyphAtlasJohn Firebaugh2016-09-191-144/+0
|
* [core] Merge SpriteStore and SpriteAtlasJohn Firebaugh2016-09-191-0/+0
|
* [core] Use an actor model for tile worker concurrencyJohn Firebaugh2016-09-162-16/+16
|
* [core] Correct evaluation of interval functionsclydebarrow2016-09-161-0/+11
|
* [core] upgrade RapidJSON to 1.1.0Konstantin Käfer2016-09-151-5/+6
|
* [core] change bool to enum class bool TileLoadStateKonstantin Käfer2016-09-071-4/+4
|