utility

Browser

检测浏览器及浏览器功能支持

if (L.Browser.ielt9) { alert('Upgrade your browser, dude!');}
UTIL

种效用函数,内部由Leaflet使用。

Transformation

仿射变换

var transformation = L.transformation(2, 5, -1, 10),
    p = L.point(1, 2),
    p2 = transformation.transform(p), //  L.point(7, 8)
    p3 = transformation.untransform(p2); //  L.point(1, 2)
LineUtil

操作线要素工具函数

simplify   简化线
pointToSegmentDistance   计算点线最近距离
closestPointOnSegment   计算点到线的最近点
clipSegment   裁剪线
PolyUtil

操作面要素工具函数
clipPolygon 裁剪面

转载自:https://blog.csdn.net/weixin_34310369/article/details/87218449

You may also like...

退出移动版