summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-06-27 17:14:03 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-06-27 17:14:03 +0200
commit4a9d12385b7b50e948b0b4870b5139e2c4fa60ef (patch)
treecc1d3bf2f397f4eec2ff8470a4069aa31c8a3286 /src
parente77b3d71c45cf2c1737dad1166695b11e00e3883 (diff)
downloadqtlocation-mapboxgl-4a9d12385b7b50e948b0b4870b5139e2c4fa60ef.tar.gz
add remaining default values
Diffstat (limited to 'src')
-rw-r--r--src/style/property_fallback.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/style/property_fallback.cpp b/src/style/property_fallback.cpp
index d322f8c579..d94f7e9e54 100644
--- a/src/style/property_fallback.cpp
+++ b/src/style/property_fallback.cpp
@@ -3,9 +3,52 @@
namespace llmr {
const std::map<PropertyKey, PropertyValue> PropertyFallbackValue::properties = {
+ { PropertyKey::FillEnabled, true },
+ { PropertyKey::FillAntialias, true },
+ { PropertyKey::FillOpacity, 1.0f },
+ { PropertyKey::FillColor, Color({{ 0, 0, 0, 1 }}) },
+ { PropertyKey::FillTranslateX, 0.0f },
+ { PropertyKey::FillTranslateY, 0.0f },
+ { PropertyKey::FillTranslateAnchor, TranslateAnchorType::Map },
+
{ PropertyKey::LineEnabled, true },
{ PropertyKey::LineOpacity, 1.0f },
{ PropertyKey::LineColor, Color({{ 0, 0, 0, 1 }}) },
+ { PropertyKey::LineTranslateX, 0.0f },
+ { PropertyKey::LineTranslateY, 0.0f },
+ { PropertyKey::LineTranslateAnchor, TranslateAnchorType::Map },
+ { PropertyKey::LineWidth, 1.0f },
+ { PropertyKey::LineOffset, 0.0f },
+ { PropertyKey::LineBlur, 1.0f },
+ { PropertyKey::LineDashLand, 1.0f },
+ { PropertyKey::LineDashGap, -1.0f },
+
+ { PropertyKey::IconEnabled, true },
+ { PropertyKey::IconOpacity, 1.0f },
+ { PropertyKey::IconRotate, 0.0f },
+ { PropertyKey::IconRotateAnchor, RotateAnchorType::Viewport },
+
+ { PropertyKey::TextEnabled, true },
+ { PropertyKey::TextOpacity, 1.0f },
+ { PropertyKey::TextSize, 16.0f },
+ { PropertyKey::TextColor, Color({{ 0, 0, 0, 1 }}) },
+ { PropertyKey::TextHaloColor, Color({{ 0, 0, 0, 0 }}) },
+ { PropertyKey::TextHaloWidth, 0.25f },
+ { PropertyKey::TextHaloBlur, 1.0f },
+
+ { PropertyKey::CompositeEnabled, true },
+ { PropertyKey::CompositeOpacity, 1.0f },
+
+ { PropertyKey::RasterEnabled, true },
+ { PropertyKey::RasterOpacity, 1.0f },
+ { PropertyKey::RasterSpin, 0.0f },
+ { PropertyKey::RasterBrightnessLow, 0.0f },
+ { PropertyKey::RasterBrightnessHigh, 1.0f },
+ { PropertyKey::RasterSaturation, 0.0f },
+ { PropertyKey::RasterContrast, 0.0f },
+ { PropertyKey::RasterFade, 0.0f },
+
+ { PropertyKey::BackgroundColor, Color({{ 0, 0, 0, 0 }}) },
};
const PropertyValue PropertyFallbackValue::defaultProperty;