summaryrefslogtreecommitdiff
path: root/src/mbgl
Commit message (Collapse)AuthorAgeFilesLines
* [core] align raster imagery rendering to pixel rid to avoid blurrinessKonstantin Käfer2018-01-246-10/+30
|
* Reimplement style values atop NSExpression (#10726)Minh Nguyễn2018-01-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Import headers, not implementation files * [core] Added accessors for various expression parameters Added missing parameter accessors to various expression operator classes, as well as a method on InterpolatorBase and Step that enumerates the stops and their values. * [ios, macos] Silenced warning in test of error condition * [ios, macos] Made MGLSphericalPosition boxable * [ios, macos] Implemented array enumeration during conversion * [ios, macos] Temporarily ignore heatmap layer type * [ios, macos] Migrated MGLSymbolStyleLayer.text to NSExpression MGLSymbolStyleLayer.text is now of type NSExpression instead of MGLStyleValue, as a first step toward migrating the entire layer API from style values to expressions. Implemented conversions from NSExpression to JSON arrays and vice versa. The most common NSExpression functions are now converted into style expressions, but not all of the most common style expression operators are supported yet. * [ios, macos] Implemented string coercion * [ios, macos] Color literals * [ios, macos] Null constant expressions * [ios, macos] Convert dictionary literals * [ios, macos] Interpolation expressions * [ios, macos] to-boolean, to-number, get from object * [ios, macos] Variable expressions Implemented custom expression functions for assigning and referring to variables within the context of an expression. Variables are assigned via a “context dictionary” and applied to an subexpression that is given as another argument to the same expression. Also implemented built-in variable expressions for zoom level and heatmap density. * [ios, macos] Convert colors, offsets, padding in expressions to JSON objects * [ios, macos] Expression-based style property getters Implemented a conversion from mbgl::style::PropertyValues to Objective-C JSON objects, which are then converted to NSExpressions. * [ios, macos] Consolidated property value–expression conversion in MGLStyleValueTransformer * [ios, macos] Predicate and expression guide Extracted documentation about predicates from a documentation comment in MGLVectorStyleLayer.h to a new jazzy guide. Added details about NSExpression support as well. Began updating the “For Style Authors” guide to reflect the transition from style values to expressions. * [ios, macos] Updated style authoring guide Updated the Information for Style Authors guide to discuss expressions instead of style functions. Included a table mapping style specification expression operators to NSExpression syntaxes. * [ios, macos] Migrated codegen templates to expressions * [ios, macos] Applied expression changes via codegen Ran make darwin-style-code. * [macos] Migrated macosapp to expressions * [ios, macos] Updated style function guide This guide needs to be thoroughly rewritten, but for now the example code has been migrated to expressions. * [ios, macos] Eviscerated style function tests * [ios, macos] Updated changelogs * [ios] Migrated iosapp to expressions * [ios, macos] Exposed JSON conversion methods publicly * [ios, macos] Removed MGLStyleValue, MGLStyleFunction
* [core] fix style parsing crash when a layer's paint property is not an objectKonstantin Käfer2018-01-231-0/+3
|
* [core] add raster-dem source type and hillshade layer type (#10642)Molly Lloyd2018-01-2350-21/+1797
|
* Prune unused layers from CrossTileSymbolIndexChris Loer2018-01-193-0/+16
| | | | Fixes issue #10939 -- removed layers would leak entries in the CrossTileSymbolIndex.
* [core] GeometryTileData needs to be updated in lockstep with FeatureIndexChris Loer2018-01-182-1/+5
|
* [core] Synchronize state of CollisionIndex and FeatureIndexes.Chris Loer2018-01-185-1/+29
| | | | Fixes issue #10778, in which mismatch between FeatureIndex and CollisionIndex could lead to inconsistent results or even invalid array access.
* [core] Prevent symbols at the same zoom from sharing a crossTileID.Chris Loer2018-01-172-9/+35
| | | | | Port of GL JS PR #5994. Fixes issue #10844, which would allow multiple symbols in a tile to share the same crossTileID as one of their duplicate parent-tile symbols. Once the symbols shared a crossTileID, they would permanently remain "duplicates" of each other, even after increasing zoom level allowed the CrossTileSymbolIndex to distinguish between them.
* [core] fix symbol flickering after data updatesAnsis Brammanis2018-01-115-29/+34
|
* [core] fix updating CrossTileSymbolIndex after bucket updateAnsis Brammanis2018-01-111-0/+2
| | | | emplace does not overwite existing entries
* [core] Add warning for invalid text-font valuesJohn Firebaugh2018-01-101-0/+6
|
* [core, ios, macos, android] Add data-driven-styling support for `text-font`John Firebaugh2018-01-1015-31/+134
|
* [core] Account for circle-stroke-width in queryRenderedFeaturesJohn Firebaugh2018-01-102-6/+6
|
* [core] Handle NaN input to interpolate and stepJohn Firebaugh2018-01-102-8/+11
|
* [core] Omit inferred type annotations for 'coalesce' argumentsJohn Firebaugh2018-01-092-31/+50
|
* [core] Fix alpha handling in rgba and to-rgba operatorsJohn Firebaugh2018-01-093-7/+10
|
* [core] Enable implicit type assertions for array typesJohn Firebaugh2018-01-091-0/+2
|
* [core] Improve typing for !=, == expressionsJohn Firebaugh2018-01-093-16/+86
|
* [core] Use separate shaders for background and clippingLauren Budorick2018-01-0918-40/+377
|
* [core] Update debug collision circle shader.Chris Loer2018-01-091-1/+1
| | | | Fixes issue #10876.
* [core] blacklist binary program loading for Vivante GC4000 GPUsKonstantin Käfer2018-01-091-1/+4
|
* [windows][core] Use Qt's own zlib on WindowsThiago Marcos P. Santos2018-01-081-0/+4
|
* [windows][core] Include what you useThiago Marcos P. Santos2018-01-082-0/+2
|
* [windows][qt] Remove std:: namespace of some functionsThiago Marcos P. Santos2018-01-081-1/+1
| | | | Not available on Windows.
* [ios] Ignore Boost's 'implicit conversion loses integer precision' warningBruno de Oliveira Abinader2018-01-081-0/+3
|
* [core] port minor collision changes from -js (#10764)Ansis Brammanis2018-01-087-65/+35
|
* Support TileJSON bounds property (#10701)Asheem Mamoowala2018-01-0512-3/+191
| | | | | | | | * [core] Parse TileJSON bounds property * [core] Add TileRange and LatLngBounds::contains(CanonicalTileID) Move LatLngBounds::contains impl to cpp file * [core] Skip tile creation outside of tileset bounds * [core] Fix TileRange for wrapped bounds and use for CustomTileLoader instead of LatLngBounds comparisons for tiles.
* [core] fix #10833 loading overscaled tilesAnsis Brammanis2018-01-051-3/+7
| | | | | | | | This reverts a regression in ed5438fc21672e838947c06669dd44051ce24c81 which set `tileZoom = idealZoom` for all types of tiles. The second change makes it so that panTiles get loaded only if they have a lower *data zoom* (only if they cover a larger area).
* Merge branch 'release-agua' back to master.Fabian Guerra2018-01-042-8/+14
|\
| * Merge branch 'release-agua' into masterupstream/fabian-merge-release-aguaFabian Guerra2018-01-042-8/+14
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # circle.yml # cmake/core-files.cmake # platform/android/CHANGELOG.md # platform/android/MapboxGLAndroidSDK/build.gradle # platform/android/MapboxGLAndroidSDK/gradle.properties # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/CameraChangeDispatcher.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMapOptions.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/text/LocalGlyphRasterizer.java # platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/utils/BitmapUtils.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/AndroidManifest.xml # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/DebugModeActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/maplayout/LocalGlyphActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/activity/userlocation/MyLocationTintActivity.java # platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/activity_local_glyph.xml # platform/android/MapboxGLAndroidSDKTestApp/src/main/res/values/descriptions.xml # platform/darwin/src/MGLMapSnapshotter.mm # platform/darwin/src/MGLRendererConfiguration.h # platform/ios/CHANGELOG.md # platform/ios/DEVELOPING.md # platform/ios/INSTALL.md # platform/ios/README.md # platform/ios/resources/bg.lproj/Localizable.strings # platform/ios/resources/es.lproj/Localizable.strings # platform/ios/resources/vi.lproj/Localizable.strings # platform/ios/src/MGLMapView.mm # platform/macos/macos.xcodeproj/project.pbxproj # src/mbgl/text/glyph_manager.cpp
| | * [core] don't tie Annotation geometries to Map maxzoomKonstantin Käfer2018-01-029-36/+36
| | | | | | | | | | | | Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
| | * Fix CustomLayer context retain count (#10765)Asheem Mamoowala2017-12-202-8/+14
| | | | | | | | | | | | | | | | | | * [core] RenderCustomLayer should de-initialize old context * [iOS, macOS] Use toll-free bridging to retain/release MGLOpenGLStyleLayer instead of a separate array.
| | * [core] Hook LocalGlyphRasterizer "font family" configuration up to RendererChris Loer2017-12-187-7/+22
| | |
| | * [core] Enable local glyph generation using TinySDF.Chris Loer2017-12-183-6/+66
| | | | | | | | | | | | | | | | | | | | | - Platform-specific LocalGlyphRasterizer is responsible for deciding which glyphs to rasterize locally and for implementing the rasterization. - Default platform implementation doesn't locally generate any glyphs -> no behavior change - Unit test uses StubLocalGlyphRasterizer, which returns a single fixed bitmap for all CJK glyphs - Rename glyph_loader.test to glyph_manager.test
| | * [core] C++ port of TinySDFChris Loer2017-12-182-0/+125
| | |
* | | Fix distant collision perspective ratios (#10794).Chris Loer2018-01-043-12/+17
|/ / | | | | | | | | Analog of GL JS issue #5911. Add native ignore for tilejson-bounds.
* | [core] Allow prefetching tiles for all source typesBruno de Oliveira Abinader2018-01-031-6/+3
| |
* | [core] don't tie Annotation geometries to Map maxzoomKonstantin Käfer2018-01-029-36/+36
| | | | | | | | Instead, geometry generation via GeoJSONVT is now bound to the hardcoded limit of the annotation tile source.
* | [core] Better align fill-extrusion vertex layoutLauren Budorick2017-12-206-29/+25
| |
* | [core] Migrated upcase, downcase to platform codeMinh Nguyễn2017-12-141-8/+3
| | | | | | | | Replaced manual, per-character upper- and lowercasing code with calls to platform-specific code that affects a wider range of characters.
* | [core] Overzoomed image sources vanish (#10677)Asheem Mamoowala2017-12-131-28/+26
| | | | | | Use z0 tile coordinates instead of screen coordinates to compute ideal zoom for image sources
* | [core] Include bucket name in queryRenderedSymbols duplicate feature filterChris Loer2017-12-111-2/+2
| | | | | | | | | | - Port of GL JS PR #5703 - Fixes issue #10616
* | [ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.Chris Loer2017-12-117-7/+22
| | | | | | | | | | - Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
* | [core] Enable local glyph generation using TinySDF.Chris Loer2017-12-113-5/+66
| | | | | | | | | | | | | | - Platform-specific LocalGlyphRasterizer is responsible for deciding which glyphs to rasterize locally and for implementing the rasterization. - Default platform implementation doesn't locally generate any glyphs -> no behavior change - Unit test uses StubLocalGlyphRasterizer, which returns a single fixed bitmap for all CJK glyphs - Rename glyph_loader.test to glyph_manager.test
* | [core] C++ port of TinySDFChris Loer2017-12-112-0/+125
| |
* | Correct ColorMode::ReplaceLauren Budorick2017-12-071-1/+1
| |
* | [core] Use wrapped bounds check for CustomTileLoaderAsheem Mamoowala2017-12-071-1/+1
| |
* | [core] Mark custom geometry tiles stale without clearing dataAsheem Mamoowala2017-12-065-20/+41
| |
* | [core] don't include .cpp fileKonstantin Käfer2017-12-051-13/+13
| |
* | [core] move HeadlessBackend extension initialization code into ImplKonstantin Käfer2017-11-291-1/+1
| |