summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Export default transition delay in Map public APIBruno de Oliveira Abinader2015-07-212-2/+11
| | | | | | | Added a setter/getter for default transition delay, in the same fashion as the default transition duration. Spin-off from #1888. Fixes #302.
* Revert "Revert "split renderSync and transition nudging to allow client view ↵Bruno de Oliveira Abinader2015-07-201-2/+6
| | | | | | syncing"" This reverts commit 263f9fad308873077b9287dd8aeab089fc415b10.
* s/AppliedClassProperties/AppliedClassPropertyValues/Bruno de Oliveira Abinader2015-07-204-18/+18
| | | | | This class stores a list of property values which belongs to the same property.
* Cleaned up FrameHistoryBruno de Oliveira Abinader2015-07-201-3/+3
|
* Revert "split renderSync and transition nudging to allow client view syncing"Bruno de Oliveira Abinader2015-07-201-6/+2
| | | | | | This reverts commit b8388168dd130c67c77254565cdb576df7905915. It seems 'nudgeTransitions()' is no longer necessary as #1548 has fixed the update issues.
* Check for pending animations or transitions when scheduling another render passBruno de Oliveira Abinader2015-07-201-1/+1
| | | | | | In continuous mode, we need to check if there are any pending animations or transitions so we can properly tell the client application that another render pass is required.
* Use the observer pattern for GlyphPBF loadingThiago Marcos P. Santos2015-07-174-139/+135
| | | | | | | This will make the code a lot more clear and it will also move how parsing is initiated to the GlyphPBF class, to be initiated after the request, like we do for other resources.
* Add docs to WorkQueue and GlyphStoreThiago Marcos P. Santos2015-07-173-3/+21
|
* Only print Sprite warnings if we have Sprites setThiago Marcos P. Santos2015-07-161-1/+3
| | | | | If we don't set Sprites at all or the Sprites were not loaded yet, the warnings can be misleading.
* Remove hacks because of Glyph requests could not be canceledThiago Marcos P. Santos2015-07-161-6/+2
|
* Make Glyph requests from the Map ThreadThiago Marcos P. Santos2015-07-164-76/+68
| | | | | | | | | | | Now the requests are bound to the Map Thread loop and we can cancel it quickly when shutting down or changing style. Previously requests were made by the workers and we would have to wait them to finish because workers are destroyed before the GlyphStore. This was giving the impression that the application was frozen (in fact it was, momentarily).
* Keep updating until all the tiles are State::parsedThiago Marcos P. Santos2015-07-165-19/+2
| | | | | | | | | This is needed because of a race that can occur now that we requests Glyphs from the Map Thread: The glyph might arrive at the moment a tile is being parsed and they won't be notified again of any new data, remaining forever at the partial state.
* Introduce the WorkQueueThiago Marcos P. Santos2015-07-162-0/+73
| | | | | | | | | The WorkQueue allow other threads to submit tasks to be executed in the thread that the WorkQueue lives on. The WorkQueue will cancel all the pending tasks when it gets destructed, to make sure the tasks won't get called with invalid references.
* Add an interface for invoking cancellable tasks on the RunLoopThiago Marcos P. Santos2015-07-152-5/+28
| | | | | This is interface is going to be used the WorkQueue in the following patches.
* Merge branch 'release-v0.5.0'Minh Nguyễn2015-07-141-2/+6
|\
| * fixes #1858: proper shape placement in style layersJustin R. Miller2015-07-091-1/+1
| |
| * split renderSync and transition nudging to allow client view syncingJustin R. Miller2015-07-081-2/+6
| |
* | Force style cascade in MapContext::loadStyleJSONBruno de Oliveira Abinader2015-07-141-0/+3
| | | | | | | | Fixes #1889.
* | Unify default transition values in MapDataBruno de Oliveira Abinader2015-07-1413-57/+80
| | | | | | | | | | | | | | | | | | | | | | Relevant changes: - Added 'defaultFadeDuration' and 'defaultTransitionDelay' to MapData; - Painter & StyleParser now receives a reference to MapData; - As previously seen on the code: 300ms is the default fade duration and 0ms is the default transition duration; - We no longer pass the current time point to Style, since it now uses MapData.animationTime, which gets updated in MapContext::update(). - Updated StyleParser check to use a mock MapData;
* | Pass {Duration,TimePoint} by const ref if possibleBruno de Oliveira Abinader2015-07-1418-94/+95
| |
* | s/properties/propertyValues/Bruno de Oliveira Abinader2015-07-143-12/+11
| | | | | | | | | | This list stores different values for the same property, but the property itself remains the same.
* | Unify time point for Mapcontext::updateBruno de Oliveira Abinader2015-07-144-32/+25
| | | | | | | | | | | | | | | | - Let style classes cascade use the same time point as the one used to recalculate style. - Cleaned up MapContext::update to return early whenever possible. - Cleaned up MapContext::loadStyleJSON to avoid redundant calls to style classes cascade.
* | Micro-optimizations to StyleBruno de Oliveira Abinader2015-07-141-11/+4
| |
* | Do not return a value on a "[]() -> void"Thiago Marcos P. Santos2015-07-131-1/+1
| | | | | | | | | | This is an undefined behavior, and it is a mystery why the compiler was not complaining about it.
* | Make one arg ctors explicitThiago Marcos P. Santos2015-07-113-3/+3
| |
* | Remove unused variableThiago Marcos P. Santos2015-07-111-3/+0
| |
* | Remove unused function: cwd()Thiago Marcos P. Santos2015-07-111-19/+0
| |
* | Deffer updateAnnotationTiles() if Source is not availableThiago Marcos P. Santos2015-07-101-2/+11
| | | | | | | | | | | | The Style object might have been created but the Source is not yet available because the JSON file was not set. Can happen specially when the style is loaded from the network.
* | Merge pull request #1840 from mapbox/repeat-distanceNicki Dlugash2015-07-106-23/+65
|\ \ | | | | | | Updates to labels along lines
| * | Updates to labels along linesNicki Dlugash2015-07-096-23/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a filter to remove anchors with the same text that are too close to each other. Updates to spacing and offset of anchor placement along lines: Takes into account icon size for calculating label length. Recalculates spacing for long labels. Adjusts offsets to first anchors if line is continued from outside the tile boundary.
* | | Do not report isLoaded() if loading failedThiago Marcos P. Santos2015-07-102-1/+5
| | |
* | | Report Sprite parsing errors to ObserversThiago Marcos P. Santos2015-07-106-18/+31
| | | | | | | | | | | | | | | | | | | | | | | | Parsing errors will be reported to Observers. In practice this will bubble all the way to the Map object. This will make possible to identify possible corrupted data instead of rendering without sprites like we do in case of semantic errors.
* | | Merge Sprite loading notificationsThiago Marcos P. Santos2015-07-104-10/+6
|/ / | | | | | | Because they are pretty much the same thing.
* | fixes #1858: proper shape placement in style layersJustin R. Miller2015-07-091-1/+1
|/
* show info message when Sprite does not existKonstantin Käfer2015-07-081-1/+6
|
* make sure that the SpriteStore object correctly replaces the SpriteImagesKonstantin Käfer2015-07-081-6/+16
|
* add image to odd pixelRatio atlasKonstantin Käfer2015-07-082-11/+3
|
* add test for fractional pixel ratiosKonstantin Käfer2015-07-082-25/+23
|
* add basic SpriteAtlas testKonstantin Käfer2015-07-081-0/+1
|
* fix sprite debug window codeKonstantin Käfer2015-07-081-1/+1
|
* explicitly name the sprite that couldn't be changedKonstantin Käfer2015-07-081-1/+1
|
* add ability to add random custom markers to test appKonstantin Käfer2015-07-081-40/+0
|
* replace Style object immediatelyKonstantin Käfer2015-07-083-10/+16
| | | | | this makes sure that adding custom sprite imagery will add them to the new Style object rather than the old one in case a user adds new custom sprites immediately after changing a stylesheet
* add ability to set custom sprites on the Map objectKonstantin Käfer2015-07-085-0/+55
|
* key sprites in sprite atlas by name and wrap valueKonstantin Käfer2015-07-082-3/+5
|
* make sure that Sprite isn't marked as loaded until we actually added ↵Konstantin Käfer2015-07-084-47/+65
| | | | everything to the SpriteStore
* mark Image constructor as explicit to avoid accidental implicit argument ↵Konstantin Käfer2015-07-081-1/+1
| | | | | | conversion when passing a std::string instead of an Image, the parameter gets implicitly and automatically converted (== parsed) to a temporary Image object. Since parsing an Image shouldn't be a frequent operation
* don't restrict pixelRatio in SpriteStoreKonstantin Käfer2015-07-085-21/+5
| | | | this is required so that devices that aren't using 1x or 2x (like the iPhone 6 Plus with a pixelRatio of 3x) still show icons, albeit bilinearly scaled to the correct size in the SpriteAtlas
* use SpriteStore from the SpriteAtlasKonstantin Käfer2015-07-0813-225/+89
|
* move SpriteAtlas to the SpriteStore backendKonstantin Käfer2015-07-083-55/+62
|