Placemark Attributes
Holds attributes applied to Placemark shapes. The defaults indicate a placemark displayed as a white 1x1 pixel square centered on the placemark's geographic position.
Constructors
Constructs a placemark attributes bundle. The defaults indicate a placemark displayed as a white 1x1 pixel square centered on the placemark's geographic position.
Constructs a placemark attribute bundle from the specified attributes. Performs a deep copy of the color, offset, label attributes and leader-line attributes.
Properties
Returns the image color. When this attribute bundle has a valid image path the placemark's image is composed with this image color to achieve the final placemark color. Otherwise, the placemark is drawn in this color. The color white, the default, causes the image to be drawn in its native colors.
Returns the location within the placemark's image to align with the placemark's geographic position. The default value centers the image at the geographic position.
Convenience uniform-scale accessor. Getting reads imageScaleY (the historic "imageScale" semantics); setting writes BOTH imageScaleX and imageScaleY so existing call sites that treat scale as uniform keep working unchanged.
Horizontal multiplier applied to the placemark's image. Together with imageScaleY defines the on-screen extent of the image quad in pixels. Set both to the same value for uniform scaling — the convenience imageScale property does that in one step. Use a different X than Y when you need to stretch horizontally (highway shields, pill-shaped badges fitting variable-length text — icon-text-fit: width).
Vertical multiplier applied to the placemark's image. See imageScaleX.
Returns the source of the placemark's image. If null, the placemark is drawn as a square whose side is the larger of this attribute object's imageScaleX and imageScaleY values.
Returns whether the placemark should be depth-tested against other objects in the scene. If true, the placemark may be occluded by terrain and other objects in certain viewing situations. If false, the placemark will not be occluded by terrain and other objects. If this value is true, the placemark's label, if any, has an independent depth-test control.
Returns whether to draw a placemark's label text.
Returns whether to draw a line from the placemark's geographic position to the ground.
Returns the attributes to apply to the placemark's label
Returns the attributes to apply to the leader line if it's drawn.
Returns the minimum amount to scale the placemark's image. When a Placemark.isEyeDistanceScaling is true, this value controls the minimum size of the rendered placemark. A value of 0 allows the placemark to disappear.