summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [build] use TransformState from last update() rather than most recentupstream/7040-dateline-flickering-alternativeKonstantin Käfer2016-12-231-1/+3
|
* [build] move transition updates away from render callKonstantin Käfer2016-12-231-12/+15
|
* [core] Correct boolean function interpolationJohn Firebaugh2016-12-221-0/+4
|
* [core] fix matrix z range and remove hackAnsis Brammanis2016-12-211-3/+6
| | | | | | | ported from -js: 0b5520fa5ab2a4659d80dcffa8b035a0d84fe1ca This should fix the issue behind #2270 and remove the need for the hack added in #3740.
* [core] clearer pitched line antialiasingAnsis Brammanis2016-12-213-23/+21
| | | | | | | | | | ported from -js: ef5582dd3bc5c15a3112e875ed66494dab8e9d0b Project the extrusion and compare it's projected pixel length with the actual pixel length and adjust antialiasing accordingly. The previous approach calculated the adjustment much more indirectly and had no intuitive explanation.
* [core, ios] replace `altitude` with `fov`Ansis Brammanis2016-12-216-23/+34
| | | | | | | | | ported from -js: eb6c6596c6a7a61363d30356674e0002153b1d19 `altitude` was a terribly-named variable that was used to indirectly control the fov. This should eliminate some confusion. `altitude` was equivalent to `cameraToCenterDistance / height`
* [core] fix text blurriness at different FOVsAnsis Brammanis2016-12-211-2/+2
| | | | | | | | | | | | | | | | | ported from -js: c52a09639ceeeb809cd837360993df9c45b45420 This replaces a hardcoded shader approximation with a more correct, FOV-dependent one. `gl_Position.w - 0.5` is replaced with `gl_Position.w / tan(fov)` The `/ tan(fov)` is handled by multiplying `1 / tan(fov)` into `u_gamma` outside the shader. I think `- 0.5` was just chosen as something that looked right for the default fov.lease enter the commit message for your changes. Lines starting
* [core] Replace magic number with constant-based calculationJohn Firebaugh2016-12-211-2/+2
|
* [core] Polylabel-based "pole of inaccessibility" symbol placementJohn Firebaugh2016-12-211-5/+15
|
* [core] Remove unused BucketParameter membersJohn Firebaugh2016-12-212-30/+8
|
* [core] Convert BucketParameters#layer to a separate parameterJohn Firebaugh2016-12-2120-39/+36
| | | | This parameter varies between Buckets, while the others are constant. It makes more sense as an individual parameter.
* [core] refactor URL parsingKonstantin Käfer2016-12-213-136/+235
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-masterMinh Nguyễn2016-12-201-0/+7
|\ | | | | | | Also reran make style-code and manually discarded anything related to fill extrusion layers.
| * [core] Port ensure a non-zero source tile cache size (#7438)Jesse Bounds2016-12-141-2/+2
| | | | | | | | | | This ports https://github.com/mapbox/mapbox-gl-native/pull/7242/ commits/2d323211af54499d5c822b8e45d7415bf92112f0 to the iOS 3.4.0 release branch.
| * [core] Swap order of Style::recalculate and Style::relayoutIvo van Dongen2016-12-131-4/+4
| | | | | | | | Style::relayout uses source.baseImpl->loaded, a flag which is updated by Style::recalculate. So recalculate first, then relayout.
| * [core] guard against duplicate layer idsIvo van Dongen2016-12-131-0/+9
| |
| * [core] use raii to guard backend deactivationIvo van Dongen2016-12-131-13/+5
| |
| * [core, ios, macos] Add image accessor to MGLStyle (#7096)Roman Blum2016-12-051-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | * [core] Add interface to get image from sprite atlas * [tests] Add tests for Map::getImage * [ios, macos] WIP: get MGLImage for name from style * [ios, macos] Fixed -imageForName: Convert from sprite images to platform images using the existing encodePNG() function, which is also used for printing. Allow -imageForName: to return nil without an assertion failure. Added a basic test.
* | [core] Fix symbol rendering for multipointsJohn Firebaugh2016-12-204-63/+76
| | | | | | | | Ports https://github.com/mapbox/mapbox-gl-js/pull/3763 and https://github.com/mapbox/mapbox-gl-js/pull/3806.
* | [core] const correctnessJohn Firebaugh2016-12-202-3/+3
| |
* | [core] Mark tile as incomplete while redoing placementJohn Firebaugh2016-12-141-0/+6
| |
* | [core] Remove unusedJohn Firebaugh2016-12-141-3/+0
| |
* | [core] Fix debug renderingJohn Firebaugh2016-12-132-2/+3
| | | | | | | | | | * Off-by-one in DebugBucket indexing * Must unbind VAO before binding index buffer in Context::createIndexBuffer
* | [core] Swap order of Style::recalculate and Style::relayoutIvo van Dongen2016-12-121-4/+4
| | | | | | | | Style::relayout uses source.baseImpl->loaded, a flag which is updated by Style::recalculate. So recalculate first, then relayout.
* | [core] Ensure a non-zero source tile cache sizeJohn Firebaugh2016-12-121-2/+2
| | | | | | | | Previously, for viewport sizes less than 512 pixels in either direction, the computed size was 0.
* | [core] Added BidiImpl to avoid ICU types exposureBruno de Oliveira Abinader2016-12-121-4/+3
| |
* | [build] ICU is now configured per platformBruno de Oliveira Abinader2016-12-121-125/+0
| |
* | [core] guard against duplicate layer idsIvo van Dongen2016-12-121-0/+9
| |
* | [core] use raii to guard backend deactivationIvo van Dongen2016-12-121-13/+5
| |
* | [core] Implement circle-stroke propertiesJohn Firebaugh2016-12-0912-4/+348
| | | | | | | | Also includes stubs for fill-extrusion layer, because most of the code was auto-generated.
* | [core] add util::isURL() for checking whether a string starts with a URL schemeKonstantin Käfer2016-12-072-2/+34
| |
* | [core] Move CrossFadedPropertyEvaluator to its own fileJohn Firebaugh2016-12-065-40/+51
| |
* | [core] Move evaluation algorithm to FunctionJohn Firebaugh2016-12-063-79/+83
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-masterMinh Nguyễn2016-12-033-1/+39
|\ \ | |/
| * [core] guard against duplicate source id’sIvo van Dongen2016-12-021-0/+10
| |
| * [core, ios, macos] Added layers and sources properties to MGLStyleMinh Nguyễn2016-11-283-1/+39
| | | | | | | | | | | | | | | | Added new layers and sources properties to MGLStyle that contain all the style’s layers and sources, respectively. These properties are KVC-compliant with all the mutable to-many methods. Layers are ordered from topmost to bottommost, for consistency with Cocoa APIs where front/first means top and back/last means bottom. Also added storage for mbgl::style::Source in MGLSource proper for wrapping AnnotationSource. Until the style finishes loading, its name property is set to nil. Fixes #6003.
| * [core] cache raster tilesKonstantin Käfer2016-11-221-1/+1
| |
| * [core] don't run symbol placement more often than necessaryKonstantin Käfer2016-11-143-5/+3
| |
| * [core] Return source and layer ownership (#7014)Jesse Bounds2016-11-135-15/+41
| | | | | | | | | | | | | | | | When a source or layer is removed transfer ownership back to the caller so it can (optionally) take it. Preserve the behavior that removing a CustomLayer triggers deinitialization. Deinitialize all custom layers when a style is destroyed in case those layers are not explicitly removed.
| * [core] symbol layer - recalculate style on icon/text size changesIvo van Dongen2016-11-136-43/+51
| |
| * [core] Fix render tile ordering when querying sourcesBruno de Oliveira Abinader2016-11-132-21/+17
| |
| * [core] Separate pathway for notifying workers of new images/glyphsJohn Firebaugh2016-11-139-12/+77
| |
| * [core] Ensure correct GL context in Map::onLowMemory()John Firebaugh2016-11-091-0/+2
| |
* | [core] Functions must have at least one stopJohn Firebaugh2016-12-011-25/+2
| | | | | | | | This is already enforced by the style validator in mapbox-gl-style-spec. Enforce it here too.
* | [core] Use indexed rendering everywhereJohn Firebaugh2016-12-0111-110/+83
| |
* | [core] Full support for line breaking bidirectional text using ICU bidi ↵Chris Loer2016-11-308-162/+313
| | | | | | | | | | | | | | functionality. - Trim whitespace from labels before determining their max-width for alignment. - Fix crash on labels that contain lines with only a single character of whitespace.
* | [core] guard against duplicate source id’sIvo van Dongen2016-11-301-0/+10
| |
* | Always use a dot as a decimal point in string, independent of localeAki Koskinen2016-11-291-1/+6
| | | | | | | | | | | | | | std::to_string() potentially uses a decimal point character different than a dot (.), depending on the environment's locale. But since this generated string will be part of GLSL code, there needs to be a dot and nothing else.
* | [build] upgrade to variant 1.1.4 and dependenciesKonstantin Käfer2016-11-282-2/+3
| |
* | [core] Use double in TransformState::zoomScaleBruno de Oliveira Abinader2016-11-271-1/+1
| |