summaryrefslogtreecommitdiff
path: root/src/mbgl/map
Commit message (Collapse)AuthorAgeFilesLines
* fix #8300 flyTo for close points (#9199)Ansis 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] Don't share TransformState referenceJohn Firebaugh2017-06-051-2/+2
|
* [core] Split RenderStyle from StyleJohn Firebaugh2017-06-051-18/+43
|
* [core] Make TransformState LatLngBounds optionalBruno de Oliveira Abinader2017-06-015-15/+22
|
* Revert "[core] Factor timePoint initialization"Bruno de Oliveira Abinader2017-05-301-3/+1
| | | | This reverts commit 3790caafa3c98706c5cf0618c8aec592b2780bba.
* [core] Don't need unique_ptr for AnnotationManagerJohn Firebaugh2017-05-261-12/+10
|
* [core] Don't use a separate SpriteAtlas for annotation imagesJohn Firebaugh2017-05-261-4/+4
| | | | Instead, just add them to the Style as needed. Includes changes from #8905 and takes care to avoid regressing #3817.
* [core] Auto-growable SpriteAtlas using shelf-packJohn Firebaugh2017-05-261-1/+1
|
* [core, node, darwin, android, qt] Make image ID part of ImageJohn Firebaugh2017-05-161-4/+4
| | | | More like Source and Layer.
* [core, node, darwin, qt] Remove support for paint classesJohn Firebaugh2017-05-152-31/+0
|
* [core] Split style image collection from SpriteAtlasIvo van Dongen2017-05-121-5/+3
|
* [core] Immutable ImplsJohn Firebaugh2017-05-122-3/+2
|
* [tidy] modernize-pass-by-valueBruno de Oliveira Abinader2017-05-121-3/+4
|
* [core] render lightIvo van Dongen2017-05-081-2/+2
|
* [core] Reduce use of RecalculateStyleJohn Firebaugh2017-05-054-48/+40
| | | | | | | * 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] Omnibus Style::update methodJohn Firebaugh2017-05-042-25/+13
| | | | 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-041-9/+9
|
* [core] Factor timePoint initializationJohn Firebaugh2017-05-031-1/+3
|
* [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] 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] Refactor Source::*Impls into RenderSources and TilePyramidJohn Firebaugh2017-05-021-3/+4
|
* [all] Push querySourceFeatures back out to MapJohn Firebaugh2017-05-021-1/+10
| | | | Once Source and RendererSource are split, Source will no longer have access to tiles.
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-273-4/+24
|
* [all] Rationalize style::ImageJohn Firebaugh2017-04-241-12/+12
| | | | | | | A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
* [core] Move Sprite parsing to thread poolKonstantin Käfer2017-04-241-2/+2
|
* [core] Remove non-Map-dependent projection methods from MapJohn Firebaugh2017-04-181-13/+0
|
* [core] Ignore shortest path in Map::pixelForLatLngBruno de Oliveira Abinader2017-04-142-8/+8
|
* [core] Tighten geo.hpp ctorsBruno de Oliveira Abinader2017-04-142-8/+8
|
* [all] Remove redundant scale-related camera methodsJohn Firebaugh2017-04-135-80/+13
| | | | We don't need to have two different measurement systems for map zoom.
* [core] Revert use of optional<EdgeInsets>, because EdgeInsets has a natural ↵John Firebaugh2017-04-113-58/+53
| | | | "empty" state
* [core] Added {set,get}{Min,Max}PitchBruno de Oliveira Abinader2017-04-115-2/+61
|
* [core] Added Map::{get,set}LatLngBoundsBruno de Oliveira Abinader2017-04-115-2/+33
|
* [core] Move {Map,Transform}::{get,set}{Min,Max}Zoom to bounds pragmaBruno de Oliveira Abinader2017-04-115-5/+16
|
* [core] Updated Size::isEmpty and TransformState::valid checksBruno de Oliveira Abinader2017-04-104-7/+16
|
* [all] Make LatLng coordinates read-onlyJohn Firebaugh2017-04-062-3/+5
|
* [core] Tighten LatLng and other geo.hpp classesJohn Firebaugh2017-04-062-24/+15
| | | | | * Remove LatLng::null and enforce invariants * Remove unnecessary operator bool()
* [core] Privatize OpenGL/Context headersKonstantin Käfer2017-03-282-0/+36
|
* [core] Move map/change.hpp to public include directoryJohn Firebaugh2017-03-281-26/+0
|
* [core] Added Map::latLngBoundsForCameraBruno de Oliveira Abinader2017-03-242-0/+13
|
* [core] Refactor OpenGL extension loading mechanismKonstantin Käfer2017-03-231-2/+2
| | | | Previously, we initialized global variables that held pointers to the extension functions. While this seemed to work, the spec doesn't guarantee that the function pointers are identical for different OpenGL contexts. Therefore, we are now making them a member variable of the Context object.
* [core] Move OpenGL extension initialization to BackendKonstantin Käfer2017-03-231-2/+9
|
* [core] Ensure that a BackendScope exists when doing GL callsKonstantin Käfer2017-03-233-5/+19
|
* [core] cache binary shaders on AndroidKonstantin Käfer2017-03-221-5/+11
|
* [core] s/onSourceDidChange/onSourceChanged/ + source refBruno de Oliveira Abinader2017-03-211-3/+3
|
* [core] Pass std::exception_ptr in MapObserver::onDidFailLoadingMapBruno de Oliveira Abinader2017-03-171-2/+2
|
* [core] Pass std::exception_ptr in style::Observer::onStyleErrorBruno de Oliveira Abinader2017-03-171-5/+9
|
* [core] Replace MapChange enum with MapObserverBruno de Oliveira Abinader2017-03-154-39/+23
|