Class ZoomToFeatures

java.lang.Object
org.mapfish.print.attribute.map.ZoomToFeatures

public class ZoomToFeatures extends Object
Zoom the map to the features of a specific layer or all features of the map.
  • Field Details

    • zoomType

      public ZoomToFeatures.ZoomType zoomType
      The zoom type. Possible values:
      • extent (default): Set the extent of the map so that all features are visible.
      • center: Set the center of the map to the center of the extent of the features.
    • layer

      public String layer
      The name of the layer whose features will be used. If not set, the features of all vector layers will be used.
    • minScale

      public Double minScale
      The minimum scale that the map is zoomed to.
    • minMargin

      public Integer minMargin
      The minimum margin (in px) from the features to the map border (default: 10).
  • Constructor Details

    • ZoomToFeatures

      public ZoomToFeatures()
  • Method Details