#include #include #include #include namespace mbgl { const std::map PropertyFallbackValue::properties = { { PropertyKey::FillAntialias, defaultStyleProperties().antialias }, { PropertyKey::FillOpacity, defaultStyleProperties().opacity }, { PropertyKey::FillColor, defaultStyleProperties().fill_color }, // no FillOutlineColor on purpose. { PropertyKey::FillTranslate, defaultStyleProperties().translate }, { PropertyKey::FillTranslateAnchor, defaultStyleProperties().translateAnchor }, { PropertyKey::LineOpacity, defaultStyleProperties().opacity }, { PropertyKey::LineColor, defaultStyleProperties().color }, { PropertyKey::LineTranslate, defaultStyleProperties().translate }, { PropertyKey::LineTranslateAnchor, defaultStyleProperties().translateAnchor }, { PropertyKey::LineWidth, defaultStyleProperties().width }, { PropertyKey::LineGapWidth, defaultStyleProperties().gap_width }, { PropertyKey::LineBlur, defaultStyleProperties().blur }, { PropertyKey::IconOpacity, defaultStyleProperties().icon.opacity }, { PropertyKey::IconSize, defaultStyleProperties().icon.size }, { PropertyKey::IconColor, defaultStyleProperties().icon.color }, { PropertyKey::IconHaloColor, defaultStyleProperties().icon.halo_color }, { PropertyKey::IconHaloWidth, defaultStyleProperties().icon.halo_width }, { PropertyKey::IconHaloBlur, defaultStyleProperties().icon.halo_blur }, { PropertyKey::IconTranslate, defaultStyleProperties().icon.translate }, { PropertyKey::IconTranslateAnchor, defaultStyleProperties().icon.translate_anchor }, { PropertyKey::TextOpacity, defaultStyleProperties().text.opacity }, { PropertyKey::TextSize, defaultStyleProperties().text.size }, { PropertyKey::TextColor, defaultStyleProperties().text.color }, { PropertyKey::TextHaloColor, defaultStyleProperties().text.halo_color }, { PropertyKey::TextHaloWidth, defaultStyleProperties().text.halo_width }, { PropertyKey::TextHaloBlur, defaultStyleProperties().text.halo_blur }, { PropertyKey::TextTranslate, defaultStyleProperties().text.translate }, { PropertyKey::TextTranslateAnchor, defaultStyleProperties().text.translate_anchor }, { PropertyKey::RasterOpacity, defaultStyleProperties().opacity }, { PropertyKey::RasterHueRotate, defaultStyleProperties().hue_rotate }, { PropertyKey::RasterBrightnessLow, defaultStyleProperties().brightness[0] }, { PropertyKey::RasterBrightnessHigh, defaultStyleProperties().brightness[1] }, { PropertyKey::RasterSaturation, defaultStyleProperties().saturation }, { PropertyKey::RasterContrast, defaultStyleProperties().contrast }, { PropertyKey::RasterFade, defaultStyleProperties().fade }, { PropertyKey::BackgroundOpacity, defaultStyleProperties().opacity }, { PropertyKey::BackgroundColor, defaultStyleProperties().color }, { PropertyKey::LineCap, defaultStyleLayout().cap }, { PropertyKey::LineJoin, defaultStyleLayout().join }, { PropertyKey::LineMiterLimit, defaultStyleLayout().miter_limit }, { PropertyKey::LineRoundLimit, defaultStyleLayout().round_limit }, { PropertyKey::SymbolPlacement, defaultStyleLayout().placement }, { PropertyKey::SymbolMinDistance, defaultStyleLayout().min_distance }, { PropertyKey::SymbolAvoidEdges, defaultStyleLayout().avoid_edges }, { PropertyKey::IconAllowOverlap, defaultStyleLayout().icon.allow_overlap }, { PropertyKey::IconIgnorePlacement, defaultStyleLayout().icon.ignore_placement }, { PropertyKey::IconOptional, defaultStyleLayout().icon.optional }, { PropertyKey::IconRotationAlignment, defaultStyleLayout().icon.rotation_alignment }, { PropertyKey::IconMaxSize, defaultStyleLayout().icon.max_size }, { PropertyKey::IconImage, defaultStyleLayout().icon.image }, { PropertyKey::IconRotate, defaultStyleLayout().icon.rotate }, { PropertyKey::IconPadding, defaultStyleLayout().icon.padding }, { PropertyKey::IconKeepUpright, defaultStyleLayout().icon.keep_upright }, { PropertyKey::IconOffset, defaultStyleLayout().icon.offset }, { PropertyKey::TextRotationAlignment, defaultStyleLayout().text.rotation_alignment }, { PropertyKey::TextField, defaultStyleLayout().text.field }, { PropertyKey::TextFont, defaultStyleLayout().text.font }, { PropertyKey::TextMaxSize, defaultStyleLayout().text.max_size }, { PropertyKey::TextMaxWidth, defaultStyleLayout().text.max_width }, { PropertyKey::TextLineHeight, defaultStyleLayout().text.line_height }, { PropertyKey::TextLetterSpacing, defaultStyleLayout().text.letter_spacing }, { PropertyKey::TextJustify, defaultStyleLayout().text.justify }, { PropertyKey::TextAnchor, defaultStyleLayout().text.anchor }, { PropertyKey::TextMaxAngle, defaultStyleLayout().text.max_angle }, { PropertyKey::TextRotate, defaultStyleLayout().text.rotate }, { PropertyKey::TextPadding, defaultStyleLayout().text.padding }, { PropertyKey::TextKeepUpright, defaultStyleLayout().text.keep_upright }, { PropertyKey::TextTransform, defaultStyleLayout().text.transform }, { PropertyKey::TextOffset, defaultStyleLayout().text.offset }, { PropertyKey::TextAllowOverlap, defaultStyleLayout().text.allow_overlap }, { PropertyKey::TextIgnorePlacement, defaultStyleLayout().text.ignore_placement }, { PropertyKey::TextOptional, defaultStyleLayout().text.optional }, }; const PropertyValue PropertyFallbackValue::defaultProperty = false; }