public final class GeoJsonLayer extends AbstractFeatureSourceLayer
Parses GeoJSON from the request data.
Type: geojson
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoJsonLayer.GeoJsonParam
The parameters for creating a layer that renders GeoJSON formatted data.
|
static class |
GeoJsonLayer.Plugin
Renders GeoJSON layers.
|
MapLayer.RenderType| Constructor and Description |
|---|
GeoJsonLayer(java.util.concurrent.ExecutorService executorService,
FeatureSourceSupplier featureSourceSupplier,
StyleSupplier<org.geotools.data.FeatureSource> styleSupplier,
boolean renderAsSvg,
AbstractLayerParams params)
Constructor.
|
getFeatureSource, getImageBufferScaling, getLayers, getRenderType, setFeatureCollection, setStylecacheResources, getFailOnError, getLayerTransformer, getName, getOpacity, prepareRender, render, supportsNativeRotation, tryAddLayerpublic GeoJsonLayer(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 layer