public abstract class AbstractFeatureSourceLayer extends AbstractGeotoolsLayer
| Constructor and Description |
|---|
AbstractFeatureSourceLayer(java.util.concurrent.ExecutorService executorService,
FeatureSourceSupplier featureSourceSupplier,
StyleSupplier<org.geotools.data.FeatureSource> styleSupplier,
boolean renderAsSvg,
AbstractLayerParams params)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.geotools.data.FeatureSource<?,?> |
getFeatureSource(MfClientHttpRequestFactory httpRequestFactory,
MapfishMapContext mapContext)
Get the feature source (either load from the supplier or return the cached source).
|
java.util.List<? extends org.geotools.map.Layer> |
getLayers(MfClientHttpRequestFactory httpRequestFactory,
MapfishMapContext mapContext,
boolean isFirstLayer)
Get the
DataStore object that contains the data for this layer. |
void |
setFeatureCollection(org.geotools.data.simple.SimpleFeatureCollection featureCollection) |
void |
setStyle(StyleSupplier style) |
java.lang.Boolean |
shouldRenderAsSvg()
Is the layer rendered as SVG?
|
getFailOnError, getName, render, supportsNativeRotation, tryAddLayerpublic AbstractFeatureSourceLayer(java.util.concurrent.ExecutorService executorService,
FeatureSourceSupplier featureSourceSupplier,
StyleSupplier<org.geotools.data.FeatureSource> styleSupplier,
boolean renderAsSvg,
AbstractLayerParams params)
executorService - the thread pool for doing the rendering.featureSourceSupplier - a function that creates the feature source. This will only be called once.styleSupplier - a function that creates the style for styling the features. This will only be called once.renderAsSvg - is the layer rendered as SVG?params - the parameters for this layerpublic final void setStyle(StyleSupplier style)
public final org.geotools.data.FeatureSource<?,?> getFeatureSource(MfClientHttpRequestFactory httpRequestFactory, MapfishMapContext mapContext)
httpRequestFactory - The factory for making http requests.mapContext - The map context.public final java.util.List<? extends org.geotools.map.Layer> getLayers(MfClientHttpRequestFactory httpRequestFactory, MapfishMapContext mapContext, boolean isFirstLayer) throws java.lang.Exception
AbstractGeotoolsLayerDataStore object that contains the data for this layer.getLayers in class AbstractGeotoolsLayerhttpRequestFactory - the factory for making http requestsmapContext - the map transformerisFirstLayer - true indicates this layer is the first layer in the map (the first layer drawn, ie the base layer)java.lang.Exceptionpublic final void setFeatureCollection(org.geotools.data.simple.SimpleFeatureCollection featureCollection)
public final java.lang.Boolean shouldRenderAsSvg()