summaryrefslogtreecommitdiff
path: root/src/mbgl/layout
Commit message (Collapse)AuthorAgeFilesLines
* [core] improve legibility of labels that follow linesAnsis Brammanis2017-07-116-69/+361
| | | | | | | | | | port https://github.com/mapbox/mapbox-gl-js/pull/4781 This improves legibility of labels that follow lines in pitched views. The previous approach used the limited information in the shader to calculate put the glyph in approximatelyright place. The new approach does this more accurately by doing it on the cpu where we have access to the entire line geometry.
* [core] Pass pitch-scaling vertex attributes and uniforms to shaders.Chris Loer2017-07-112-12/+14
|
* [core] make{Glyph,Image}Atlas only once for any number of symbol layersJohn Firebaugh2017-07-061-7/+0
|
* [core] retain GeometryTileLayer in SymbolLayoutKonstantin Käfer2017-06-212-8/+11
| | | | We're storing GeometryTileFeature objects in SymbolLayout, but they may reference data in GeometryTileLayer, which could go away if we don't retain it.
* [core] Per-tile glyph/icon atlasesJohn Firebaugh2017-06-134-51/+47
|
* [core] Per-bucket icon atlasesJohn Firebaugh2017-06-132-11/+16
|
* [core] Per-bucket glyph atlasesJohn Firebaugh2017-06-133-12/+16
|
* [core] Simplify and fix sprite atlas coordinate calculationsJohn Firebaugh2017-05-232-1/+3
| | | | | | | | * Always return image metrics exclusive of padding * Work with integer coordinates whenever possible * Eliminate redundant SpriteAtlasElement members * Fix asymmetric re-padding in getIconQuad when pixelRatio != 1 * Add explanatory comments
* [core] Disable letter-spacing for Arabic labels (issue #9057)Chris Loer2017-05-221-1/+1
|
* [core] Don't unnecessarily request glyphs for verticalized punctuation.Chris Loer2017-05-181-2/+7
| | | | Issue #8982.
* [core] Unify {Paint,Layout,Light}PropertiesJohn Firebaugh2017-05-152-3/+3
|
* [core] Move renderer/* files into sub-folders (#8983)Asheem Mamoowala2017-05-121-2/+2
| | | Move renderer/* files into sub-folders
* [core] Immutable ImplsJohn Firebaugh2017-05-121-3/+3
|
* [core] Tweak handling of annotation special case SpriteAtlasJohn Firebaugh2017-04-262-22/+14
| | | | | * Simplify SymbolLayout; it never needs to care about more than one SpriteAtlas. * Move the reference from SymbolLayer::Impl to SymbolBucket. This is a prerequisite for making layer Impls immutable.
* [core] split off render layersIvo van Dongen2017-04-252-13/+13
|
* [core] Safeguard PositionedIcon usage via optionalBruno de Oliveira Abinader2017-04-144-14/+9
|
* [core] Add DDS support for {text,icon}-size (#8593)Anand Thakker2017-04-064-20/+49
| | | | | | | | | | | | | | | | | | | | | | | | * 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] De-mutex GlyphAtlas and SpriteAtlasChris Loer2017-04-042-76/+61
| | | | | | | | | | | | - Expose glyph and icon information to workers via message interface. - Glyph/SpriteAtlas track which tiles have outstanding requests and send messages to them when glyphs/icons become available. - Remove obsolete "updateSymbolDependentTiles" pathway - Symbol preparation for a tile now depends on all glyphs becoming available before it can start. - Start tracking individual icons needed for a tile, although we don't do anything with the information yet. - Introduce typedef for GlyphID
* [core] Add DDS support for icon-imageJohn Firebaugh2017-03-311-16/+17
|
* [core] Pass fully-evaluated layout properties to SymbolInstance and quad methodsJohn Firebaugh2017-03-313-3/+3
|
* [core] Introduce a fully-evaluated tuple type for layout propertiesJohn Firebaugh2017-03-313-3/+3
|
* [core] implement dds for text-offsetMolly Lloyd2017-03-281-1/+1
|
* [core] Prefer std::map to std::unordered_map for smaller binary sizeJohn Firebaugh2017-03-211-1/+1
|
* [core] Fix whitespace; no need for explicit on multi-parameter constructorsJohn Firebaugh2017-03-023-15/+34
|
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-285-28/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {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] There's only ever one icon quadJohn Firebaugh2017-02-284-76/+83
|
* [core] Eliminate Shaping::textJohn Firebaugh2017-02-281-1/+1
| | | | This was already accessible via SymbolFeature::text.
* [core] Release compareText after symbol preparationJohn Firebaugh2017-02-281-0/+1
| | | | It's a temporary structure and not needed for placement.
* [core] Replace three maps/mutexes in GlyphAtlas with a single map and mutexJohn Firebaugh2017-02-271-1/+1
|
* [core] Enable property functions for text-{field,transform} (#7944)Anand Thakker2017-02-171-6/+22
|
* [core] Eliminate SpritePatternModeJohn Firebaugh2017-02-141-1/+1
|
* Upright CJK characters in vertically-oriented labels (#7114)Minh Nguyễn2017-02-104-42/+88
| | | | | CJK characters and adjacent punctuation now remain upright in vertically oriented labels that have line placement. Fixes #1682.
* [core] default value support in categorical function conversionIvo van Dongen2017-02-021-2/+2
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-023-42/+70
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-1/+1
|
* [core] Clean up merge_lines.cpp and add bounds checkingJohn Firebaugh2017-01-181-37/+27
|
* [core] Fix flickering caused by regression in #7586John Firebaugh2017-01-102-5/+5
| | | | 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-5/+7
|
* [core] Replace magic number with constant-based calculationJohn Firebaugh2016-12-211-2/+2
|
* [core] Polylabel-based "pole of inaccessibility" symbol placementJohn Firebaugh2016-12-211-5/+15
|
* [core] Fix symbol rendering for multipointsJohn Firebaugh2016-12-203-63/+75
| | | | Ports https://github.com/mapbox/mapbox-gl-js/pull/3763 and https://github.com/mapbox/mapbox-gl-js/pull/3806.
* [core] const correctnessJohn Firebaugh2016-12-202-3/+3
|
* [core] Full support for line breaking bidirectional text using ICU bidi ↵Chris Loer2016-11-302-9/+3
| | | | | | | functionality. - Trim whitespace from labels before determining their max-width for alignment. - Fix crash on labels that contain lines with only a single character of whitespace.
* [build] move logging to utilKonstantin Käfer2016-11-221-2/+2
|
* [core] Cleanup symbol clippingBruno de Oliveira Abinader2016-11-181-15/+16
|
* [core] Convert style properties to a tuple-based approachJohn Firebaugh2016-11-174-58/+55
| | | | | | | | 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] Add minimal line breaking support for RTL text.Chris Loer2016-11-172-1/+6
|
* [core] Add ICU package for Bidirectional text support and arabic text shaping.Chris Loer2016-11-172-1/+6
| | | | | Apply bidi and shaping in symbol_layout. Add utility functions for converting to and from UTF-16.
* [core] Use UTF-16 instead of UTF-32 for label features to avoid extra ↵Chris Loer2016-11-174-8/+8
| | | | | | | conversions and reduce in-memory size. Continue to use uint32 as glyph ID to maintain Glyph PBF, even though we're only using 16 bits of that uint32. Use std::codecvt instead of boost::unicode_iterator for UTF8->UTF16 conversions.
* [core] Use indexed rendering for collision boxesJohn Firebaugh2016-11-151-8/+22
|