summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layers/symbol_layer.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Enable two-component text radial offsetupstream/mikhail_two_component_text_radial_offsetMikhail Pozdnyakov2019-08-121-3/+3
|
* [build] change style code generator to sort properties alphabeticallyKonstantin Käfer2019-05-021-116/+116
| | | | 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-051-106/+106
|
* [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-101-9/+0
|
* [core] layermanager folderMikhail Pozdnyakov2018-11-301-1/+1
| | | | Move `LayerManager` and `LayerFactory` abstract classes to a dedicated folder.
* [core][Android][Darwin] LayerManager creates RenderLayer instancesMikhail Pozdnyakov2018-11-271-8/+6
| | | | | | | | `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-151-7/+3
| | | | | | | | | 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-071-2/+2
|
* Refer corresponding LayerFactory instance from the Layer::ImplMikhail Pozdnyakov2018-11-071-3/+9
|
* Introduce the style::Layer factory classesMikhail Pozdnyakov2018-10-311-0/+8
| | | | | | | | | 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-311-5/+0
|
* Consolidate `style::Layer` properties APIMikhail Pozdnyakov2018-10-251-15/+3
| | | | | | | | 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-151-3/+4
|
* Port symbol-z-order symbol layout style-spec property to Nativeupstream/sort-by-yryanhamley2018-09-071-0/+4
|
* [core] Eliminate setProperty & co.John Firebaugh2018-08-131-0/+4
|
* [core] Merge DataDrivenPropertyValue into PropertyValue (#12513)John Firebaugh2018-07-311-76/+75
|
* [core, ios, macos, android] Add data-driven-styling support for `text-font`John Firebaugh2018-01-101-3/+3
|
* [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-261-6/+6
| | | | 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)
* [core, node, darwin, qt] Remove support for paint classesJohn Firebaugh2017-05-151-56/+56
|
* [core] Immutable ImplsJohn Firebaugh2017-05-121-4/+12
|
* [core] split off render layersIvo van Dongen2017-04-251-1/+1
|
* [core] Add DDS support for {text,icon}-size (#8593)Anand Thakker2017-04-061-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | * Update gl-js and generate style code * Factor out packUint8Pair() helper function * Draft implementation of DDS for {text,icon}-size Ports https://github.com/mapbox/mapbox-gl-js/pull/4455 * Fix text-size/composite-function-line-placement test * Refactor to PaintPropertyBinders-like strategy * Dedupe gl::Program construction * Use exponential function base for interpolation * Dedupe coveringZoomStops method * Fixup tests * Fix CI errors (hidden within #if block)
* [core] Add DDS support for icon-imageJohn Firebaugh2017-03-311-3/+3
|
* [core] Add DDS support for text-rotateJohn Firebaugh2017-03-311-3/+3
|
* [core] implement dds for text-offsetMolly Lloyd2017-03-281-3/+3
|
* Per-attribute transition properties on MGLStyleLayer (#8225)Fabian Guerra Soto2017-03-101-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] new struct MGLTransition * [ios] MGLTransition struct moved to MGLTypes.h * [ios] MGLTransition implemented for style layer properties * [ios, macos] added support for getting property transitions * [ios, macos] updated to MGLDurationFromTimeInterval and MGLTimeIntervalFromDuration * [ios, macos] added transition properties test * [ios, macos] modified key strings imp * [ios, macos] The impl for transition properties were changed to public methods * [ios, macos] Changelog update * [ios] Fixed layer space formatting * [core] The name space was fixed for getters that returned TransitionOptions * [ios, macos] Added rawLayer transition property tests * [ios] Added a factory method for MGLTransition and transition-related methods to NSValue(MGLAdditions) * [ios, macos] Copyedited changelog blurbs about transition properties
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-281-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {text,icon}-{color,opacity,halo-color,halo-blur,halo-width} (#7939) * Add symbol dds attributes and adapt style code generation * Update to mapbox-gl-js/master * Refactor SymbolFeature as a subclass of GeometryTileFeature Prepares for enabling DDS on symbol paint properties by allowing the SymbolFeatures, which we keep around after constructing SymbolLayout, to be used in evaluating data-driven paint properties later in the layout process. * Draft approach for splitting icon/text paint properties The `Program` types are set up to bind GL attributes to each of the data-driven paint properties specified in the `PaintProperties` type provided. Since `SymbolPaintProperties` specifies both `Text*` and `Icon*` properties, the symbolIcon, symbolIconSDF, and symbolGlyph programs each attempt to bind roughly double the number of attributes that they actually need. This change addresses this by: - Adding the more specific `IconPaintProperties` and `TextPaintProperties` types, which are subsets of the full `SymbolPaintProperties`. - The symbol layer continues to use its `SymbolPaintProperties paint` member to track layer property state, but it provides helpers that construct objects of each the specific `{Icon,Text}PaintProperties::Evaluated` type, for use by the painter. - The three symbol programs instantiate `Program<>` using the appropriate `{Icon,Text}PaintProperties` type. * check in generated style code * Populate paint buffers for symbol DDS properties * Address first round of review comments * Refactor VectorTile{Layer,Feature} to explicitly share data * Update submodule
* [core] Enable property functions for text-{field,transform} (#7944)Anand Thakker2017-02-171-6/+6
|
* [core] Restore support for *-transition propertiesJohn Firebaugh2017-02-091-0/+16
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-021-6/+7
|
* [core] Add missing classed paint property getterJohn Firebaugh2016-09-061-14/+14
|
* [core] Add static getters for property default values (#6124)John Firebaugh2016-08-231-0/+48
|
* [core, node] Implement bindings for addLayerJohn Firebaugh2016-06-241-14/+14
|
* [core] Adjust layer source properties to better reflect realityJohn Firebaugh2016-06-241-3/+2
| | | | | | | | * Layer source ID is immutable; must be provided to the constructor * Layer source layer is mutable * Layers with GeoJSON sources do not have a source layer While here, make Layer::copy impl-private.
* Support for icon-text-fit, icon-text-fit-padding (#5334)Young Hahn2016-06-151-0/+6
| | | | | | | | | | * Add support for icon-text-fit * Port unit tests for getIconQuads() from js => cpp * Add support for padding in all 4 directions. * Update all hashes post-merge
* text-pitch-alignment (#5288)Young Hahn2016-06-101-4/+7
| | | | | | | | | | | | * First pass at port of https://github.com/mapbox/mapbox-gl-js/pull/2668 * RotationAlignmentType => AlignmentType * Handle undefined default value for text-pitch-alignment and implement inheritance for this value from text-rotation-alignment * Update dependencies * Move handling fo undefined default value out of camelize functions
* [core] Rationalize naming for style-related codeJohn Firebaugh2016-06-021-0/+184