![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leaflet
cg宁静致远
这个作者很懒,什么都没留下…
展开
-
LeafLet Control 代码分析
LeafLet Control Control 代码分析 Class.extent({ options:{ postions:'topright' }, initialize(options){ Util.setOptions(this,options) }, setPosition(){ map=this._map map.removeControl(this); map.addControl(this原创 2020-09-02 09:25:02 · 414 阅读 · 0 评论 -
leaflet-core 核心代码学习
Leaflet.core Class — 继承基类 继承方法 Child=Parent.extend(props) 继承过程 Class.extend = function (props) { //1 定义新构造函数 var NewClass = function () { // 执行初始化构造函数 if (this.initialize) { this.initialize.apply(this, arguments); } // 执行初始钩子回掉原创 2020-09-02 08:50:39 · 258 阅读 · 0 评论