overlayer.js

来自「WebGis基本功能展示」· JavaScript 代码 · 共 25 行

JS
25
字号
Abstract.OverLayer = function(){};Abstract.OverLayer.prototype = {

    initialize: function(mapDiv){
    },
    
    insert: function(){
        if(this.model == null)
            return ;
        if (this.model.overlays == null)
			this.model.overlays = new Array();
		this.model.overlays.push(this);
		this.mapDiv.appendChild(this.div)
    },
    
    remove: function(){
        if(this.model == null)
            return ;
        if (this.model.overlays) {
			this.model.overlays.without(this)
			this.mapDiv.removeChild(this.div);
		}
    }   
    
};

⌨️ 快捷键说明

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