public abstract class AbstractFeatureSourceLayer extends AbstractGeotoolsLayer
MapLayer.RenderType| 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).
|
double |
getImageBufferScaling()
Get the scale ratio between the tiles resolution and the target resolution.
|
java.util.List<? extends org.geotools.map.Layer> |
getLayers(MfClientHttpRequestFactory httpRequestFactory,
MapfishMapContext mapContext,
Processor.ExecutionContext context)
Get the
DataStore object that contains the data for this layer. |
MapLayer.RenderType |
getRenderType()
Specify whether layer should be rendered as PNG, JPEG or SVG.
|
void |
setFeatureCollection(org.geotools.data.simple.SimpleFeatureCollection featureCollection) |
void |
setStyle(StyleSupplier style) |
getFailOnError, getLayerTransformer, getName, getOpacity, prefetchResources, prepareRender, 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(@Nonnull
MfClientHttpRequestFactory httpRequestFactory,
@Nonnull
MapfishMapContext mapContext)
httpRequestFactory - The factory for making http requests.mapContext - The map context.public final java.util.List<? extends org.geotools.map.Layer> getLayers(@Nonnull
MfClientHttpRequestFactory httpRequestFactory,
@Nonnull
MapfishMapContext mapContext,
@Nonnull
Processor.ExecutionContext context)
AbstractGeotoolsLayerDataStore object that contains the data for this layer.getLayers in class AbstractGeotoolsLayerhttpRequestFactory - the factory for making http requestsmapContext - the map transformercontext - the job IDpublic final void setFeatureCollection(org.geotools.data.simple.SimpleFeatureCollection featureCollection)
public final MapLayer.RenderType getRenderType()
MapLayerpublic final double getImageBufferScaling()
MapLayer