Package dev.avelar.mapnik
Class RenderOptions
java.lang.Object
dev.avelar.mapnik.RenderOptions
Options for rendering a map. Immutable: each method returns a changed copy.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RenderOptionsdefaults()Scale factor 1, no offset.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.intoffsetX()intoffsetY()doublescaleFactor(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.toString()
-
Method Details
-
defaults
Scale factor 1, no offset. -
scaleFactor
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
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
-