org.mapfish.print.map.AbstractLayerParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of print-lib Show documentation
Show all versions of print-lib Show documentation
Library for generating PDFs and images from online webmapping services
package org.mapfish.print.map;
import org.mapfish.print.parser.HasDefaultValue;
/**
* Contains common properties to all layers.
*/
public class AbstractLayerParams {
/**
* The opacity of the image.
*/
@HasDefaultValue
public double opacity = 1.0;
/**
* The name of the layer.
*/
@HasDefaultValue
public String name = "";
/**
* Fail if a tile return an error.
*/
@HasDefaultValue
public boolean failOnError = false;
/**
* Constructor.
*/
public AbstractLayerParams() {
}
/**
* Copy constructor.
*
* @param other the object to copy
*/
public AbstractLayerParams(final AbstractLayerParams other) {
this.opacity = other.opacity;
this.name = other.name;
this.failOnError = other.failOnError;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy