Specifies the appearance of the loading indicator.
In most cases, a vector map is quick enough to draw itself instantly for a viewer. There are cases, however, when the vector map takes longer to be drawn. In these cases, it is recommended that the loading indicator is displayed. Use the vector map's showLoadingIndicator() and hideLoadingIndicator() methods to manage the loading indicator. To specify its appearance, use the loadingIndicator configuration object.
In this example, the map options are assigned 3000 ms after the example is loaded. Until that time, the loading indicator is displayed. Its background and font are changed using the backgroundColor and font options respectively. Make a note that these options should be specified at design-time so that the changes are applied at the right time.
Specifies a color for the loading indicator background.
This option supports the following colors.
- Hexadecimal colors
- RGB colors
- RGBA colors (not supported in Internet Explorer 8)
- Predefined/cross-browser color names
- Predefined SVG colors (not supported in Internet Explorer 8)
Specifies font options for the loading indicator text.
Specifies a text to be displayed by the loading indicator.