summaryrefslogtreecommitdiff
path: root/mapbox-gl-js
Commit message (Collapse)AuthorAgeFilesLines
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-281-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {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] Render a circle if either the color or stroke color are visibleJesse Bounds2017-02-171-0/+0
| | | | | | | | | | | | | This updates the circle paint check to pass if the circle stroke is visible but: * The circle color is clear * The circle is transparent * The circle has a radius of 0 Previously, a transparent circle or a circle with a radius of 0 would cause the layer to be passed up even if the circle stroke color had a non zero alpha.
* [core] Enable property functions for text-{field,transform} (#7944)Anand Thakker2017-02-171-0/+0
|
* Refactor: use conversion system to convert MGLStyleFunction to mbgl core ↵Anand Thakker2017-02-151-0/+0
| | | | | types (#8026) This leverages the work already happening in `mbgl::style::conversion` to convert style functions from style-spec definitions into `mbgl::style::{Camera,Source,Composite}Function`s. In particular, this allows the conversions system to handle the differing typing requirements based on whether the output type of the style function is interpolatable or non-interpolatable.
* [core] Make Image saferJohn Firebaugh2017-02-141-0/+0
| | | | | | Provide Image::copy, which handles copying rectangles from a source to a destination, with thorough bounds checking. Also fixes an indexing error in SpriteAtlas, where the top row of pixels in a wrapped image was copied from the wrong source row.
* Upright CJK characters in vertically-oriented labels (#7114)Minh Nguyễn2017-02-101-0/+0
| | | | | CJK characters and adjacent punctuation now remain upright in vertically oriented labels that have line placement. Fixes #1682.
* [core] Introduce dedicated filter types for $type and $id special cases (#7971)John Firebaugh2017-02-091-0/+0
| | | | | | | | * [core] Introduce dedicated filter types for $type and $id special cases * [ios, macos] Special-case $id, $type in predicates Also support $id ≟ nil.
* [core] Update gl-js; fix $id filters with GeoJSON sourceJohn Firebaugh2017-02-081-0/+0
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-021-0/+0
|
* [build] Use style-spec from gl-js monorepoJohn Firebaugh2017-02-011-0/+0
|
* [core] fix rendering 180° line joinsKonstantin Käfer2017-01-231-0/+0
|
* [build] Use test-suite integration tests from mapbox-gl-jsJohn Firebaugh2017-01-091-0/+0
|
* [core] Update gl-js for shader changeJohn Firebaugh2016-12-231-0/+0
|
* [build] Use a submodule for mapbox-gl-js rather than an npm dependencyJohn Firebaugh2016-12-221-0/+0