summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-04-08 17:58:34 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-04-17 15:04:08 +0300
commite329492f0f830eff9e482cf4f62ea31c41d5d6c8 (patch)
tree0e6920e92d0ed80def095a64a1c6c04e6503e6ba /src
parentd89b13f9555b3cde33499ed7bcece20c166e4dfd (diff)
downloadqtlocation-mapboxgl-e329492f0f830eff9e482cf4f62ea31c41d5d6c8.tar.gz
[core] Add 'auto' enum value to symbol-z-order layout property
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/style/layers/symbol_layer_properties.hpp2
-rw-r--r--src/mbgl/style/types.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/style/layers/symbol_layer_properties.hpp b/src/mbgl/style/layers/symbol_layer_properties.hpp
index cf8a9ab0d0..6b6e86fc3e 100644
--- a/src/mbgl/style/layers/symbol_layer_properties.hpp
+++ b/src/mbgl/style/layers/symbol_layer_properties.hpp
@@ -29,7 +29,7 @@ struct SymbolAvoidEdges : LayoutProperty<bool> {
struct SymbolZOrder : LayoutProperty<SymbolZOrderType> {
static constexpr const char *name() { return "symbol-z-order"; }
- static SymbolZOrderType defaultValue() { return SymbolZOrderType::ViewportY; }
+ static SymbolZOrderType defaultValue() { return SymbolZOrderType::Auto; }
};
struct IconAllowOverlap : LayoutProperty<bool> {
diff --git a/src/mbgl/style/types.cpp b/src/mbgl/style/types.cpp
index 889f6029e2..f388a9385f 100644
--- a/src/mbgl/style/types.cpp
+++ b/src/mbgl/style/types.cpp
@@ -78,6 +78,7 @@ MBGL_DEFINE_ENUM(SymbolAnchorType, {
});
MBGL_DEFINE_ENUM(SymbolZOrderType, {
+ { SymbolZOrderType::Auto, "auto" },
{ SymbolZOrderType::ViewportY, "viewport-y" },
{ SymbolZOrderType::Source, "source" }
});