public interface VectorStyleInterface
Modifier and Type | Method and Description |
---|---|
VectorStyle[] |
allStyles()
Return the full list of styles.
|
int |
backgroundColorForZoom(double zoom)
Return a color for the background (clear color).
|
boolean |
layerShouldDisplay(java.lang.String layerName,
TileID tileID)
Returns true if the given layer (by name) should be displayed at all.
|
VectorStyle |
styleForUUID(long uuid,
RenderControllerInterface controller)
Returns a vector style corresponding to the given unique ID.
|
VectorStyle[] |
stylesForFeature(AttrDictionary attrs,
TileID tileID,
java.lang.String layerName,
RenderControllerInterface controller)
Return the styles that match to the given list of attributes.
|
VectorStyle[] stylesForFeature(AttrDictionary attrs, TileID tileID, java.lang.String layerName, RenderControllerInterface controller)
attrs
- The attribute dictionary from the vector feature.tileID
- The tileID if we're building from a tile source. null if not.layerName
- The layer name if the data is coming from vector tiles.controller
- Maply base controller where theVectorStyle[] allStyles()
boolean layerShouldDisplay(java.lang.String layerName, TileID tileID)
layerName
- Name of the layer to be displayed (or not)tileID
- If we're using a tile source, this is the tile ID. If not, it will be null.VectorStyle styleForUUID(long uuid, RenderControllerInterface controller)
uuid
- Unique IDcontroller
- Base controller used for the geometry.int backgroundColorForZoom(double zoom)