summaryrefslogtreecommitdiff
path: root/include/mbgl/style
Commit message (Collapse)AuthorAgeFilesLines
* [core] Bracket init works for optional<T> in GCC 4.9Bruno de Oliveira Abinader2017-07-191-2/+2
|
* [core][ios][android][macos] Use premultiplied image directly for RasterTile ↵Asheem Mamoowala2017-07-171-1/+1
| | | | and ImageSource, un-premultiply in the shader for blending
* [core] Update shaders.Chris Loer2017-07-122-0/+5
| | | | | Implements 'icon-pitch-alignment' (issue #9345) Fixes issue #9456 (map-aligned point label regression)
* [core] GCC 4.9 bracket initialization issuesBruno de Oliveira Abinader2017-07-121-2/+2
|
* [core] GCC 4.9 is unable to deduce ctors when using bracket initBruno de Oliveira Abinader2017-07-121-0/+5
|
* [core] GCC 4.9 does not fully support custom variable templatesBruno de Oliveira Abinader2017-07-124-5/+5
|
* [core] Implement circle-pitch-alignment propertyChris Loer2017-07-062-0/+8
| | | | Closes issue #9349.
* [core] Move setStyleJSON/URL to Style; add Map::setStyleJohn Firebaugh2017-06-221-0/+6
|
* [all] Promote Style to public APIJohn Firebaugh2017-06-221-0/+75
|
* [core] Enable property functions for line-width (#9250)Lauren Budorick2017-06-196-5/+8
|
* [core] Fix composite function approximation for non-integer stopsJohn Firebaugh2017-06-161-22/+53
|
* Fix undefined memory access in getCoveringRanges() (#9227)Anand Thakker2017-06-091-1/+1
| | | | | | | | | | | | * Add simple unit tests for SymbolSizeBinder * Fix bug in symbol size uniform value calculation For camera functions we were setting the zoom levels in "covering ranges" to `[(zoom stop <= tile zoom), (zoom stop >= 1 + tile zoom)]`, but then evaluating the function at `[tile_zoom, tile_zoom + 1]`. * Check for it != end() before accessing it->first
* [core] Collection-level immutabilityJohn Firebaugh2017-06-051-1/+1
| | | | Introduce a second level of immutability, over each of the collections held by a style: sources, images, and layers. Tracking immutability at this level allows us to short-circuit significant portions of the RenderStyle update logic via a simple equality check, greatly improving performance.
* [core] Refactor RenderSource updatesJohn Firebaugh2017-06-052-0/+8
| | | | | | | * Eliminate updateBatch in favor of diffing layers and detecting changes to properties upon which layout depends. * Replace RenderSource::{update,remove,invalidate,reload}Tiles with a single update method * Replace TilePyramid::{update,remove,invalidate,reload}Tiles with a single update method * Remove Style& dependency TODO from GeometryTile and TileParameters
* [core] Use fixed-size std::array for ImageSource coordinatesAsheem Mamoowala2017-06-013-12/+11
|
* [core] Render Image SourceAsheem Mamoowala2017-06-011-1/+1
|
* [core] Add toDouble Conversion method for correctly parsing Lat Lng coordinatesAsheem Mamoowala2017-06-012-5/+6
|
* [core] Add ImageSource support to style parsersAsheem Mamoowala2017-06-014-1/+128
|
* [core] ensure layer::accept works with non-void return values on gccIvo van Dongen2017-05-301-0/+7
|
* [core] Don't use a separate SpriteAtlas for annotation imagesJohn Firebaugh2017-05-261-0/+1
| | | | Instead, just add them to the Style as needed. Includes changes from #8905 and takes care to avoid regressing #3817.
* [core] forward visitor in layer::acceptIvo van Dongen2017-05-231-8/+8
|
* [core] Make ExponentialStops behavior consistent; add testsJohn Firebaugh2017-05-192-4/+2
|
* [core] Eliminate round-trip through Value in CameraFunction::evaluateJohn Firebaugh2017-05-193-16/+22
|
* [core] Remove ambiguous get{Width,Height} accessors from style::ImageJohn Firebaugh2017-05-171-3/+0
|
* [core, node, darwin, android, qt] Make image ID part of ImageJohn Firebaugh2017-05-161-1/+5
| | | | More like Source and Layer.
* [core, node, darwin, qt] Remove support for paint classesJohn Firebaugh2017-05-1512-379/+352
|
* [core] Unify {Paint,Layout,Light}PropertiesJohn Firebaugh2017-05-152-2/+2
|
* [core] Immutable<Impl> for ImageJohn Firebaugh2017-05-151-6/+3
|
* [core] Split style image collection from SpriteAtlasIvo van Dongen2017-05-121-5/+12
|
* [core] Return {Source,Layer}::getID by valueJohn Firebaugh2017-05-122-2/+2
| | | | | | | | | | Avoid dangling references in the following sequence: auto& id = layer->getID(); layer->setMaxZoom(2); std::cout << id; The reference would be dangling because mutating the layer allocates a new Immutable impl, and there may be no references to the prior impl, which held the id.
* [core] Immutable ImplsJohn Firebaugh2017-05-1216-79/+204
|
* [tidy] modernize-raw-string-literalBruno de Oliveira Abinader2017-05-122-2/+2
|
* [tidy] modernize-use-autoBruno de Oliveira Abinader2017-05-121-3/+3
|
* [core, android] Factor JSON string conversionsJohn Firebaugh2017-05-082-4/+12
| | | | | | | | | | | This adds a `convertJSON` template, to be used like: Error error optional<Foo> foo = convertJSON<Foo>(string, error); Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`. While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
* [core] delegate light changes to render lightIvo van Dongen2017-05-083-15/+17
|
* [core] generated accessor methods on lightIvo van Dongen2017-05-083-46/+77
|
* [core] Remove unused declarationJohn Firebaugh2017-05-051-5/+0
|
* [core] Refactor Source::*Impls into RenderSources and TilePyramidJohn Firebaugh2017-05-022-19/+1
|
* [all] Push querySourceFeatures back out to MapJohn Firebaugh2017-05-022-27/+0
| | | | Once Source and RendererSource are split, Source will no longer have access to tiles.
* [core] Render fill-extrusion layers (#8431)Lauren Budorick2017-04-278-35/+295
|
* [core] split off render layersIvo van Dongen2017-04-2510-31/+41
|
* [all] Rationalize style::ImageJohn Firebaugh2017-04-241-0/+25
| | | | | | | A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
* [core] More complete fix for composite function interpolation edge caseJohn Firebaugh2017-04-201-3/+0
| | | | b5b4549 / #8613 handled the edge case for layout properties, but not paint properties. Move the check for a degenerate range to interpolationFactor in order to handle both correctly.
* [core] TransitionOptions s/operator bool/isDefined/Bruno de Oliveira Abinader2017-04-141-1/+1
|
* [core] Remove unused bool() functionsBruno de Oliveira Abinader2017-04-141-2/+0
|
* [core, darwin] Object identity for MGLSource*, MGLStyleLayer*John Firebaugh2017-04-132-0/+12
| | | | All `MGLSource` pointers referencing the same logical source will now be object identical; similarly for `MGLStyleLayer`.
* [core] Add DDS support for {text,icon}-size (#8593)Anand Thakker2017-04-064-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | * Update gl-js and generate style code * Factor out packUint8Pair() helper function * Draft implementation of DDS for {text,icon}-size Ports https://github.com/mapbox/mapbox-gl-js/pull/4455 * Fix text-size/composite-function-line-placement test * Refactor to PaintPropertyBinders-like strategy * Dedupe gl::Program construction * Use exponential function base for interpolation * Dedupe coveringZoomStops method * Fixup tests * Fix CI errors (hidden within #if block)
* Fix edge case in composite function interpolation (#8613)Anand Thakker2017-04-031-1/+8
| | | | | | | | | | | | | | | | This fixes a bug where, for a zoom value greater than that of the highest zoom stop, composite function interpolation would return nan. (Blocking a render test over in #8593) * Add failing tests for composite function edge case The failing cases here are: - Should interpolate before the first stop - Should interpolate past the last stop * Fix edge case in composite function interpolation * Hold functions constant outside stop-defined domain
* [core] Add DDS support for icon-imageJohn Firebaugh2017-03-312-4/+4
|
* [core] Add DDS support for text-rotateJohn Firebaugh2017-03-312-4/+4
|