summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* [core] Move parseCacheControl() up in the class hierarchyThiago Marcos P. Santos2015-10-262-0/+24
| | | | Avoid duplicating it on all the ports.
* [core] always reparse with the freshest possible placement configKonstantin Käfer2015-10-2614-125/+226
| | | | Fixes an issue where updates to stale tiles would remove labels altogether until the map was rotated.
* [core] reparse tiles when new data arrivesKonstantin Käfer2015-10-2625-286/+458
| | | | We're now reparsing tiles when they expire. We're also swapping out buckets atomically to avoid flickering data; i.e. we're displaying the old data as long as we don't have a new parsed bucket for that layer yet. The parsed buckets now live in the *TileData objects rather than in the TileWorker; only partially parsed == pending buckets will remain in the TileWorker. Once they're parsed, they're moved to the *TileData object.
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-2610-33/+22
|
* [core] do not use std::atomic_* with shared_ptrsKonstantin Käfer2015-10-261-26/+25
| | | | It's not implemented in GCC 4.9.2's stdlib (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57250). Instead, we're now always using a mutex to protect access; we previously created a mutex only on cancelation, but since we're always canceling now, it makes sense to allocate it right away.
* [core] set a timer and auto-refresh requests when they expireKonstantin Käfer2015-10-262-3/+33
| | | | When we get a request with an explicit expiration time, we're now starting a timer, and will trigger a refresh once the data expires. This gives requesters a chance to update their data.
* [core] add support for stale responsesKonstantin Käfer2015-10-2610-23/+98
| | | | We're now returning stale responses from cache. Those responses will have the `stale` flag set to true. Currently, all requesters in the core code discard stale responses, and cancel the request immediately after they got a non-stale response.
* [core] use RAII-style lifetime tracking of Request objectsKonstantin Käfer2015-10-2613-56/+57
|
* [core] all requests have to be canceled explicitly nowKonstantin Käfer2015-10-268-7/+24
| | | | By not automatically destroying Request objects after the result has been delivered, we are making sure that we can potentially fire the callback multiple times without adverse effects. This means that you have to hold on to the result of fs->request(), can explicitly cancel it if you don't want to be notified of data changes anymore. Not doing so will monitor the request indefinitely and will prevent the app from exiting.
* [core] Initialize attributes before using themThiago Marcos P. Santos2015-10-261-1/+3
| | | | Spotted by valgrind.
* [core] Remove MapData dependency from StyleParserJohn Firebaugh2015-10-2310-53/+59
| | | | | | | | | | MapData was needed for two things: getting the default transition and fade durations, and detecting still rendering vs. continuous. The first is avoided by making transition durations optional, and supplying the default fallback value at evaluation time. The second did not fix the still rendering issue, and will be followed up with a different approach in a later commit.
* [core] Introduce StyleCalculationParametersJohn Firebaugh2015-10-2321-90/+126
| | | | This makes subsequent changes to the the parameter list less intrusive.
* [core] Respect source layer z-order for style-sourced annotationsJohn Firebaugh2015-10-231-2/+5
|
* [core] Fix integer overflow for high maximum zoom levelsBruno de Oliveira Abinader2015-10-231-3/+5
|
* [core] Remove StyleLayer::isBackground()John Firebaugh2015-10-223-8/+1
|
* [core] Added save/restore capabilities to GL configBruno de Oliveira Abinader2015-10-222-1/+126
|
* [core] Added stencilOp, depthFunc and blendFunc to GL configBruno de Oliveira Abinader2015-10-223-33/+69
| | | | All GL values are now reset upon Painter setup.
* [core] Added GLContextMode to MapDataBruno de Oliveira Abinader2015-10-222-3/+5
| | | | | | | Adding new mbgl::GLContextMode enum to mbgl::Map ctor, which gets stored in MapData. In shared GL context environments, we cannot assume that the GL state that has been left since the last draw is the same, so we reset the GL configurations to their default values.
* [core] Style-sourced shape annotation propertiesJohn Firebaugh2015-10-223-63/+88
| | | | | This introduces the possibility to source the type and style properties of a shape annotation from a designated layer in the style.
* [core] Introduce StyleLayer subclassesJohn Firebaugh2015-10-2233-481/+615
|
* [core] Rationalize style property classes: <type>{Paint,Layout}PropertiesJohn Firebaugh2015-10-2226-302/+169
|
* [core] Fix transition to default style when no classes are appliedBruno de Oliveira Abinader2015-10-211-7/+15
| | | | | | Some property transitions were being set to their fallback values when no classes are being used. This issue is particularly perceived when the default transition duration is not zero (animated transitions).
* [core] Removed time param from Painter::renderBruno de Oliveira Abinader2015-10-213-5/+4
| | | | Animation time can be obtained directly from MapData.
* [core] Moved Painter::setup() to Painter ctorBruno de Oliveira Abinader2015-10-213-7/+3
|
* [core] Remove redundant setDebug() from PainterBruno de Oliveira Abinader2015-10-214-10/+1
| | | | This information can be obtained directly from MapData.
* [core] Added more transform state gettersBruno de Oliveira Abinader2015-10-214-23/+62
| | | | | Some platforms requires specific information that was previously not available in public API, but stored internally in TransformState object.
* [core] only check for mapbox:// at the start of the failed request's URLJason Wray2015-10-211-1/+1
|
* [core] Improve error message when style is not found or is incompatibleJason Wray2015-10-211-0/+2
| | | | | | | Attempting to use a Mapbox-hosted incompatible raster map/style with GL would throw a simple 404, without any indication of the real issue. Fix #1724, ref #1841
* [core] Remove shape layers from the style (fixes #2405)John Firebaugh2015-10-205-11/+31
|
* [core] Annotation refactorJohn Firebaugh2015-10-2018-651/+456
|
* [core] Pull annotation typedefs to own header; add AnnotationIDJohn Firebaugh2015-10-202-7/+7
|
* [core] Fix swapped lat/lon in geo.cppJohn Firebaugh2015-10-201-2/+2
|
* [core] MapContext setStyle{URL,JSON} should ignore redundant callsBruno de Oliveira Abinader2015-10-161-0/+8
| | | | | | Our engine should be robust enough to ignore redundant calls and avoid triggering a whole style update if the style URL and/or JSON are the same.
* [core] [android] Fix InfoWindow topOffsetPixels adjustment when switching stylesLeith Bade2015-10-163-8/+12
| | | | | | | Fixes #2599 Make getTopOffsetPixelsForAnnotationSymbol private Also implements MapChangeWillStartLoadingMap, MapChangeDidFinishLoadingMap Paritally implements #630
* [core] MapContext setStyle{URL,JSON} should ignore redundant callsBruno de Oliveira Abinader2015-10-141-0/+8
| | | | | | Our engine should be robust enough to ignore redundant calls and avoid triggering a whole style update if the style URL and/or JSON are the same.
* [core] Set fade/transition duration to 0 if map mode is stillBruno de Oliveira Abinader2015-10-142-6/+22
|
* [core] bump libuv to 1.7.5 across all platformsMike Morris2015-10-141-11/+11
| | | | | | UV_ASYNC_PARAMS and UV_TIMER_PARAMS for libuv <= 0.10 compatibility use st_mtim.tv_sec in libuv > 0.10.x
* Break lines on com­mon­ly un­spaced punc­tu­a­tionMinh Nguyễn2015-10-131-2/+20
| | | | | | Par­ti­cu­lar­ly hy­phens and soft hy­phens. Fixes #2595.
* [core] only show parent XOR child tilesKonstantin Käfer2015-10-121-0/+19
| | | | Since label rendering isn't clipped, having a parent tile, and only a handful of child tiles loaded may result in some labels being rendered twice (from the parent tile, and the up to three child tiles that necessitate the parent tile remaining in the list). This patch makes sure that in one location, it only ever renders one set of labels, by favoring the parent tile until all required child tiles have been loaded.
* [core] Protect MapData.pause with a lockLeith Bade2015-10-081-1/+2
| | | | Fixes #2522
* [core] Look the other way when placing icon at start of lineMinh Nguyễn2015-10-071-1/+7
| | | | | | When an anchor is at the beginning of a line, its segment’s coordinates match its own coordinates, resulting in an angle of 0°. When the segment’s coordinates match the anchor’s coordinates, consider the next segment instead. Fixes #2474.
* VAO and extension tracking code.Adam Hunter2015-10-061-3/+38
|
* Fix for style properties transition updatesBruno de Oliveira Abinader2015-10-063-2/+15
|
* fix layer minZoom being ignored if not less than source maxZoomVladimir Agafonkin2015-10-064-7/+1
| | | | | | | | | This condition led to layers with high minzoom like oneway street arrows (z15) get parsed and placed regardless of minzoom (e.g. z11+), wasting a lot of worker CPU time. It became unnecessary after we added reparsing tiles when overscaling, and even before that it should have probably been <= rather than <.
* Correctly handle spurious wake-ups in Map::pause()Leith Bade2015-10-063-10/+10
| | | | Fixes #2522
* refs #2527, fixes #774: properly unbind VAOJustin R. Miller2015-10-051-0/+1
|
* give every bucket its own set of buffersKonstantin Käfer2015-10-028-77/+33
| | | | This allows changing individual buckets without having leftover data
* [iOS] fix benchmarking app and update to style v8Konstantin Käfer2015-10-021-1/+1
|
* Install RapidJSON from masonJohn Firebaugh2015-10-0114-2694/+8
|
* mason variant@1.0Mike Morris2015-09-309-8/+14
|