public static final class FeatureLayer.Plugin extends AbstractFeatureSourceLayerPlugin<FeatureLayer.FeatureLayerParam>
FeatureLayer layers from request data.forkJoinPool, parser| Constructor and Description |
|---|
Plugin()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureLayer.FeatureLayerParam |
createParameter()
Create an instance of a param object.
|
protected StyleSupplier<org.geotools.data.FeatureSource> |
createStyleFunction(Template template,
java.lang.String styleString,
java.lang.String defaultStyleName)
Create a function that will create the style on demand.
|
FeatureLayer |
parse(Template template,
FeatureLayer.FeatureLayerParam param)
Inspect the json data and return Optional<MapLayer> or Optional.absent().
|
createStyleFunction, getTypeNames, setParserpublic FeatureLayer.FeatureLayerParam createParameter()
MapLayerFactoryPluginAttribute value objects.
See
ReflectiveAttribute.createValue(org.mapfish.print.config.Template)()}
for details on how the parsing mechanism works.@Nonnull public FeatureLayer parse(@Nonnull Template template, @Nonnull FeatureLayer.FeatureLayerParam param) throws java.io.IOException
MapLayerFactoryPlugintemplate - the configuration related to the current request.param - an object populated from the json for the layerjava.io.IOExceptionprotected StyleSupplier<org.geotools.data.FeatureSource> createStyleFunction(Template template, java.lang.String styleString, java.lang.String defaultStyleName)
template - the template for this mapstyleString - a string that identifies a style.defaultStyleName - a custom name for the default style. If null, the default style is selected
depending on the geometry type.