Optional
axisThe line style of the axis.
Optional
gridIndicates whether a measuring tick should be extended as a grid line over the map. The default is false
.
Optional
labelA formatter function. It must map a single numerical value to a string.
var axisConfiguration = {
labelFormatter: function(n){
return n.toString();
}
};
Optional
labelThe rotation of the label in degrees. The rotation point is the anchor point of the label.
You can specify the anchor point of the label using the labelStyle
property of this configuration object.
Describe the horizontal component of the anchor point with the textAnchor
property
and the vertical component with the alignmentBaseline
property.
The rotation is clockwise.
Optional
labelThe style of the labels. A label will be drawn at each measuring tick. The default anchor point of the label is in the middle for the X-axis (alignmentBaseline='top' and textAnchor='center'), and at the end for the Y-axis (alignmentBaseline='middle' and textAnchor='end').
Optional
spacingA configuration object indicating how ticks should be spaced alongside the axis. It is an object literal consisting of 2 properties.
mapSpacing
parameterminimumTickSpacing
the most appropriate value will be selected.
//the ticks will be spaced at least 200 pixels apart on the screen.
//The spacing in map coordinates will be one of the allowed values in the array.
//Note that both values specify only approximately how far measuring ticks will be apart.
//If no match can be made that satisfies both constraints, the closest map spacing possible will be used.
var axisConfiguration = {
spacing: {
minimumTickSpacing: 200,
mapSpacing: [1,5,10,50,100,500,1000,5000,10000,50000,100000,500000,1000000,5000000,10000000]
}
};
Optional
subThe size of the sub ticks.
Optional
subThe number of smaller ticks in between the main measuring ticks. These are not labeled.
Optional
tickThe size of the measuring tick drawn on the axis
Optional
tickThe line style of the axis ticks (at each measuring tick). This line style will also be applied to the grid lines, which can be turned on by configuring the gridLine property.
Specifies properties of an axis. It is an object literal in which all properties are optional.
Since
2013.0