Class FeatureLayer

All Implemented Interfaces:
MapLayer

public final class FeatureLayer extends AbstractFeatureSourceLayer
A layer to render GeoTools features.

This layer type is only intended for internal use, for example to render the bbox rectangle in the overview map.

  • Constructor Details

    • FeatureLayer

      public FeatureLayer(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
  • Method Details

    • prepareRender

      public MapLayer.LayerContext prepareRender(MapfishMapContext transformer, MfClientHttpRequestFactory clientHttpRequestFactory)
      Description copied from interface: MapLayer
      Render the layer to the graphics2D object.
      Parameters:
      transformer - the map transformer containing the map bounds and size.
      clientHttpRequestFactory - the factory to use for making http requests.
      Returns:
      the LayerContext for this requested rendering.
    • getImageBufferScaling

      public double getImageBufferScaling()