summaryrefslogtreecommitdiff
path: root/src/mbgl/style/style.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Tweak handling of annotation special case SpriteAtlasJohn Firebaugh2017-04-261-6/+0
| | | | | * 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-251-19/+70
|
* [core] Move Sprite parsing to thread poolKonstantin Käfer2017-04-241-3/+4
|
* [core] account for property functions in query rendered featuresIvo van Dongen2017-04-191-12/+0
|
* [core] Invalidate cached tiles of disabled sources on relayoutJohn Firebaugh2017-04-071-0/+2
|
* [core] De-mutex GlyphAtlas and SpriteAtlasChris Loer2017-04-041-8/+0
| | | | | | | | | | | | - 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
* Merge branch 'release-ios-v3.5.0-android-v5.0.0'John Firebaugh2017-03-211-3/+1
|\
| * [core] fixes #8433: don't skip style recalculations for fade-from-zero ↵Justin R. Miller2017-03-161-3/+1
| | | | | | | | transitions (#8440)
| * [core] rename query options for query rendered featuresIvo van Dongen2017-03-101-1/+1
| |
* | [core] s/onSourceDidChange/onSourceChanged/ + source refBruno de Oliveira Abinader2017-03-211-2/+2
| |
* | [core] Pass std::exception_ptr in style::Observer::onStyleErrorBruno de Oliveira Abinader2017-03-171-2/+4
| |
* | [core] rename query options for query rendered featuresIvo van Dongen2017-03-091-1/+1
|/
* [core] clear source when removed from styleIvo van Dongen2017-03-061-0/+1
|
* [core] Add support for queryRenderedFeatures filterAsheem Mamoowala2017-03-041-5/+7
|
* [core, ios, macos] Return null when removing nonexistent sourceJesse Bounds2017-02-231-1/+1
|
* [core] Return null when removing nonexistent layerEimantas Vaiciunas2017-02-231-1/+1
| | | | | In case of exception, silently ignore removal of nonexistent layer and return nullptr
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-021-0/+5
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-3/+3
|
* [core] Fix ambiguous condition on the sort criteriaThiago Marcos P. Santos2017-01-161-10/+10
| | | | | | | | | The previous sorting criteria would sometimes allow C > B, B > A but A > C, making the internal std::sort code sometimes point to an invalid reference. Fixes #7737
* [core] guard against duplicate layer idsIvo van Dongen2016-12-121-0/+9
|
* [core] Implement circle-stroke propertiesJohn Firebaugh2016-12-091-0/+1
| | | | Also includes stubs for fill-extrusion layer, because most of the code was auto-generated.
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-masterMinh Nguyễn2016-12-031-0/+27
|\
| * [core] guard against duplicate source id’sIvo van Dongen2016-12-021-0/+10
| |
| * [core, ios, macos] Added layers and sources properties to MGLStyleMinh Nguyễn2016-11-281-0/+27
| | | | | | | | | | | | | | | | Added new layers and sources properties to MGLStyle that contain all the style’s layers and sources, respectively. These properties are KVC-compliant with all the mutable to-many methods. Layers are ordered from topmost to bottommost, for consistency with Cocoa APIs where front/first means top and back/last means bottom. Also added storage for mbgl::style::Source in MGLSource proper for wrapping AnnotationSource. Until the style finishes loading, its name property is set to nil. Fixes #6003.
| * [core] Return source and layer ownership (#7014)Jesse Bounds2016-11-131-3/+23
| | | | | | | | | | | | | | | | When a source or layer is removed transfer ownership back to the caller so it can (optionally) take it. Preserve the behavior that removing a CustomLayer triggers deinitialization. Deinitialize all custom layers when a style is destroyed in case those layers are not explicitly removed.
| * [core] symbol layer - recalculate style on icon/text size changesIvo van Dongen2016-11-131-2/+10
| |
| * [core] Separate pathway for notifying workers of new images/glyphsJohn Firebaugh2016-11-131-2/+9
| |
* | [core] guard against duplicate source id’sIvo van Dongen2016-11-301-0/+10
| |
* | [build] move logging to utilKonstantin Käfer2016-11-221-1/+1
| |
* | [core] Sort symbol render tiles prior to renderingBruno de Oliveira Abinader2016-11-181-4/+28
| |
* | [core] Convert style properties to a tuple-based approachJohn Firebaugh2016-11-171-7/+6
| | | | | | | | | | | | | | | | 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] Return source and layer ownership (#7014)Jesse Bounds2016-11-111-3/+23
| | | | | | | | | | | | | | | | When a source or layer is removed transfer ownership back to the caller so it can (optionally) take it. Preserve the behavior that removing a CustomLayer triggers deinitialization. Deinitialize all custom layers when a style is destroyed in case those layers are not explicitly removed.
* | [core] symbol layer - recalculate style on icon/text size changesIvo van Dongen2016-11-111-2/+10
| |
* | [core] don't assign clip IDs to tiles that aren't renderedKonstantin Käfer2016-11-081-0/+1
| |
* | [core] Separate pathway for notifying workers of new images/glyphsJohn Firebaugh2016-11-071-2/+9
| |
* | [core] convert LineAtlas to use managed texture handlingKonstantin Käfer2016-11-011-1/+1
| |
* | [core] convert GlyphAtlas to use managed texture handlingKonstantin Käfer2016-11-011-1/+1
| |
* | [core] convert SpriteAtlas to use managed texture handlingKonstantin Käfer2016-11-011-1/+1
| |
* | [core] remove tiles for disabled sourcesKonstantin Käfer2016-10-271-0/+9
| | | | | | | | When no layer of a source is visible anymore, we are now evicting tiles that are still stored in that source and move them to the cache.
* | [core] don't load tiles from sources that aren't usedKonstantin Käfer2016-10-271-3/+6
|/
* [core] fixup formattingIvo van Dongen2016-10-211-2/+2
|
* [core] reload geojson source on url changeIvo van Dongen2016-10-201-0/+7
|
* [core] Pre-filter sources based on the layers they containThiago Marcos P. Santos2016-10-051-0/+14
|
* [core] Removed map attribution APIMinh Nguyễn2016-09-261-24/+0
| | | | Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
* [core] Source-driven attributionMinh Nguyễn2016-09-261-0/+28
| | | | | | Implemented observer callbacks so the style knows when the source’s attribution changes and the map knows when the style’s attribution changes. Also implemented a getter for a tile source’s attribution. Fixes #2723.
* [core] Trigger Update::RecalculateStyle when toggling layer visibilityBruno de Oliveira Abinader2016-09-261-1/+1
|
* [core] do not render layers that are outside their zoom rangeKonstantin Käfer2016-09-201-4/+19
| | | | So far, we didn't properly disable layers that are outside the zoom range. This means that we rendered layers that should not have been rendered, albeit we didn't make any attempt to load tiles for those layers. However, when zooming in/out, existing tiles might already have been loaded in the source which continued to be rendered. In most cases they weren't actually visible because either the matrices weren't updated, or the clip IDs weren't set so that they would be "rendered" off-screen and clipped completely. In any case, we did way too much work.
* [core] MapChangeDidFinishLoadingStyle - Ensure style is loaded (#6392)Ivo van Dongen2016-09-201-3/+2
|
* [core] add MapChangeDidFinishLoadingStyle signal (#6371)Ivo van Dongen2016-09-201-0/+2
|
* [core] Merge GlyphStore and GlyphAtlasJohn Firebaugh2016-09-191-6/+5
|