Class RenderOptions

java.lang.Object
dev.avelar.mapnik.RenderOptions

public final class RenderOptions extends Object
Options for rendering a map. Immutable: each method returns a changed copy.
  • Method Details

    • defaults

      public static RenderOptions defaults()
      Scale factor 1, no offset.
    • scaleFactor

      public RenderOptions scaleFactor(double factor)
      Scale line widths, symbols and text by this factor without changing the image size: 1.0 is normal, 2.0 suits an image rendered at twice the pixel size for a high-dpi screen. Must be above 0.
    • offset

      public RenderOptions offset(int x, int y)
      Treat the image as a window that starts at pixel (x, y) of a larger map image, so the drawing moves left by x and up by y. Useful for rendering a big map in pieces. Not used for PDF, SVG and PS output.
    • scaleFactor

      public double scaleFactor()
    • offsetX

      public int offsetX()
    • offsetY

      public int offsetY()
    • toString

      public String toString()
      Overrides:
      toString in class Object