OpenLayers를 확장합니다.Map 객체
/**  OpenLayers.Map,                 。
 * 
 */
Vgs.WebMap=OpenLayers.Class(OpenLayers.Map,{
	initialize:function(div,options)
	{
		if(!options)options={};
			options['controls']=[];
		OpenLayers.Map.prototype.initialize.apply(this,[div,options]);
			
		var extent = new OpenLayers.Bounds(-180,-90,180,90);
		this.bounds=extent;
		this.units="degree";
		this.numZoomLevels=16;
		this.maxResolution=(re1>re2?re1:re2);
		this.maxExtent=extent;
		
		this.restrictedExtent=extent;
		this.div.oncontextmenu = function () { return false;};
			
		var markerlyr= new OpenLayers.Layer.Markers(AppConfig.markerLyrName,{
			displayInLayerSwitcher:false,
			isBaseLayer: false
		});
		this.addLayer(markerlyr);
	},
	/**          
	 * 
	 * @param {} name     
	 * @param {} isBlyr        
	 * @param {} visible     
	 * @param {} array       
	 * @param {} type         
	 * @return {}
	 */
	createALayer:function(name,isBlyr,visible,array,type)
	{
		if(!type||type.length<=0)type='o';
		var templyr =  new OpenLayers.Layer.WMS(
				name,"./map/wmsproxy.jsp?mtype="+type, 
	   			{layers :array,format : "image/png",transparent: "true"}
	   			,{isBaseLayer:isBlyr,visibility:visible}
		);
		return templyr;
	},
	CLASS_NAME:"Vgs.WebMap"
});
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
JSP| EL (Experession Language)텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.