summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Check for matching source when parsing tiles (fixes #1698)John Firebaugh2015-07-024-9/+17
|
* Report errors when parsing raster tilesThiago Marcos P. Santos2015-07-028-18/+26
| | | | | | | | | Use the same API/pattern for parsing raster tiles as we use for vector tiles. Forward the error as an exception that will ultimately reach the StillImageCallback. Also set the tile to State::obsolete on error like we do for vector tiles.
* Use unique_ptr for Source objects (fixes #904)John Firebaugh2015-07-025-20/+20
|
* Fixed round-tripping between pixelForLatLng() / latLngForPixel()Minh Nguyễn2015-07-021-2/+2
| | | | Followup to cfa2eaf5c21858483cd12ee0768b43315ef29e95 for #1406.
* External synchronization for AnnotationManagerJohn Firebaugh2015-07-026-32/+23
|
* Don't inherit for code reuseJohn Firebaugh2015-07-024-51/+54
|
* Remove unnecessary virtual methods from TileDataJohn Firebaugh2015-07-025-26/+12
|
* fix line tessellation, fix #1814Ansis Brammanis2015-07-021-2/+2
|
* reduce collision box linewidth to 1Ansis Brammanis2015-07-021-1/+1
| | | | https://github.com/mapbox/mapbox-gl-js/commit/06eece43a88141c281b7664cc225ed7753dbfb98
* fix cross-tile label collisionsAnsis Brammanis2015-07-022-4/+2
| | | | | | | | | | | | fix #1816 fix #1689 The missing label was the only one in it's bucket. Since the label was outside the tile boundaries it wouldn't need to be drawn by the bucket. Since the bucket had no features to draw, it was dropped completely. Even if a bucket doesn't have any features that need to be rendered, it may have features that need to impact the placement of features in other layers.
* Reapply style layer copy techniqueJohn Firebaugh2015-07-013-5/+13
|
* Simplify RunLoopJohn Firebaugh2015-07-014-154/+71
| | | | | | | | Instead of transforming between return value and callback, pass the wrapped callback on to the invoked function as the last argument. This eliminates the need for multiple invokeWithArgument overloads and permits invoked functions to be asynchronous.
* Fix name shadowingJohn Firebaugh2015-07-012-4/+4
|
* Don't pass Worker& around so muchJohn Firebaugh2015-07-018-33/+30
|
* Rename workerData ⇢ tileWorkerJohn Firebaugh2015-07-013-8/+8
|
* Catch exceptions when parsing tile PBFsThiago Marcos P. Santos2015-07-012-3/+9
| | | | Also improved the error message and updated the test case.
* Single-purpose Worker functionsJohn Firebaugh2015-07-017-98/+122
|
* Add comment about a subtletyJohn Firebaugh2015-07-011-0/+11
|
* Move WorkerTask functionality into RunLoop coreJohn Firebaugh2015-07-017-135/+176
| | | | | As a byproduct, this makes FileCache get requests properly cancelable.
* Clean up bucket creation loopJohn Firebaugh2015-07-012-73/+62
|
* Remove indirectionJohn Firebaugh2015-07-012-22/+4
|
* reset partialParse when starting a new parsing runKonstantin Käfer2015-07-011-0/+2
|
* Merge TileParser into TileWorkerJohn Firebaugh2015-07-014-307/+232
|
* Remove indirectionJohn Firebaugh2015-07-014-68/+17
|
* Push TileMembers members down hierarchyJohn Firebaugh2015-07-016-137/+130
|
* Introduce TileWorkerJohn Firebaugh2015-07-018-147/+239
|
* Make request and reparse pure virtualJohn Firebaugh2015-07-016-51/+101
|
* Reduce number of arguments in Source::update pathwayJohn Firebaugh2015-07-019-89/+14
|
* Revert "Do not hold a reference to the Style at the [Live|Vector]TileData"John Firebaugh2015-07-017-27/+24
| | | | This reverts commit 044454417b61bdd102a376c1125ad6ee3a5eacd4.
* Cancel pending Style requests before making a new oneThiago Marcos P. Santos2015-07-012-2/+17
| | | | | | | | | | | Calling setStyleURL() multiple times in a short period of time will enqueue requests on the FileSource. The order they get replied is not guaranteed to be the same as the order we make the requests. The side effect was the last style set not always being the one rendered. Now we cancel the current request if we make a new one (and there was no point on keeping it around anyway).
* show symbols at z0, fix #1279Ansis Brammanis2015-07-011-1/+1
|
* Rationalize *RenderingMap notificationsJohn Firebaugh2015-06-301-2/+20
|
* Eliminate MapData::get/setFullyLoadedJohn Firebaugh2015-06-304-33/+25
|
* Check if the style was loaded before renderingThiago Marcos P. Santos2015-06-301-2/+5
| | | | | | We now drive rendering from the main thread calling renderSync(), but if we do it just after we set the style URL it will assert because renderSync() expects the style to be fully loaded.
* Use array of structs rather than parallel arrays for annotationsJohn Firebaugh2015-06-293-136/+104
|
* add assert_always() macro for release build assertionsKonstantin Käfer2015-06-291-0/+13
|
* Fit to coordinatesMinh Nguyễn2015-06-261-16/+26
| | | | Whoever determined the boundaries of the District of Columbia did not have fit-to-bounds implementations in mind. With this change, shapes that are not unrotated rectangles fit much, much better.
* Send MapChangeRegionIsChanging notificationsJohn Firebaugh2015-06-261-0/+3
|
* Remove duration argument from View::notifyMapChangeJohn Firebaugh2015-06-262-28/+22
| | | | Fixes #1026
* currentState() ⇢ getState()John Firebaugh2015-06-263-16/+10
|
* Move Transform from MapData to MapJohn Firebaugh2015-06-266-113/+64
| | | | | Pass current state to MapContext where needed. Remove mutex from Transform.
* Move getMin/MaxZoom to TransformStateJohn Firebaugh2015-06-266-52/+50
|
* Inline updateTiles and recalculateStyleJohn Firebaugh2015-06-262-14/+2
|
* drive map rendering from main threadKonstantin Käfer2015-06-263-5/+22
|
* remove unused renderAsync() functionKonstantin Käfer2015-06-261-4/+0
|
* Maintain rotation when fitting to boundsMinh Nguyễn2015-06-251-13/+21
| | | | | | Also fit to the rotated bounds. A little more verbose than necessary due to <http://stackoverflow.com/a/2357688/4585461>. ref mapbox/mapbox-gl-js#1338
* Fit to bounds with paddingMinh Nguyễn2015-06-251-9/+19
| | | | Each side of the bounding box is specified independently, allowing more flexibility than the offset + padding construct supported in mapbox/mapbox-gl-js’ Camera.
* Reimplemented fit to boundsMinh Nguyễn2015-06-251-0/+21
| | | | The new implementation is now public and takes advantage of MGLCoordinateBounds. It is re-ported from `Camera.prototype.fitBounds()` in mapbox/mapbox-gl-js to ensure correct behavior. A new function, MGLCoordinateBoundsMake(), makes it easier to create an MGLCoordinateBounds for use with this method.
* Get rid of Environment et al.Thiago Marcos P. Santos2015-06-2510-196/+7
| | | | | mbgl::Environment is not used anymore and can removed.
* Introduce GLObjectStoreThiago Marcos P. Santos2015-06-2512-14/+126
| | | | | Make a class for keeping GL objects ids and attach it to the ThreadContext instead of hanging it on the Environment.