All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mapfish.print.map.AbstractLayerParams Maven / Gradle / Ivy

There is a newer version: 3.22.0
Show newest version
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