summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* [core] - allow moveBy to use AnimationOptionsTobrun2017-02-201-1/+2
| | | | [android] - update jni bindings for moveBy with an interpolator
* [core] Link BackendScopes in a list for additional assertionsJohn Firebaugh2017-02-201-1/+2
|
* [core] Ensure that context resources are destroyed before context is destroyedJohn Firebaugh2017-02-201-2/+1
|
* [core] Nestable BackendScopeJohn Firebaugh2017-02-202-14/+17
|
* [core] add ability to transform URLs before they're requested from the InternetKonstantin Käfer2017-02-202-0/+6
|
* [core] Enable property functions for text-{field,transform} (#7944)Anand Thakker2017-02-171-6/+6
|
* Refactor: use conversion system to convert MGLStyleFunction to mbgl core ↵Anand Thakker2017-02-151-1/+1
| | | | | types (#8026) This leverages the work already happening in `mbgl::style::conversion` to convert style functions from style-spec definitions into `mbgl::style::{Camera,Source,Composite}Function`s. In particular, this allows the conversions system to handle the differing typing requirements based on whether the output type of the style function is interpolatable or non-interpolatable.
* [core] Add noexcept(false) in MBGL_CHECK_ERRORJohn Firebaugh2017-02-151-1/+1
| | | | C++11 destructors are noexcept by default, so the prior definition always called std::terminate without allowing anything to catch the exception.
* [core] Make Image saferJohn Firebaugh2017-02-142-4/+65
| | | | | | Provide Image::copy, which handles copying rectangles from a source to a destination, with thorough bounds checking. Also fixes an indexing error in SpriteAtlas, where the top row of pixels in a wrapped image was copied from the wrong source row.
* [core] Expose Map::setZoom with anchor parameterJason Wray2017-02-131-0/+1
|
* [core] Introduce dedicated filter types for $type and $id special cases (#7971)John Firebaugh2017-02-093-50/+287
| | | | | | | | * [core] Introduce dedicated filter types for $type and $id special cases * [ios, macos] Special-case $id, $type in predicates Also support $id ≟ nil.
* [core] Restore support for *-transition propertiesJohn Firebaugh2017-02-0912-0/+198
|
* [core, ios, macos] Refactor composite stop types and conversionsJohn Firebaugh2017-02-095-71/+185
|
* [core] Do not consider error'ed responses freshThiago Marcos P. Santos2017-02-071-1/+1
| | | | | It has the unwanted side effect of not retrying anymore in case of error.
* [ios, macos] Add support for data-driven property functionsJesse Bounds2017-02-021-0/+5
|
* [core] default value support in categorical function conversionIvo van Dongen2017-02-028-31/+64
|
* [core] Add support for data-driven stylingJohn Firebaugh2017-02-0225-164/+897
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-277-12/+12
|
* [core] add clone() call to Image objectsKonstantin Käfer2017-01-261-0/+7
|
* [core] Include what you useThiago Marcos P. Santos2017-01-201-0/+1
|
* [Qt] Use Qt's OpenGL headerThiago Marcos P. Santos2017-01-201-0/+3
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.7Minh Nguyễn2017-01-164-2/+66
|\
| * [core] Filter operator==John Firebaugh2017-01-041-1/+59
| |
| * [core] Added URL accessor for tile sourcesMinh Nguyễn2016-12-203-1/+7
| |
* | [core] Get rid of user-specified refsJohn Firebaugh2017-01-042-0/+3
| |
* | [core] Use PropertyMap typedefJohn Firebaugh2017-01-041-2/+2
| |
* | [core] Remove constexpr from ColorJohn Firebaugh2017-01-041-10/+10
| | | | | | | | GCC can't cope with it.
* | [core, ios] replace `altitude` with `fov`Ansis Brammanis2016-12-211-1/+1
| | | | | | | | | | | | | | | | | | 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`
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.5-masterMinh Nguyễn2016-12-202-3/+4
|\ \ | |/ | | | | Also reran make style-code and manually discarded anything related to fill extrusion layers.
| * [core] use raii to guard backend deactivationIvo van Dongen2016-12-131-6/+25
| |
| * [ios, macos] Migrate MGLCustomStyleLayerAdditions to style layer API (#7250)Minh Nguyễn2016-12-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [ios, macos] Replaced custom style layer API with MGLOpenGLStyleLayer Replaced the custom style layer API on MGLMapView with an equally unsupported MGLOpenGLStyleLayer API that nonetheless is consistent with the broader runtime styling API and is compatible with macOS. Fixed an unrecognized selector crash when wrapping a layer of unrecognized type coming from mbgl. * [macos] Added lime green layer demo to macosapp Reprised the demo removed from iosapp in #5091. * [ios, macos] Rationalized MGLOpenGLStyleLayer API MGLStyle now strongly references any MGLOpenGLStyleLayer object that’s added to it, in order to prevent pointers from going stale and make it easy for layer drawing code to get more information about the map view. Replaced the MGLOpenGLStyleLayer callback blocks with overridable instance methods. Added internal documentation for each method. Subclassed MGLOpenGLStyleLayer as LimeGreenStyleLayer inside macosapp. Consolidated -addToMapView: into -addToMapView:belowLayer: to ensure that MGLRedundantLayerException gets raised even if the layer is being inserted rather than added to the bottom of the stack. * [core] Clarified that rendering happens on the main thread * [ios, macos] Fixed removing and re-adding MGLOpenGLStyleLayer Don’t allow index-based layer removal to circumvent -removeFromMapView:, which MGLOpenGLStyleLayer relies on to synchronize the style’s array of MGLOpenGLStyleLayers. When obtaining an MGLOpenGLStyleLayer, get the instance already added to the style instead of creating a new one to wrap the underlying CustomLayer.
| * [core, ios, macos] Add image accessor to MGLStyle (#7096)Roman Blum2016-12-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * [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] use raii to guard backend deactivationIvo van Dongen2016-12-121-6/+25
| |
* | [core] Implement circle-stroke propertiesJohn Firebaugh2016-12-095-1/+102
| | | | | | | | Also includes stubs for fill-extrusion layer, because most of the code was auto-generated.
* | [core] Move evaluation algorithm to FunctionJohn Firebaugh2016-12-061-1/+4
| |
* | [core] Inline friend equality operatorsJohn Firebaugh2016-12-062-23/+15
| |
* | Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-masterMinh Nguyễn2016-12-031-0/+2
|\ \ | |/
| * [core, ios, macos] Added layers and sources properties to MGLStyleMinh Nguyễn2016-11-281-0/+2
| | | | | | | | | | | | | | | | 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] Return source and layer ownership (#7014)Jesse Bounds2016-11-131-2/+2
| | | | | | | | | | | | | | | | 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.
| * [linux] Added OSMesa headless backendBruno de Oliveira Abinader2016-11-132-0/+9
| |
* | [core] Functions must have at least one stopJohn Firebaugh2016-12-012-2/+8
| | | | | | | | This is already enforced by the style validator in mapbox-gl-style-spec. Enforce it here too.
* | [core] Assert valid range for color componentsJohn Firebaugh2016-11-291-0/+16
| |
* | [core] remove unused umbrella header in favor of individual includesKonstantin Käfer2016-11-221-4/+0
| |
* | [build] move logging to utilKonstantin Käfer2016-11-223-1/+1
| |
* | [build] move headless rendering files to platform/defaultKonstantin Käfer2016-11-223-110/+0
| |
* | [build] move default ThreadPool implementation to platform/defaultKonstantin Käfer2016-11-221-27/+0
| |
* | [build] move GLFW-related files to platform/glfwKonstantin Käfer2016-11-222-135/+0
| |
* | [build] move default_styles to platform/defaultKonstantin Käfer2016-11-221-31/+0
| |
* | [build] move Reachability to platform/darwinKonstantin Käfer2016-11-221-95/+0
| |
* | [core] Convert style properties to a tuple-based approachJohn Firebaugh2016-11-172-4/+16
| | | | | | | | | | | | | | | | This converts the style property classes (CirclePaintProperties and so on) to the same tuple-based approach as gl::Attribute and gl::Uniform. The approach is outlined in https://github.com/mapbox/cpp/blob/master/C%2B%2B%20Structural%20Metaprogramming.md. The main advantage of this approach is it allows writing algorithms that work on sets of style properties, without resorting to code generation or manually repetitive code. This lets us iterate on approaches to data-driven properties more easily. Another advantage is that the cascading, unevaluated, and evaluated states of a set of properties exist as independent structures, instead of individual properties holding their own state. This is a more functional approach that makes data flow clearer and reduces state.