This gives you static function(s) for creating dynamically sized and colored marker icons using the Charts API marker output.
This namespace contains functions that you can use to easily create dynamically sized and colored icons.
Static Methods | Return Value | Description |
---|---|---|
createMarkerIcon(opts?) |
GIcon |
Creates an icon based on the specified options in the MarkerIconOptions argument. |
This class represents optional arguments to createMarkerIcon
. There is no constructor for this class. Instead, this class is instantiated as a javascript object literal.
Properties | Type | Description |
---|---|---|
cornerColor |
String |
Specifies, as a hexadecimal
string, the color used for the top corner of the icon. If you'd like the
icon to have a consistent color, make the this the same as the
primaryColor . The default value is "#ffffff" . |
height |
Number |
Specifies, in pixels, the height of the icon. The default value is 32 . |
primaryColor |
String |
Specifies, as a hexadecimal
string, the color used for the majority of the icon body. The default value is "#ff0000" . |
strokeColor |
String |
Specifies, as a hexadecimal
string, the color used for the outside line (stroke) of the icon. The default value is "#000000" . |
width |
Number |
Specifies, in pixels, the width of the icon.
The width may include some blank space on the side, depending on the
height of the icon, as the icon will scale its shape proportionately. The default value is 32 . |