Class ImageLayer

All Implemented Interfaces:
MapLayer

public final class ImageLayer extends AbstractSingleImageLayer
Reads an image file from a URL.
  • Method Details

    • loadImage

      protected BufferedImage loadImage(MfClientHttpRequestFactory requestFactory, MapfishMapContext transformer)
      Description copied from class: AbstractSingleImageLayer
      Load the image at the requested size for the provided map bounds.
      Specified by:
      loadImage in class AbstractSingleImageLayer
      Parameters:
      requestFactory - the factory to use for making http requests
      transformer - object containing map rendering information
    • getRenderType

      public MapLayer.RenderType getRenderType()
      Description copied from interface: MapLayer
      Specify whether layer should be rendered as PNG, JPEG or SVG.
      Returns:
      render type
    • 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.