Skip to main content

Element styles

How those elements are drawn. One style object, shared. Created with kind elementstyle.

TypeClass
"balloon"BalloonPopupStyleBuilder
"line"LineStyleBuilder
"marker"MarkerStyleBuilder
"point"PointStyleBuilder
"polygon"PolygonStyleBuilder
"text"TextStyleBuilder

"balloon" — BalloonPopupStyleBuilder

{"type": "balloon"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
buttonMarginsstruct massif::BalloonPopupMarginsread/writeReturns the margins for popup buttons.
cornerRadiusintegerread/writeReturns the corner radius of the popup.
descriptionColorcolorread/writeReturns the color of the description.
descriptionFieldstringread/writeReturns the description field variable. If not empty, this variable is used to read actual text string from object meta info.
descriptionFontNamestringread/writeReturns the name of the description font.
descriptionFontSizeintegerread/writeReturns the size of the description font.
descriptionMarginsstruct massif::BalloonPopupMarginsread/writeReturns the margins of the description.
descriptionWrapbooleanread/writeReturns the state of the description wrap parameter.
leftColorcolorread/writeReturns the background color of the left part of the popup.
leftImageobject std::shared_ptr<massif::Bitmap>read/writeReturns the image of the left part of the popup.
leftMarginsstruct massif::BalloonPopupMarginsread/writeReturns the margins of the left part of the popup.
rightColorcolorread/writeReturns the background color of the right part of the popup.
rightImageobject std::shared_ptr<massif::Bitmap>read/writeReturns the image of the right part of the popup.
rightMarginsstruct massif::BalloonPopupMarginsread/writeReturns the margins of the right part of the popup.
strokeColorcolorread/writeReturns the color of the stroke surrounding the popup.
strokeWidthintegerread/writeReturns the width of the stroke surrounding the popup.
titleColorcolorread/writeReturns the color of the title.
titleFieldstringread/writeReturns the title field variable. If not empty, this variable is used to read actual text string from object meta info.
titleFontNamestringread/writeReturns the name of the title font.
titleFontSizeintegerread/writeReturns the size of the title font.
titleMarginsstruct massif::BalloonPopupMarginsread/writeReturns the margins of the title.
titleWrapbooleanread/writeReturns the state of the title wrap parameter.
triangleHeightintegerread/writeReturns the height of the triangle at the bottom of the popup.
triangleWidthintegerread/writeReturns the width of the triangle at the bottom of the popup.

Inherited from BillboardStyleBuilder:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read/writeReturns the animation style of the billboard.
attachAnchorPointXnumberread/writeReturns the horizontal attaching anchor point of the billboard.
attachAnchorPointYnumberread/writeReturns the vertical attaching anchor point of the billboard.
causesOverlapbooleanread/writeReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread/writeReturns the state of the allow overlap flag.
horizontalOffsetnumberread/writeReturns the horizontal offset of the billboard.
placementPriorityintegerread/writeReturns the placement priority of the billboard.
scaleWithDPIbooleanread/writeReturns the state of the scale with DPI flag.
verticalOffsetnumberread/writeReturns the vertical offset of the billboard.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

"line" — LineStyleBuilder

{"type": "line"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
bitmapobject std::shared_ptr<massif::Bitmap>read/writeReturns the bitmap of the line.
clickWidthnumberread/writeReturns the width of the line used for click detection.
lineEndTypeenumread/writeReturns the end point type of the line.
lineJoinTypeenumread/writeReturns the join type of the line.
stretchFactornumberread/writeReturns the stretch factor of the line.
widthnumberread/writeReturns the width of the line.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

"marker" — MarkerStyleBuilder

{"type": "marker"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
anchorPointXnumberread/writeReturns the horizontal anchor point of the marker.
anchorPointYnumberread/writeReturns the vertical anchor point of the marker.
bitmapobject std::shared_ptr<massif::Bitmap>read/writeReturns the bitmap of the marker.
clickSizenumberread/writeReturns the size of the marker used for click detection.
orientationModeenumread/writeReturns the orientation mode of the marker.
scalingModeenumread/writeReturns the scaling mode of the marker.
sizenumberread/writeReturns the size of the marker.

Inherited from BillboardStyleBuilder:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read/writeReturns the animation style of the billboard.
attachAnchorPointXnumberread/writeReturns the horizontal attaching anchor point of the billboard.
attachAnchorPointYnumberread/writeReturns the vertical attaching anchor point of the billboard.
causesOverlapbooleanread/writeReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread/writeReturns the state of the allow overlap flag.
horizontalOffsetnumberread/writeReturns the horizontal offset of the billboard.
placementPriorityintegerread/writeReturns the placement priority of the billboard.
scaleWithDPIbooleanread/writeReturns the state of the scale with DPI flag.
verticalOffsetnumberread/writeReturns the vertical offset of the billboard.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

"point" — PointStyleBuilder

{"type": "point"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
bitmapobject std::shared_ptr<massif::Bitmap>read/writeReturns the bitmap of the point.
clickSizenumberread/writeReturns the size of the point used for click detection.
sizenumberread/writeReturns the size of the point.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

"polygon" — PolygonStyleBuilder

{"type": "polygon"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
lineStyleobject std::shared_ptr<massif::LineStyle>read/writeReturns the line style of the edges of the polygon.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

"text" — TextStyleBuilder

{"type": "text"}
KeyTypeAlways requiredNotes
PropertyTypeAccessDescription
backgroundColorcolorread/writeReturns the background color for the text label.
borderColorcolorread/writeReturns the border color for the text label.
borderWidthnumberread/writeReturns the border width for the text label.
breakLinesbooleanread/writeReturns the state of the 'break lines' flag.
fontNamestringread/writeReturns the font name for the text label.
fontSizenumberread/writeReturns the font size for the text label.
strokeColorcolorread/writeReturns the stroke color for the text label.
strokeWidthnumberread/writeReturns the stroke width for the text label.
textFieldstringread/writeReturns the text field variable. If not empty, this variable is used to read actual text string from object meta info.
textMarginsstruct massif::TextMarginsread/writeReturns the margins for the text.

Inherited from LabelStyleBuilder:

PropertyTypeAccessDescription
anchorPointXnumberread/writeReturns the horizontal anchor point of the label.
anchorPointYnumberread/writeReturns the vertical anchor point of the label.
flippablebooleanread/writeReturns the state of the flippable flag.
orientationModeenumread/writeReturns the orientation mode of the label.
renderScalenumberread/writeReturns the relative rendering scale for the label.
scalingModeenumread/writeReturns the scaling mode of the label.

Inherited from BillboardStyleBuilder:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read/writeReturns the animation style of the billboard.
attachAnchorPointXnumberread/writeReturns the horizontal attaching anchor point of the billboard.
attachAnchorPointYnumberread/writeReturns the vertical attaching anchor point of the billboard.
causesOverlapbooleanread/writeReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread/writeReturns the state of the allow overlap flag.
horizontalOffsetnumberread/writeReturns the horizontal offset of the billboard.
placementPriorityintegerread/writeReturns the placement priority of the billboard.
scaleWithDPIbooleanread/writeReturns the state of the scale with DPI flag.
verticalOffsetnumberread/writeReturns the vertical offset of the billboard.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

Base classes

Not constructed directly. Their properties are reachable on every object above that derives from them.

BalloonPopupStyle

PropertyTypeAccessDescription
backgroundColorcolorread-onlyReturns the background color of the popup.
buttonMarginsstruct massif::BalloonPopupMarginsread-onlyReturns the margins for the buttons of the popup.
cornerRadiusintegerread-onlyReturns the corner radius of the popup.
descriptionColorcolorread-onlyReturns the color of the description.
descriptionFieldstringread-onlyReturns the description field variable to use.
descriptionFontNamestringread-onlyReturns the name of the description font.
descriptionFontSizeintegerread-onlyReturns the size of the description font.
descriptionMarginsstruct massif::BalloonPopupMarginsread-onlyReturns the margins of the description.
descriptionWrapbooleanread-onlyReturns the state of the description wrap parameter.
leftColorcolorread-onlyReturns the background color of the left part of the popup.
leftImageobject std::shared_ptr<massif::Bitmap>read-onlyReturns the image of the left part of the popup.
leftMarginsstruct massif::BalloonPopupMarginsread-onlyReturns the margins of the left part of the popup.
rightColorcolorread-onlyReturns the background color of the right part of the popup.
rightImageobject std::shared_ptr<massif::Bitmap>read-onlyReturns the image of the right part of the popup.
rightMarginsstruct massif::BalloonPopupMarginsread-onlyReturns the margins of the right part of the popup.
strokeColorcolorread-onlyReturns the color of the stroke surrounding the popup.
strokeWidthintegerread-onlyReturns the width of the stroke surrounding the popup.
titleColorcolorread-onlyReturns the color of the title.
titleFieldstringread-onlyReturns the title field variable to use.
titleFontNamestringread-onlyReturns the name of the title font.
titleFontSizeintegerread-onlyReturns the size of the title font.
titleMarginsstruct massif::BalloonPopupMarginsread-onlyReturns the margins of the title.
titleWrapbooleanread-onlyReturns the state of the title wrap parameter.
triangleHeightintegerread-onlyReturns the height of the triangle at the bottom of the popup.
triangleWidthintegerread-onlyReturns the width of the triangle at the bottom of the popup.

Inherited from BillboardStyle:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read-onlyReturns the animation style of the billboard.
attachAnchorPointXnumberread-onlyReturns the horizontal attaching anchor point of the billoard.
attachAnchorPointYnumberread-onlyReturns the vertical attaching anchor point of the billoard.
causesOverlapbooleanread-onlyReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread-onlyReturns the state of the allow overlap flag.
horizontalOffsetnumberread-onlyReturns the horizontal offset of the billboard.
placementPriorityintegerread-onlyReturns the placement priority of the billboard.
scaleWithDPIbooleanread-onlyReturns the state of the scale with DPI flag.
verticalOffsetnumberread-onlyReturns the vertical offset of the billboard.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

BillboardStyle

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read-onlyReturns the animation style of the billboard.
attachAnchorPointXnumberread-onlyReturns the horizontal attaching anchor point of the billoard.
attachAnchorPointYnumberread-onlyReturns the vertical attaching anchor point of the billoard.
causesOverlapbooleanread-onlyReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread-onlyReturns the state of the allow overlap flag.
horizontalOffsetnumberread-onlyReturns the horizontal offset of the billboard.
placementPriorityintegerread-onlyReturns the placement priority of the billboard.
scaleWithDPIbooleanread-onlyReturns the state of the scale with DPI flag.
verticalOffsetnumberread-onlyReturns the vertical offset of the billboard.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

BillboardStyleBuilder

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read/writeReturns the animation style of the billboard.
attachAnchorPointXnumberread/writeReturns the horizontal attaching anchor point of the billboard.
attachAnchorPointYnumberread/writeReturns the vertical attaching anchor point of the billboard.
causesOverlapbooleanread/writeReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread/writeReturns the state of the allow overlap flag.
horizontalOffsetnumberread/writeReturns the horizontal offset of the billboard.
placementPriorityintegerread/writeReturns the placement priority of the billboard.
scaleWithDPIbooleanread/writeReturns the state of the scale with DPI flag.
verticalOffsetnumberread/writeReturns the vertical offset of the billboard.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

LabelStyle

PropertyTypeAccessDescription
anchorPointXnumberread-onlyReturns the horizontal anchor point of the label.
anchorPointYnumberread-onlyReturns the vertical anchor point of the label.
flippablebooleanread-onlyReturns the state of the flippable flag.
orientationModeenumread-onlyReturns the orientation mode of the label.
renderScalenumberread-onlyReturns the relative rendering scale of the label.
scalingModeenumread-onlyReturns the scaling mode of the label.

Inherited from BillboardStyle:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read-onlyReturns the animation style of the billboard.
attachAnchorPointXnumberread-onlyReturns the horizontal attaching anchor point of the billoard.
attachAnchorPointYnumberread-onlyReturns the vertical attaching anchor point of the billoard.
causesOverlapbooleanread-onlyReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread-onlyReturns the state of the allow overlap flag.
horizontalOffsetnumberread-onlyReturns the horizontal offset of the billboard.
placementPriorityintegerread-onlyReturns the placement priority of the billboard.
scaleWithDPIbooleanread-onlyReturns the state of the scale with DPI flag.
verticalOffsetnumberread-onlyReturns the vertical offset of the billboard.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

LabelStyleBuilder

PropertyTypeAccessDescription
anchorPointXnumberread/writeReturns the horizontal anchor point of the label.
anchorPointYnumberread/writeReturns the vertical anchor point of the label.
flippablebooleanread/writeReturns the state of the flippable flag.
orientationModeenumread/writeReturns the orientation mode of the label.
renderScalenumberread/writeReturns the relative rendering scale for the label.
scalingModeenumread/writeReturns the scaling mode of the label.

Inherited from BillboardStyleBuilder:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read/writeReturns the animation style of the billboard.
attachAnchorPointXnumberread/writeReturns the horizontal attaching anchor point of the billboard.
attachAnchorPointYnumberread/writeReturns the vertical attaching anchor point of the billboard.
causesOverlapbooleanread/writeReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread/writeReturns the state of the allow overlap flag.
horizontalOffsetnumberread/writeReturns the horizontal offset of the billboard.
placementPriorityintegerread/writeReturns the placement priority of the billboard.
scaleWithDPIbooleanread/writeReturns the state of the scale with DPI flag.
verticalOffsetnumberread/writeReturns the vertical offset of the billboard.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

LineStyle

PropertyTypeAccessDescription
bitmapobject std::shared_ptr<massif::Bitmap>read-onlyReturns the bitmap of the line.
clickWidthnumberread-onlyReturns the width of the line used for click detection.
lineEndTypeenumread-onlyReturns the end point type of the line.
lineJoinTypeenumread-onlyReturns the join type of the line.
stretchFactornumberread-onlyReturns the stretching factor of the line.
widthnumberread-onlyReturns the width of the line.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

MarkerStyle

PropertyTypeAccessDescription
anchorPointXnumberread-onlyReturns the horizontal anchor point of the marker.
anchorPointYnumberread-onlyReturns the vertical anchor point of the marker.
bitmapobject std::shared_ptr<massif::Bitmap>read-onlyReturns the bitmap of the marker.
clickSizenumberread-onlyReturns the click size of the marker.
orientationModeenumread-onlyReturns the orientation mode of the marker.
scalingModeenumread-onlyReturns the scaling mode of the marker.
sizenumberread-onlyReturns the size of the marker.

Inherited from BillboardStyle:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read-onlyReturns the animation style of the billboard.
attachAnchorPointXnumberread-onlyReturns the horizontal attaching anchor point of the billoard.
attachAnchorPointYnumberread-onlyReturns the vertical attaching anchor point of the billoard.
causesOverlapbooleanread-onlyReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread-onlyReturns the state of the allow overlap flag.
horizontalOffsetnumberread-onlyReturns the horizontal offset of the billboard.
placementPriorityintegerread-onlyReturns the placement priority of the billboard.
scaleWithDPIbooleanread-onlyReturns the state of the scale with DPI flag.
verticalOffsetnumberread-onlyReturns the vertical offset of the billboard.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

PointStyle

PropertyTypeAccessDescription
bitmapobject std::shared_ptr<massif::Bitmap>read-onlyReturns the bitmap of the point.
clickSizenumberread-onlyReturns the size of the point used for click detection.
sizenumberread-onlyReturns the size of the point.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

PolygonStyle

PropertyTypeAccessDescription
lineStyleobject std::shared_ptr<massif::LineStyle>read-onlyReturns the style of the edges of the polygon.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

PopupStyle

Inherited from BillboardStyle:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read-onlyReturns the animation style of the billboard.
attachAnchorPointXnumberread-onlyReturns the horizontal attaching anchor point of the billoard.
attachAnchorPointYnumberread-onlyReturns the vertical attaching anchor point of the billoard.
causesOverlapbooleanread-onlyReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread-onlyReturns the state of the allow overlap flag.
horizontalOffsetnumberread-onlyReturns the horizontal offset of the billboard.
placementPriorityintegerread-onlyReturns the placement priority of the billboard.
scaleWithDPIbooleanread-onlyReturns the state of the scale with DPI flag.
verticalOffsetnumberread-onlyReturns the vertical offset of the billboard.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

PopupStyleBuilder

Inherited from BillboardStyleBuilder:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read/writeReturns the animation style of the billboard.
attachAnchorPointXnumberread/writeReturns the horizontal attaching anchor point of the billboard.
attachAnchorPointYnumberread/writeReturns the vertical attaching anchor point of the billboard.
causesOverlapbooleanread/writeReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread/writeReturns the state of the allow overlap flag.
horizontalOffsetnumberread/writeReturns the horizontal offset of the billboard.
placementPriorityintegerread/writeReturns the placement priority of the billboard.
scaleWithDPIbooleanread/writeReturns the state of the scale with DPI flag.
verticalOffsetnumberread/writeReturns the vertical offset of the billboard.

Inherited from StyleBuilder:

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

Style

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.

StyleBuilder

PropertyTypeAccessDescription
colorcolorread/writeReturns the color of the vector element.

TextStyle

PropertyTypeAccessDescription
backgroundColorcolorread-onlyReturns the background color of the text.
borderColorcolorread-onlyReturns the color of the border.
borderWidthnumberread-onlyReturns the width of the border.
breakLinesbooleanread-onlyReturns the state of the 'break lines' flag.
fontColorcolorread-onlyReturns the font's color.
fontNamestringread-onlyReturns the font's name.
fontSizenumberread-onlyReturns the font's size.
strokeColorcolorread-onlyReturns the color of the stroke.
strokeWidthnumberread-onlyReturns the width of the stroke.
textFieldstringread-onlyReturns the text field variable to use.
textMarginsstruct massif::TextMarginsread-onlyReturns the margins for the text.

Inherited from LabelStyle:

PropertyTypeAccessDescription
anchorPointXnumberread-onlyReturns the horizontal anchor point of the label.
anchorPointYnumberread-onlyReturns the vertical anchor point of the label.
flippablebooleanread-onlyReturns the state of the flippable flag.
orientationModeenumread-onlyReturns the orientation mode of the label.
renderScalenumberread-onlyReturns the relative rendering scale of the label.
scalingModeenumread-onlyReturns the scaling mode of the label.

Inherited from BillboardStyle:

PropertyTypeAccessDescription
animationStyleobject std::shared_ptr<massif::AnimationStyle>read-onlyReturns the animation style of the billboard.
attachAnchorPointXnumberread-onlyReturns the horizontal attaching anchor point of the billoard.
attachAnchorPointYnumberread-onlyReturns the vertical attaching anchor point of the billoard.
causesOverlapbooleanread-onlyReturns the state of the causes overlap flag.
hideIfOverlappedbooleanread-onlyReturns the state of the allow overlap flag.
horizontalOffsetnumberread-onlyReturns the horizontal offset of the billboard.
placementPriorityintegerread-onlyReturns the placement priority of the billboard.
scaleWithDPIbooleanread-onlyReturns the state of the scale with DPI flag.
verticalOffsetnumberread-onlyReturns the vertical offset of the billboard.

Inherited from Style:

PropertyTypeAccessDescription
colorcolorread-onlyReturns the color of the vector element.