public class MapTypeStyleOptions extends Options
| Modifier and Type | Field and Description |
|---|---|
String |
elementType
The element to which a styler should be applied.
|
String |
featureType
The feature, or group of features, to which a styler should be applied.
|
List<Styler<?>> |
stylers
The style rules to apply to the selected map features and elements.
|
| Constructor and Description |
|---|
MapTypeStyleOptions() |
@Option public String elementType
Elements are subdivisions of a feature. A road, for example, consists of the graphical line (the geometry) on the map, and also the text denoting its name (a label). The following elements are available, but note that a specific feature may support none, some, or all, of the elements:
@Option public String featureType
Features, or feature types, are geographic characteristics on the map, including roads, parks, bodies of water, businesses, and more. The features form a category tree, with all as the root. If you don't specify a feature, all features are selected. Specifying a feature of all has the same effect. Some features contain child features you specify using a dot notation. For example, landscape.natural or road.local. If you specify only the parent feature, such as road, the styles you specify for the parent apply to all its children, such as road.local and road.highway. Note that parent features may include some elements that are not included in all of their child features. The following features are available:
@Option public final List<Styler<?>> stylers
Style rules are applied in the order that you specify. Do not combine multiple operations into a single style operation. Instead, define each operation as a separate entry in the style array. Note: Order is important, as some operations are not commutative. Features and/or elements that are modified through style operations (usually) already have existing styles. The operations act on those existing styles, if present.
Copyright © 2018 Fujion Framework. All rights reserved.