
leaflet
hdtrs2010
寻求技术帝的帮助~~~
展开
-
Leaflet 地图中绘制多边形
直接上源码,双击完成多边形。(使用源码前请去官网下载js文件) 可以画多个多边形 var cloudmadeUrl = 'http://{s}.tile.cloudmade.com/BC9A493B41014CAABB98F0471D759707/997/256/{z}/{x}/{y}.png', cloudmade =转载 2014-02-18 11:00:57 · 9399 阅读 · 1 评论 -
Leaflet API 翻译
L.Point显示以像素为单位的点的x,y坐标。所以接受点对象的leaflet方法和选项都也接受他们简单数组的形式。Constructor(函数构造器)L.Point():用给定点的x和y坐标来创建点对象。如果round设置为true,则将x和y的值转换为圆中。?Properties(属性)x:x坐标。y:y坐标。Meth转载 2014-05-04 10:16:39 · 10603 阅读 · 0 评论 -
Leaflet API 翻译(上)
L.MapAPI各种类中的核心部分,用来在页面中创建地图并操纵地图。Constructor(构造器)通过div元素和带有地图选项的描述的文字对象来实例化一个地图对象,其中文字对象是可选的。Options(选项)Map State Options(地图状态选项)centre(中心):初始化地图的地理中心。zoom(缩放):初始化地图的缩转载 2014-05-04 10:17:54 · 20710 阅读 · 0 评论 -
【Leafletjs】L.Map 中文API
L.MapAPI各种类中的核心部分,用来在页面中创建地图并操纵地图.使用 example// initialize the map on the "map" div with a given center and zoomvar map = L.map('map', { center: [51.505, -0.09], zoom: 13});构造器转载 2014-04-11 09:38:28 · 20228 阅读 · 3 评论 -
【Leafletjs】L.Control 自定义一个Control
L.Control所有leaflet控制的基础类。继承自IControl接口。 你可以这样添加控件:control.addTo(map);// the same asmap.addControl(control);构造器构造器使用描述L.Control( Control options> options? )n转载 2014-04-11 09:37:09 · 5098 阅读 · 0 评论