summaryrefslogtreecommitdiff
path: root/src/style/property_fallback.cpp
blob: 949dc1a5cb69e755b549097cd23434d127128840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <mbgl/style/property_fallback.hpp>

namespace mbgl {

const std::map<PropertyKey, PropertyValue> PropertyFallbackValue::properties = {
    { 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::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::IconOpacity, 1.0f },
    { PropertyKey::IconRotate, 0.0f },
    { PropertyKey::IconRotateAnchor, RotateAnchorType::Viewport },

    { 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::CompositeOpacity, 1.0f },

    { 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 = false;

}