summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/symbol_layer_properties.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Port symbol-z-order symbol layout style-spec property to Nativeupstream/sort-by-yryanhamley2018-09-071-0/+6
|
* [core, ios, macos, android] Add data-driven-styling support for `text-font`John Firebaugh2018-01-101-1/+1
|
* [core][ios][macos][android]DDS-ify `text-letter-spacing` and `text-max-width`Asheem Mamoowala2017-08-301-2/+2
|
* Implement icon-anchor propertyLauren Budorick2017-08-281-2/+8
|
* [core][android][macos][ios] Implement property functions for line-join, ↵Lauren Budorick2017-07-261-2/+2
| | | | text-justify, text-anchor (#9583)
* [core] Update shaders.Chris Loer2017-07-121-0/+6
| | | | | Implements 'icon-pitch-alignment' (issue #9345) Fixes issue #9456 (map-aligned point label regression)
* [core] add uniforms to DataDrivenPaintPropertysKonstantin Käfer2017-06-131-10/+11
|
* [core] Unify {Paint,Layout,Light}PropertiesJohn Firebaugh2017-05-151-2/+3
|
* [core] Add DDS support for {text,icon}-size (#8593)Anand Thakker2017-04-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | * 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-1/+1
|
* [core] Add DDS support for text-rotateJohn Firebaugh2017-03-311-1/+1
|
* [core] implement dds for text-offsetMolly Lloyd2017-03-281-1/+1
|
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-281-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {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-2/+2
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-021-2/+3
|
* [core] Get rid of user-specified refsJohn Firebaugh2017-01-041-0/+34
|
* [core] Convert style properties to a tuple-based approachJohn Firebaugh2016-11-171-62/+244
| | | | | | | | 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.
* Better handling for undefined icon|text-rotation-alignment (#6253)Young Hahn2016-09-211-3/+3
| | | | | | * [core, ios, android] Use `auto` value for properties with calculated defaults * Fix render tests
* [core] Prefer color aliases for default property valuesBruno de Oliveira Abinader2016-07-131-4/+4
|
* [core, node] Implement bindings for addLayerJohn Firebaugh2016-06-241-3/+0
|
* [core] Include what you useJohn Firebaugh2016-06-241-0/+1
|
* Support for icon-text-fit, icon-text-fit-padding (#5334)Young Hahn2016-06-151-0/+2
| | | | | | | | | | * 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
* Color class (#5361)Young Hahn2016-06-151-4/+4
| | | | | | * Color class * Switch to list initialization
* text-pitch-alignment (#5288)Young Hahn2016-06-101-2/+3
| | | | | | | | | | | | * 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/+76