summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layers
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix modernize-use-override errors in header filesThiago Marcos P. Santos2020-04-1711-11/+11
| | | | As reported by clang-tidy-8.
* [core] Fix readability-redundant-member-init errors in header filesThiago Marcos P. Santos2020-04-1711-12/+12
| | | | As reported by clang-tidy-8.
* Enable 'circle-sort-key' layout propertyAndrew Hay Kurtz2020-04-141-0/+6
|
* Fix LocationIndicator LayerGali Nelle2020-04-101-8/+12
| | | | | | | | | This changes image size properties to be scales instead of pixel sizes. The commit also adds fixes for handling image updates with the same ID, adds tests for expressions in paint properties, as well as tests for using images with pixel ratio greater than 1. Finally it moves image-tilt-displacement and perspective-compensation properties from layout to paint properties, and includes other minor cleanups.
* Make location indicator bearing a paint propertyGali Nelle2020-04-0810-13/+12
| | | | | | This change introduces a new property type, Rotation, that uses a custom interpolator, and that is currently applied to all style properties named "bearing", with a period attribute.
* Add LocationIndicatorLayerGali Nelle2020-04-082-1/+116
| | | | | New key is "G" in mbgl-glfw, cycling between no puck, centered in the viewport and positioned in Tokyo.
* [core] Move generic setProperty() parts to the base Layer classMikhail Pozdnyakov2020-03-2410-60/+60
|
* [core] Generate layer codeAlexander Shalamov2020-02-269-0/+9
|
* [core] Add layer serialization methodAlexander Shalamov2020-02-261-0/+1
|
* [build] Adding a build flag to build without GL if needed (#16120)Thomas Moenicke2020-02-031-88/+0
| | | | | | * [build] Adding a build flag to build without GL if needed * [build] Moving custom layer to mbgl/gl
* [core] Enable 'line-sort-key' and 'fill-sort-key' layout properties (#15839)Andrew Hay Kurtz2019-12-172-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Generate style code for 'line-sort-key' and 'symbol-sort-key' - Add new layout properties to FillLayer::Impl, FillBucket, and FillLayerFactory - Fix consistency of paint and layout properties type alias usage in FillBucket, LineBucket - Add optional feature sorting to fill and line Layout creation - Enable node render tests for fill-sort-key and line-sort-key - Fix FillBucket test construction - Prefer emplace_back to push_back for PatternFeature container - Fix buggy static_cast for PatternFeature indices - Maintain sort of features as they are created - Switch pattern layout features container to list from vector for better insert performance - Fix formatting expected by sanity check - Use subclass PatternLayoutSorted to work around lack of template functions - Fix to retain source order for features with equivalent sort keys during sorting - [core] Fix clang-format - [core] Address review comments - [core] Pass inserting strategy class at compile time - [core] Use sorted strategy only if sort key is defined in layout - [core] Update style generator - [core] Merge PatternLayout and PatternLayoutSorted classes - Use static methods for inserter strategies - Merge PatternLayout and PatternLayoutSorted classes
* [core] Merge style::Layer::set{Layout,Paint}PropertyMikhail Pozdnyakov2019-12-0311-22/+11
|
* [core] Implement image expression (#15877)Alexander Shalamov2019-11-115-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Bump gl-js version * [core] Implement image expression * [core] Use new image expression * [core] Coerce image expression to / from string * [core] Serialize evaluated image * [core] Pass available images to layout * [core] Pass images to evaluation context * [core] Set available flag value based on image availability * [core] Allow image coercion to boolean to indicate image availability * [core] Coalesce image expression * [core] Add image expression to next build system * [core] Align serialization format and evaluated type with gl-js * [core] Add images to expression evaluation method * [core] Add support for Image expression to expression test runner * [core] Unskip image expression tests * [core] Update unit tests * [core] Use image expression in annotation manager * [core] Add string to ImageExpression conversion * [core] Add image expression to expression dsl * [core] Convert tokens for implicitly created Image literal * [core] Fix clang format * [core] Split generated style code lines that are over 120 characters * [core] Add unit test for image expression equality * [core] Add image property expression evaluation unit test * [core] Unskip image expression render test * [core] Skip 'in' expression tests * [core] Ignore fill-pattern/update-feature-state render test * [core] Rename Image::serialize to Image::toValue
* [core] Layer::getPaintProperty() -> Layer::getProperty()Mikhail Pozdnyakov2019-09-2611-11/+11
|
* [core] LayerProperty -> StylePropertyMikhail Pozdnyakov2019-09-2611-11/+11
|
* [core] Introduce Layer::getPaintProperty() generic getterMikhail Pozdnyakov2019-09-2611-1/+21
|
* [build] Disable clang-format on generated codeThiago Marcos P. Santos2019-09-2510-0/+40
| | | | Nice to have, but would make maintain the templates a lot harder.
* [core] Add style bindings for "text-writing-mode" layout propertyAlexander Shalamov2019-08-131-0/+4
|
* [build] change style code generator to sort properties alphabeticallyKonstantin Käfer2019-05-029-295/+295
| | | | JSON keys in our style specification don't have a defined order. This change sorts them alphabetically so that we can rely on the order remaining them same across code generation runs.
* [core] Enable 'symbol-sort-key' layout property and generate style codeAlexander Shalamov2019-04-171-0/+4
|
* [core] clang-tidy fixesKonstantin Käfer2019-04-0510-236/+236
|
* [core] Enable 'text-radial-offset' propertyMikhail Pozdnyakov2019-03-291-0/+4
|
* [core] Enable text-variable-anchor propertyMikhail Pozdnyakov2019-03-291-0/+4
|
* [core, android, darwin] Move layer factories to separate filesMikhail Pozdnyakov2018-12-1011-99/+0
|
* [core] layermanager folderMikhail Pozdnyakov2018-11-3011-10/+11
| | | | Move `LayerManager` and `LayerFactory` abstract classes to a dedicated folder.
* [core] Support fill-extrusion-vertical-gradientBruno de Oliveira Abinader2018-11-291-0/+6
|
* [core][Android][Darwin] LayerManager creates RenderLayer instancesMikhail Pozdnyakov2018-11-2711-87/+65
| | | | | | | | `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`.
* [core][android] Introduce mbgl::style::LayerTypeInfoMikhail Pozdnyakov2018-11-1511-76/+32
| | | | | | | | | The `LayerTypeInfo` contains static meta data about certain layer type. Each layer module should have a single immutable `LayerTypeInfo` instance for the represented layer type. Both `LayerImpl` and `LayerFactory` from the module always refer to the same `LayerTypeInfo` instance, so address of this instance can be used as a layer module Id during the process life time.
* noexcept specifier for layer factory methodsMikhail Pozdnyakov2018-11-0711-22/+22
|
* Refer corresponding LayerFactory instance from the Layer::ImplMikhail Pozdnyakov2018-11-0711-30/+104
|
* Introduce the style::Layer factory classesMikhail Pozdnyakov2018-10-3110-0/+80
| | | | | | | | | This patch introduces the initial implementation of - A `LayerFactory` abstract class that creates `style::Layer` instances of a certain layer type (line, hillshade, round, ..) - A singleton `LayerManager` class, which is responsible for initializing the `LayerFactory` instances and forwarding the `create()` calls to the corresponding factory.
* Remove style::Layer::is()/as()Mikhail Pozdnyakov2018-10-3110-50/+0
|
* Consolidate `style::Layer` properties APIMikhail Pozdnyakov2018-10-2511-146/+32
| | | | | | | | The `style::Layer` class now exposes all the properties contained at `style::LayerImpl`. This allowed to drop `style::Layer::accept()` method usage, avoid the repeated generated code and thus save some binary size. This patch is a part of the layers modularization effort.
* [core] Initial implementation of 'format' expressionChris Loer2018-10-1510-3/+13
|
* Port symbol-z-order symbol layout style-spec property to Nativeupstream/sort-by-yryanhamley2018-09-071-0/+4
|
* [core] Add `line-gradient` propertyMikhail Pozdnyakov2018-08-232-1/+8
| | | | | | | | Porting of https://github.com/mapbox/mapbox-gl-js/pull/6303 See the link above for the description of the feature and its limitations). Based on patch from @lbud (Lauren Budorick).
* [core] Eliminate setProperty & co.John Firebaugh2018-08-1311-0/+44
|
* [core] Merge DataDrivenPropertyValue into PropertyValue (#12513)John Firebaugh2018-07-3110-151/+141
|
* Rename `HeatmapColorPropertyValue` to `ColorRampPropertyValue`Mikhail Pozdnyakov2018-07-052-7/+7
| | | | | | | | Based on patch from @lbud (Lauren Budorick). Give `HeatmapColorPropertyValue` a more generic name, since the same value type will be used for both `heatmap-color` and `line-gradient` properties.
* [core] add raster-resampling property (#12176)upstream/rcleeMolly Lloyd2018-06-211-0/+6
| | | | | | | | | | * update style-code for raster-resampling * implement user-defined raster-resampling * invert filter condition * raster-resampling -> raster-resampling-mode for darwin language conventions
* [core] Add Projection matrix to CustomLayerRenderParameters to transform web ↵Asheem Mamoowala2018-04-051-0/+3
| | | | mercator world coordinates to GL coordinates.
* Use a host interface for CustomLayer instead of function pointers (#11553)Asheem Mamoowala2018-04-021-46/+40
| | | | | | Use a host interface for CustomLayer instead of function pointers Co-authored-by: Julian Rex <julian.rex@mapbox.com>
* [core, ios, macos, android, node] Heatmap layer (#11046)Vladimir Agafonkin2018-02-152-0/+89
| | | | | Co-Authored-By: Konstantin Käfer <mail@kkaefer.com> Co-Authored-By: Anand Thakker <anandthakker@users.noreply.github.com> Co-Authored-By: Minh Nguyễn <1ec5@users.noreply.github.com>
* [core] add raster-dem source type and hillshade layer type (#10642)Molly Lloyd2018-01-232-1/+87
|
* [core, ios, macos, android] Add data-driven-styling support for `text-font`John Firebaugh2018-01-101-3/+3
|
* [core] custom layer - add contextLost callbackIvo van Dongen2017-09-221-0/+16
| | | | - optional callback method that can be used to do cleanup when the context has been lost before re-initialisation
* [core][ios][macos][android]DDS-ify `text-letter-spacing` and `text-max-width`Asheem Mamoowala2017-08-301-6/+6
|
* Implement icon-anchor propertyLauren Budorick2017-08-281-3/+7
|
* [core][android][macos][ios] Implement property functions for line-join, ↵Lauren Budorick2017-07-262-9/+9
| | | | text-justify, text-anchor (#9583)
* [core] Update shaders.Chris Loer2017-07-121-0/+4
| | | | | Implements 'icon-pitch-alignment' (issue #9345) Fixes issue #9456 (map-aligned point label regression)