public class VectorStyleSimpleGenerator extends java.lang.Object implements VectorStyleInterface
Modifier and Type | Class and Description |
---|---|
class |
VectorStyleSimpleGenerator.VectorStyleSimple
Base class for our vector style implementations.
|
class |
VectorStyleSimpleGenerator.VectorStyleSimpleLinear
For linears we turn them into random linear features.
|
class |
VectorStyleSimpleGenerator.VectorStyleSimplePoint
For points we just turn them into labels for demonstration.
|
class |
VectorStyleSimpleGenerator.VectorStyleSimplePolygon |
Constructor and Description |
---|
VectorStyleSimpleGenerator(RenderControllerInterface inControl) |
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)
We'll display all layers
|
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)
We'll return a point, line, or areal vector style
|
public VectorStyleSimpleGenerator(RenderControllerInterface inControl)
public VectorStyle[] stylesForFeature(AttrDictionary attrs, TileID tileID, java.lang.String layerName, RenderControllerInterface controller)
stylesForFeature
in interface VectorStyleInterface
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 thepublic boolean layerShouldDisplay(java.lang.String layerName, TileID tileID)
layerShouldDisplay
in interface VectorStyleInterface
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.public VectorStyle styleForUUID(long uuid, RenderControllerInterface controller)
VectorStyleInterface
styleForUUID
in interface VectorStyleInterface
uuid
- Unique IDcontroller
- Base controller used for the geometry.public VectorStyle[] allStyles()
VectorStyleInterface
allStyles
in interface VectorStyleInterface
public int backgroundColorForZoom(double zoom)
VectorStyleInterface
backgroundColorForZoom
in interface VectorStyleInterface