summaryrefslogtreecommitdiff
path: root/include/mbgl/style
Commit message (Collapse)AuthorAgeFilesLines
* [core, ios, macos] Refactor composite stop types and conversionsJohn Firebaugh2017-02-095-71/+185
|
* [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-0223-159/+874
|
* [core] Include what you useThiago Marcos P. Santos2017-01-201-0/+1
|
* 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-041-0/+2
| |
* | [core] Use PropertyMap typedefJohn Firebaugh2017-01-041-2/+2
| |
* | [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-201-3/+3
|\ \ | |/ | | | | Also reran make style-code and manually discarded anything related to fill extrusion layers.
| * [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] 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
| |
* | [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] 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.
* [core] Removed map attribution APIMinh Nguyễn2016-09-261-0/+3
| | | | Since client code can readily access the individual sources, Map doesn’t need to expose a dedicated API for iterating over them.
* Better handling for undefined icon|text-rotation-alignment (#6253)Young Hahn2016-09-211-1/+1
| | | | | | * [core, ios, android] Use `auto` value for properties with calculated defaults * Fix render tests
* [core] Trigger Source::Impl::reload when a filter or layout property is modifiedJohn Firebaugh2016-09-061-15/+55
|
* [core, ios, android, qt] Observe style layer mutations rather than requiring ↵John Firebaugh2016-09-062-0/+27
| | | | | | SDKs to use Map::update This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
* [core] Add missing classed paint property getterJohn Firebaugh2016-09-067-49/+49
|
* update filter doc usage example (#6202)Dane Springmeyer2016-08-311-5/+2
|
* [core] Change GeoJSONSource::getURL() to return an optional<std::string>John Firebaugh2016-08-261-1/+2
| | | | GeoJSON sources may have inline GeoJSON rather than a URL; returning an optional type ensures that consumers handle this case.
* [core] Add static getters for property default values (#6124)John Firebaugh2016-08-237-0/+88
|
* [core] #6071 - extract GeoJSONOptions conversion from GeoJSONSource conversionIvo van Dongen2016-08-232-55/+83
| | | | | | | | | | | | | | * [core] geojson_options - retain original error message * [core] tests - initial style conversion stub methods * [core] geojsonoptions conversion - initial unit tests * [core] tests - fix forward reference issue * [core] geojsonoptions conversion - unit tests * [core] geojsonoptions conversion - renamed Holder to Value
* [core] set correct depth values for CustomLayer so compositing worksKonstantin Käfer2016-08-221-0/+2
|
* [core] added template instances for Source.is<>().Ivo van Dongen2016-08-183-0/+15
|
* [core] support "scheme": "tms" in TileJSON filesKonstantin Käfer2016-08-161-0/+8
|
* GeoJSON point clustering (#5724)Vladimir Agafonkin2016-07-272-17/+107
| | | | | | | | | | | | | | | | * add supercluster dependency * prepare GeoJSONTile for Supercluster * prepare GeoJSONSource for accepting options * try removing mbgl::GeoJSON * fix setGeoJSON types * add GeoJSONSource getURL * add geojson to include path * add Supercluster index in GeoJSONSource * fix GeoJSONSource getZoomRange * bring back mbgl::GeoJSON header * fix tidy warnings hopefully * try test-suite with enabled cluster test * fix formatting in clustering-related files
* [core] Add support for $id key to filtersJohn Firebaugh2016-07-182-6/+28
| | | | https://github.com/mapbox/mapbox-gl-style-spec/issues/391
* [core] Report conversion errors using std::stringThiago Marcos P. Santos2016-07-121-1/+3
| | | | | char* increases the risk of pointing to a invalid reference. Qt had to use a static variable as retainer to workaround.
* [core] Added missing pragmas to style conversion headersBruno de Oliveira Abinader2016-07-113-0/+6
|
* [core] Add support for circle-pitch-scaleJohn Firebaugh2016-07-073-0/+9
|
* [core] geometry@0.8.0 / geojsonvt@6.0.0 (#5514)Young Hahn2016-07-061-0/+11
| | | | | | | | | | | | | | | | | | | | | | * [core] geometry.hpp 0.8.0 * geojsonvt @ 6.0.0 * Update platform deps, build scripts * Perf optimizations/cleanup * Rebase in geometry@080 * D.R.Y. etc * Ensure fill annotation geometries have closed rings. * Optimizations * Update to geojsonvt @ 6.1.0 for clean handoff between geojson parsing and geojsonvt * Apply close multi/poly geoms for line annotations as well
* [core, node] Implement bindings for addSourceJohn Firebaugh2016-06-245-12/+213
|
* [core, node] Implement bindings for addLayerJohn Firebaugh2016-06-2413-49/+497
|
* [core] Adjust layer source properties to better reflect realityJohn Firebaugh2016-06-247-29/+17
| | | | | | | | * Layer source ID is immutable; must be provided to the constructor * Layer source layer is mutable * Layers with GeoJSON sources do not have a source layer While here, make Layer::copy impl-private.
* [core] Split up and clean up conversion.hppJohn Firebaugh2016-06-245-341/+463
|
* [core, node] Node bindings for setFilterJohn Firebaugh2016-06-211-1/+131
|
* [core] Rewrite style parsing logic for reuse in node bindingsJohn Firebaugh2016-06-211-0/+263
|
* [core] Cleaned up TransitionOptionsBruno de Oliveira Abinader2016-06-201-7/+3
|
* [core] Avoid redundant 'inline' usageBruno de Oliveira Abinader2016-06-181-1/+1
|
* [core] Runtime source API: private implsJohn Firebaugh2016-06-164-0/+130
|
* [core] Prepare Filter and FilterEvaluator for extraction (#5366)John Firebaugh2016-06-152-16/+207
|
* Support for icon-text-fit, icon-text-fit-padding (#5334)Young Hahn2016-06-152-0/+13
| | | | | | | | | | * Add support for icon-text-fit * Port unit tests for getIconQuads() from js => cpp * Add support for padding in all 4 directions. * Update all hashes post-merge
* [core] Extract code templates to individual .ejs filesJohn Firebaugh2016-06-131-0/+76
|
* [core] Make enum ↔ string conversion more generic-friendlyJohn Firebaugh2016-06-131-9/+1
| | | | | | Rewrite enum.hpp in such a way that parseConstant can be defined generically for all enumerated types. While there, properly validated enumerated property values.
* [tidy] Check modernize-pass-by-valueBruno de Oliveira Abinader2016-06-132-4/+4
| | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html