summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Cherry picks to release branch (#9230)Tobrun2017-06-091-0/+23
| | | | | | | | | | | | * [ios][macos] test remove source in use * [android] test remove source in use * [core] check source usage before remove * [core] ensure layer::accept works with non-void return values on gcc * [android] - remove upgrade runtime exceptions (#9191)
* fix #8300 flyTo for close pointsAnsis Brammanis2017-06-061-10/+7
| | | | | | | | | | | | | | | The isClose threshold is switched from 0.000001 pixels to 1 pixel. As a backup, it checks whether r0 and r1 are finite. It might be possible to have just the threshold check or just the finiteness check, but I don't see the harm in having both. std::abs(w0 - w1) < 0.000001 is removed because it doesn't look like it's needed. All calculations should run fine even if w0 === w1. Finally, the point interpolation is tweaked so that at the end of the flying (when k === 1) it ends up at the exact end point. I didn't see any bugs related to this, but it seems like a good thing to have explicitly.
* [core] Make TransformState LatLngBounds optionalBruno de Oliveira Abinader2017-06-015-15/+22
|
* Cherry-pick arabic text to release branch v3.6.0 (#9071)Fabian Guerra Soto2017-05-237-8/+92
| | | | | | | * [core] Throttle tiles to redo symbol placement at most once every 300ms. Fixes issue #8435 and prepares for pitch-scaling changes in issue #8967. * [core] Disable letter-spacing for Arabic labels (issue #9057)
* [core] add error for non-virtual destructor deletes + add virtual dtorsKonstantin Käfer2017-05-193-3/+7
|
* [core] Make destructor virtual to avoid object splicing during destructionKonstantin Käfer2017-05-191-0/+1
|
* [core] When a layer is added, reload its source's tilesJohn Firebaugh2017-05-111-15/+16
|
* [core, android] Factor JSON string conversionsJohn Firebaugh2017-05-087-98/+66
| | | | | | | | | | | This adds a `convertJSON` template, to be used like: Error error optional<Foo> foo = convertJSON<Foo>(string, error); Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`. While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
* [core] delegate light changes to render lightIvo van Dongen2017-05-0810-59/+138
|
* [core] generated accessor methods on lightIvo van Dongen2017-05-085-3/+209
|
* [core] render lightIvo van Dongen2017-05-086-12/+72
|
* [core] Reuse fill-extrusion textures between frames (#8896)Lauren Budorick2017-05-084-34/+43
|
* [core] Reset observers of removed Sources and LayersJohn Firebaugh2017-05-053-2/+4
| | | | This ensures that the observer is not an invalid reference if the removed Source/Layer is retained, but the Style is deallocated.
* [core] Remove unused declarationJohn Firebaugh2017-05-051-1/+0
|
* [core] Reduce use of RecalculateStyleJohn Firebaugh2017-05-055-53/+48
| | | | | | | * Don't use it to track zoom changes. Instead, Style::update can use the zoom history to check for a change in zoom from the previous frame. * Don't use it to track active property transitions. Style already knows which layers/light have an active transition, and can re-evaluate only those that do. This leaves layer property changes as the only use of RecalculateStyle.
* [core] Throw exceptions by valueKonstantin Käfer2017-05-051-2/+2
|
* [core] Omnibus Style::update methodJohn Firebaugh2017-05-047-101/+100
| | | | Combine Style::cascade, recalculate, relayout, and updateTiles into a single method. This allows multiple loops over sources and layers to be consolidated and prepares for additional Style-Map decoupling: rather than tracking pending updates via a set of Update flags held by the Map and passed to the Style, the Style can use its own data to determine what to update.
* [core] UpdateParameters ⇢ TileParametersJohn Firebaugh2017-05-0427-60/+60
|
* [core] Factor timePoint initializationJohn Firebaugh2017-05-032-3/+5
|
* [core] Calculate hasPendingTransitions functionally rather than statefullyJohn Firebaugh2017-05-0319-23/+58
|
* [core] Move render-related sources out of style directory/namespaceJohn Firebaugh2017-05-0360-188/+137
| | | | | | | | | | | | | | | | 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] No need to Update::Classes after removing a layerJohn Firebaugh2017-05-031-1/+1
|
* [core] No need to manually set Update::Classes flag after annotation updateJohn Firebaugh2017-05-031-1/+0
| | | | Since the advent of the runtime styling APIs, the APIs used by AnnotationManager::updateStyle will automatically set this flag as needed.
* [core] Remove forced style cascadeJohn Firebaugh2017-05-031-3/+0
| | | | This should happen automatically during rendering. After removing, I can no longer replicate the original issue (#1889).
* Revert "[node] Temporary: exit(0) on exception in Painter::render"John Firebaugh2017-05-021-10/+4
| | | | This reverts commit f0d4411871d43012dc9e24a376ebc70ec6ca9224.
* [core] Make Map.addImage tests pass (#8843)Asheem Mamoowala2017-05-021-12/+0
| | | | | Fix Node tests suite implementation to parse pixelRatio from style json Premultiply images in the node binding before sending to mbgl core
* [core] Refactor Source::*Impls into RenderSources and TilePyramidJohn Firebaugh2017-05-0236-551/+1245
|
* [core] Load source TileJSON immediatelyJohn Firebaugh2017-05-021-3/+2
| | | | | | | This reverses #3095. Rationale: * We're now exposing source attributes as a public API. Making those attributes unavailable at certain times complicates that API. * We're preparing to split RenderSource out of Source. Removing this removes a point of coupling between the two.
* [all] Push querySourceFeatures back out to MapJohn Firebaugh2017-05-0210-18/+20
| | | | Once Source and RendererSource are split, Source will no longer have access to tiles.
* [core] Suppress "stencil mask overflow" warningThiago Marcos P. Santos2017-05-021-1/+6
| | | | | When it starts, we get a log warning for every frame, which is expensive. Now we get only one warning.
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-2752-235/+1346
|
* [core] Tweak handling of annotation special case SpriteAtlasJohn Firebaugh2017-04-2619-98/+78
| | | | | * 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-2587-1066/+1624
|
* [all] Rationalize style::ImageJohn Firebaugh2017-04-249-123/+107
| | | | | | | A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
* [core] fix an issue with lines that have duplicate points (#8808)Vladimir Agafonkin2017-04-241-4/+13
| | | An equivalent of https://github.com/mapbox/mapbox-gl-js/pull/4634.
* [core] Move Sprite parsing to thread poolKonstantin Käfer2017-04-2410-54/+109
|
* [core] More complete fix for composite function interpolation edge caseJohn Firebaugh2017-04-201-1/+3
| | | | b5b4549 / #8613 handled the edge case for layout properties, but not paint properties. Move the check for a degenerate range to interpolationFactor in order to handle both correctly.
* [core] remove unused leftover filesKonstantin Käfer2017-04-203-52/+1
|
* [core] Render parent raster tiles when ideal tile can't be loadedKonstantin Käfer2017-04-204-35/+47
|
* [core] account for property functions in query rendered featuresIvo van Dongen2017-04-1920-79/+194
|
* [core] make Tile::getBucket constIvo van Dongen2017-04-195-5/+5
|
* [core] property function statistics collectionIvo van Dongen2017-04-192-1/+44
|
* [core] Remove unnecessary Source::Impl::enabled assignmentJohn Firebaugh2017-04-181-3/+1
| | | | This flag will get set automatically by Style::recalculate.
* [core] Remove non-Map-dependent projection methods from MapJohn Firebaugh2017-04-181-13/+0
|
* [core] Combine two GlyphID-keyed maps in GlyphAtlas::EntryJohn Firebaugh2017-04-142-54/+39
|
* [core] Replace GlyphRangeSet in onGlyphsAvailable with optionals in the mapJohn Firebaugh2017-04-149-75/+42
| | | | GlyphRangeSet isn't keyed by FontStack, so using it to indicate that a particular range was loaded could have produced false positives.
* [core] Ignore shortest path in Map::pixelForLatLngBruno de Oliveira Abinader2017-04-142-8/+8
|
* [core] Safeguard PositionedIcon usage via optionalBruno de Oliveira Abinader2017-04-149-47/+61
|
* [core] Tighten geo.hpp ctorsBruno de Oliveira Abinader2017-04-143-10/+10
|
* [core] TransitionOptions s/operator bool/isDefined/Bruno de Oliveira Abinader2017-04-141-1/+1
|