#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::FillTranslateX, defaultStyleProperties().translate[0] }, { PropertyKey::FillTranslateY, defaultStyleProperties().translate[1] }, { PropertyKey::FillTranslateAnchor, defaultStyleProperties().translateAnchor }, { PropertyKey::LineOpacity, defaultStyleProperties().opacity }, { PropertyKey::LineColor, defaultStyleProperties().color }, { PropertyKey::LineTranslateX, defaultStyleProperties().translate[0] }, { PropertyKey::LineTranslateY, defaultStyleProperties().translate[1] }, { PropertyKey::LineTranslateAnchor, defaultStyleProperties().translateAnchor }, { PropertyKey::LineWidth, defaultStyleProperties().width }, { PropertyKey::LineGapWidth, defaultStyleProperties().gap_width }, { PropertyKey::LineBlur, defaultStyleProperties().blur }, { PropertyKey::IconOpacity, defaultStyleProperties().icon.opacity }, { PropertyKey::IconRotate, defaultStyleProperties().icon.rotate }, { 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::IconTranslateX, defaultStyleProperties().icon.translate[0] }, { PropertyKey::IconTranslateY, defaultStyleProperties().icon.translate[1] }, { 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::TextTranslateX, defaultStyleProperties().text.translate[0] }, { PropertyKey::TextTranslateY, defaultStyleProperties().text.translate[1] }, { 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, defaultLayoutProperties().cap }, { PropertyKey::LineJoin, defaultLayoutProperties().join }, { PropertyKey::LineMiterLimit, defaultLayoutProperties().miter_limit }, { PropertyKey::LineRoundLimit, defaultLayoutProperties().round_limit }, { PropertyKey::SymbolPlacement, defaultLayoutProperties().placement }, { PropertyKey::SymbolMinDistance, defaultLayoutProperties().min_distance }, { PropertyKey::SymbolAvoidEdges, defaultLayoutProperties().avoid_edges }, { PropertyKey::IconAllowOverlap, defaultLayoutProperties().icon.allow_overlap }, { PropertyKey::IconIgnorePlacement, defaultLayoutProperties().icon.ignore_placement }, { PropertyKey::IconOptional, defaultLayoutProperties().icon.optional }, { PropertyKey::IconRotationAlignment, defaultLayoutProperties().icon.rotation_alignment }, { PropertyKey::IconMaxSize, defaultLayoutProperties().icon.max_size }, { PropertyKey::IconImage, defaultLayoutProperties().icon.image }, { PropertyKey::IconRotate, defaultLayoutProperties().icon.rotate }, { PropertyKey::IconPadding, defaultLayoutProperties().icon.padding }, { PropertyKey::IconKeepUpright, defaultLayoutProperties().icon.keep_upright }, { PropertyKey::IconOffsetX, defaultLayoutProperties().icon.offset[0] }, { PropertyKey::IconOffsetY, defaultLayoutProperties().icon.offset[1] }, { PropertyKey::TextRotationAlignment, defaultLayoutProperties().text.rotation_alignment }, { PropertyKey::TextField, defaultLayoutProperties().text.field }, { PropertyKey::TextFont, defaultLayoutProperties().text.font }, { PropertyKey::TextMaxSize, defaultLayoutProperties().text.max_size }, { PropertyKey::TextMaxWidth, defaultLayoutProperties().text.max_width }, { PropertyKey::TextLineHeight, defaultLayoutProperties().text.line_height }, { PropertyKey::TextLetterSpacing, defaultLayoutProperties().text.letter_spacing }, { PropertyKey::TextJustify, defaultLayoutProperties().text.justify }, { PropertyKey::TextAnchor, defaultLayoutProperties().text.anchor }, { PropertyKey::TextMaxAngle, defaultLayoutProperties().text.max_angle }, { PropertyKey::TextRotate, defaultLayoutProperties().text.rotate }, { PropertyKey::TextPadding, defaultLayoutProperties().text.padding }, { PropertyKey::TextKeepUpright, defaultLayoutProperties().text.keep_upright }, { PropertyKey::TextTransform, defaultLayoutProperties().text.transform }, { PropertyKey::TextOffsetX, defaultLayoutProperties().text.offset[0] }, { PropertyKey::TextOffsetY, defaultLayoutProperties().text.offset[1] }, { PropertyKey::TextAllowOverlap, defaultLayoutProperties().text.allow_overlap }, { PropertyKey::TextIgnorePlacement, defaultLayoutProperties().text.ignore_placement }, { PropertyKey::TextOptional, defaultLayoutProperties().text.optional }, }; const PropertyValue PropertyFallbackValue::defaultProperty = false; }