110 lines
1.7 KiB
Java
110 lines
1.7 KiB
Java
|
package org.gcube.portlets.user.geoportaldataviewer.shared.gis;
|
||
|
|
||
|
import java.io.Serializable;
|
||
|
|
||
|
/**
|
||
|
* The Class BaseMapLayer.
|
||
|
*
|
||
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
||
|
*
|
||
|
* Nov 11, 2021
|
||
|
*/
|
||
|
public class BaseMapLayer implements Serializable {
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private static final long serialVersionUID = -6204769725053516674L;
|
||
|
|
||
|
/**
|
||
|
* The Enum OL_BASE_MAP.
|
||
|
*
|
||
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
||
|
*
|
||
|
* Nov 11, 2021
|
||
|
*/
|
||
|
public static enum OL_BASE_MAP {
|
||
|
OSM, MAPBOX, OTHER
|
||
|
};
|
||
|
|
||
|
private String url;
|
||
|
private String attribution;
|
||
|
private OL_BASE_MAP type;
|
||
|
|
||
|
/**
|
||
|
* Instantiates a new base map layer.
|
||
|
*/
|
||
|
public BaseMapLayer() {
|
||
|
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Instantiates a new base map layer.
|
||
|
*
|
||
|
* @param url the url
|
||
|
* @param attribution the attribution
|
||
|
* @param type the type
|
||
|
*/
|
||
|
public BaseMapLayer(String url, String attribution, OL_BASE_MAP type) {
|
||
|
super();
|
||
|
this.url = url;
|
||
|
this.attribution = attribution;
|
||
|
this.type = type;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Gets the url.
|
||
|
*
|
||
|
* @return the url
|
||
|
*/
|
||
|
public String getUrl() {
|
||
|
return url;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Gets the attribution.
|
||
|
*
|
||
|
* @return the attribution
|
||
|
*/
|
||
|
public String getAttribution() {
|
||
|
return attribution;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Gets the type.
|
||
|
*
|
||
|
* @return the type
|
||
|
*/
|
||
|
public OL_BASE_MAP getType() {
|
||
|
return type;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Sets the url.
|
||
|
*
|
||
|
* @param url the new url
|
||
|
*/
|
||
|
public void setUrl(String url) {
|
||
|
this.url = url;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Sets the attribution.
|
||
|
*
|
||
|
* @param attribution the new attribution
|
||
|
*/
|
||
|
public void setAttribution(String attribution) {
|
||
|
this.attribution = attribution;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Sets the type.
|
||
|
*
|
||
|
* @param type the new type
|
||
|
*/
|
||
|
public void setType(OL_BASE_MAP type) {
|
||
|
this.type = type;
|
||
|
}
|
||
|
|
||
|
}
|