⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wfsmapfunctionality.java

📁 esri的ArcGIS Server超级学习模板程序(for java)
💻 JAVA
字号:
package com.esri.solutions.jitk.web.wfs.data;

import java.io.InputStream;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import com.esri.adf.web.data.GISResource;
import com.esri.adf.web.data.MapFunctionality;
import com.esri.adf.web.data.geometry.WebExtent;

public class WFSMapFunctionality implements MapFunctionality {
	private static final Logger _logger = LogManager.getLogger(WFSMapFunctionality.class);
	
	protected WFSMapResource _wfsMapResource = null;
	protected WebExtent _webCurrentExt = null;
	protected GISResource _gisResource = null;
	protected double _transparency = 0;
	protected boolean _isDisabled = true;
	
	public InputStream exportImage() {
		return null;
	}

	public WebExtent getCurrentExtent() {
		return _webCurrentExt;
	}

	public WebExtent getFullExtent() {
		return _wfsMapResource.getFullExtent();
	}

	public WebExtent getInitialExtent() {
		return _wfsMapResource.getFullExtent();
	}

	public double getMapScale() {
		return 0;
	}

	public double getTransparency() {
		return 0;
	}

	public boolean isDisabled() {
		return _isDisabled;
	}

	public void setCurrentExtent(WebExtent arg0) {
		_webCurrentExt = arg0;
	}

	public void setDisabled(boolean isDisabled) {
		_isDisabled = isDisabled;
	}

	public void setTransparency(double transparency) {
		_transparency = transparency;
	}

	public void destroyFunctionality() {		
	}

	public GISResource getResource() {
		return _gisResource;
	}

	public void initFunctionality(GISResource resource) {
		_gisResource = resource;
		
		_wfsMapResource = null;
		_logger.debug("Initializing Query functionality with GISResource");
		
		if (resource != null) {
			if (resource instanceof WFSMapResource) {
				_wfsMapResource = (WFSMapResource) resource;
			}
			else {
				_logger.error("Initialized with non-WfsMapResource");
			}
		}
		else {
			_logger.error("Initialized with null GISResource");
		}		
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -