Package org.mapfish.print.map.geotools
Class GeoJsonLayer
- java.lang.Object
-
- org.mapfish.print.map.geotools.AbstractGeotoolsLayer
-
- org.mapfish.print.map.geotools.AbstractFeatureSourceLayer
-
- org.mapfish.print.map.geotools.GeoJsonLayer
-
- All Implemented Interfaces:
MapLayer
public final class GeoJsonLayer extends AbstractFeatureSourceLayer
Parses GeoJSON from the request data.Type:
geojson
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoJsonLayer.GeoJsonParam
The parameters for creating a layer that renders GeoJSON formatted data.static class
GeoJsonLayer.Plugin
Renders GeoJSON layers.-
Nested classes/interfaces inherited from interface org.mapfish.print.attribute.map.MapLayer
MapLayer.RenderType
-
-
Constructor Summary
Constructors Constructor Description GeoJsonLayer(java.util.concurrent.ExecutorService executorService, FeatureSourceSupplier featureSourceSupplier, StyleSupplier<org.geotools.api.data.FeatureSource> styleSupplier, boolean renderAsSvg, AbstractLayerParams params)
Constructor.
-
Method Summary
-
Methods inherited from class org.mapfish.print.map.geotools.AbstractFeatureSourceLayer
getFeatureSource, getImageBufferScaling, getLayers, getRenderType, setFeatureCollection, setStyle
-
Methods inherited from class org.mapfish.print.map.geotools.AbstractGeotoolsLayer
getFailOnError, getLayerTransformer, getName, getOpacity, prefetchResources, prepareRender, render, supportsNativeRotation, tryAddLayer
-
-
-
-
Constructor Detail
-
GeoJsonLayer
public GeoJsonLayer(java.util.concurrent.ExecutorService executorService, FeatureSourceSupplier featureSourceSupplier, StyleSupplier<org.geotools.api.data.FeatureSource> styleSupplier, boolean renderAsSvg, AbstractLayerParams params)
Constructor.- Parameters:
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
-
-