summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/vector_tile.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Add TileUpdateParameters and use itMikhail Pozdnyakov2020-04-221-2/+2
|
* [core] Introduce Tile::setMinimumUpdateInterval()Mikhail Pozdnyakov2020-04-201-0/+4
|
* [core] Fix performance-unnecessary-value-param errorsThiago Marcos P. Santos2020-03-231-7/+7
| | | | As reported by clang-tidy-8.
* [core] make forcing cache/network only more explicitKonstantin Käfer2017-10-121-4/+4
| | | | | | Previously, we used the existence of a `prior*` field in the Resource object as an indication for whether we should consult the cache or not. However, this is prone to error, since a failed cache lookup won't set any prior fields. Therefore, we manually set `priorExpires` to 0. This in turn triggered another bug where generated wrong expiration timestamps when the server response we got was expired (or expired between sending and receiving). This commit changes the flags so that we can now explicitly request CacheOnly/NetworkOnly (or All) loading methods, rather than the implicit Optional/Required naming scheme.
* [core] switch to vector-tile library for decoding Mapbox vector tilesKonstantin Käfer2017-06-211-4/+1
|
* [core] add benchmark for vector tile parsingKonstantin Käfer2017-06-211-298/+2
|
* [core] Refactor RenderSource updatesJohn Firebaugh2017-06-051-4/+1
| | | | | | | * Eliminate updateBatch in favor of diffing layers and detecting changes to properties upon which layout depends. * Replace RenderSource::{update,remove,invalidate,reload}Tiles with a single update method * Replace TilePyramid::{update,remove,invalidate,reload}Tiles with a single update method * Remove Style& dependency TODO from GeometryTile and TileParameters
* [core] use the last field in a property value, rather than the first fieldKonstantin Käfer2017-06-031-10/+17
|
* [core] interpret missing field in vector tile values as null instead of falseKonstantin Käfer2017-06-031-1/+1
|
* [tidy] modernize-use-autoBruno de Oliveira Abinader2017-05-121-5/+5
|
* [core] UpdateParameters ⇢ TileParametersJohn Firebaugh2017-05-041-2/+2
|
* [core] Move render-related sources out of style directory/namespaceJohn Firebaugh2017-05-031-2/+2
| | | | | | | | | | | | | | | | Moves the following to the renderer directory and out of the style namespace: * CascadeParameters * PropertyEvaluationParameters * UpdateParameters * PropertyEvaluator * DataDrivenPropertyEvaluator * CrossFadedPropertyEvaluator * PaintPropertyBinder * PaintProperyStatistics * PossiblyEvaluatedPropertyValue * TransitioningLight * EvaluatedLight
* [core] Tweak handling of annotation special case SpriteAtlasJohn Firebaugh2017-04-261-1/+5
| | | | | * 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] Remove unnecessary unordered_map includesJohn Firebaugh2017-03-211-1/+0
|
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-281-27/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {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] Use an actor model for tile worker concurrencyJohn Firebaugh2016-09-161-2/+1
|
* [core] #3980 - Switching Core GL instances of map to unordered_mapBrad Leege2016-09-141-3/+3
|
* [core] Ensure that TileWorker can retain tileData after layoutJohn Firebaugh2016-09-061-0/+4
|
* [core] Eliminate use of util::ptr in GeometryTile* interfacesJohn Firebaugh2016-09-061-12/+11
|
* [core] const consistencyJohn Firebaugh2016-08-261-2/+2
|
* upgrade to protozer 1.4.0 (#6158)Dane Springmeyer2016-08-251-11/+10
|
* [core] geometry@0.8.0 / geojsonvt@6.0.0 (#5514)Young Hahn2016-07-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | * [core] geometry.hpp 0.8.0 * geojsonvt @ 6.0.0 * Update platform deps, build scripts * Perf optimizations/cleanup * Rebase in geometry@080 * D.R.Y. etc * Ensure fill annotation geometries have closed rings. * Optimizations * Update to geojsonvt @ 6.1.0 for clean handoff between geojson parsing and geojsonvt * Apply close multi/poly geoms for line annotations as well
* [core] Avoid unnecessary work when a symbol annotation is updatedJohn Firebaugh2016-06-171-2/+2
| | | | In particular, if only the geometry changes, don't cascade and recalculate the style.
* [core] Eliminate duplicate Necessity typesJohn Firebaugh2016-06-131-1/+1
|
* [core] TileSource ⇢ TileLoaderJohn Firebaugh2016-06-131-3/+3
|
* [core] Simplify GeometryTile::setDataJohn Firebaugh2016-06-131-1/+4
|
* [core] *Tile ↔ *TileDataJohn Firebaugh2016-06-131-17/+17
| | | | Tile is now the main base class; RasterTile, VectorTile, etc are its subclasses. GeometryTileData and its subclasses form the piece that's passed to the worker.
* [core] Privatize vector_tile.hpp contentsJohn Firebaugh2016-06-131-0/+62
|
* [core] Merge vector_tile_data.{hpp,cpp} into vector_tile.{hpp,cpp}John Firebaugh2016-06-131-5/+20
|
* [core] *TileMonitor => *TileSourceKonstantin Käfer2016-06-101-24/+0
|
* [core] Rationalize naming for style-related codeJohn Firebaugh2016-06-021-1/+1
|
* [core] Store feature keys in same order as in vector tileMinh Nguyễn2016-06-011-5/+4
| | | | The keys in the vector tile may not be in alphabetical order. Building a vector of keys by looping over std::map<std::string, …> effectively sorts the keys by alphabetical order without sorting the associated values. This change inserts keys in the same order in which they appear in the vector tile.
* [core] Fix up v1 vector tile geometries with clipperJohn Firebaugh2016-05-311-1/+8
|
* [core] Normalize tile coordinates in VectorTile (#4966)John Firebaugh2016-05-111-5/+2
| | | Previously, vector tile coordinates were being normalized to util::EXTENT in each place they were used, and for annotation and GeoJSON sources that don't require normalization.
* [core] move TileData and dependents to new *TileID classesKonstantin Käfer2016-05-101-2/+4
|
* [core] consistently protect against invalid tag encoding in vector tileDane Springmeyer2016-05-041-0/+3
|
* [core] Use geometry.hpp feature typeJohn Firebaugh2016-05-031-1/+1
|
* [core] port to protozero (#4906)Dane Springmeyer2016-05-031-54/+64
|
* [core] implement queryRenderedFeaturesAnsis Brammanis2016-04-291-4/+27
|
* [core] Unify FileRequest and WorkRequestJohn Firebaugh2016-03-241-1/+1
|
* [core] Coordinate is now GeometryCoordinateBruno de Oliveira Abinader2016-03-011-1/+1
| | | | | Also introduced GeometryCoordinates (vector of GeometryCoordinate items), to better cope with GeometryCollection.
* [core] Remove ThreadContext::getFileSource; instead thread FileSource throughJohn Firebaugh2016-02-181-4/+4
|
* [core] Organize files that were in map folder betterJohn Firebaugh2016-02-111-0/+206
Fixes #996