![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Leaflet
文章平均质量分 80
ShangQuan2012
这个作者很懒,什么都没留下…
展开
-
Leaflet地图初始化时对 prototype引用造成的影响
今天上午在对Leaflet地图的点添加点击事件的时候发现,Leaflet的初始化可能会对prototype中函数对prototype其他函数引用造成影响,在渲染地图时,一般讲gis 传入对应的渲染方法中。具体参见如下代码:(function ($) { Demo = function(element,options){ gis = this; //在原创 2017-05-25 11:12:24 · 788 阅读 · 0 评论 -
Leaflet的make(图标)点击事件的绑定,并且附加其他信息
(function ($) { Demo = function(element,options){ gis = this; //在renderMap中传入gis对象。前几次不传发现失败,不能调用 //protorype其他的函数。 gis.renderMap(gis); //打点函数,可以写在插件内部或者外部原创 2017-05-25 11:23:39 · 7426 阅读 · 0 评论