Leaflet.imageTransform通过四个锚点变换图像
Leaflet.imageTransform用于处理变形图像的插件。变换由地图上的四个锚点定义,对应于图像的角。图像也可以被任意多边形裁剪。
用法
// TopLeft, TopRight, BottomLeft
var anchors = [
[56.344, 136.595],
[56.344, 137.878],
[55.613, 136.595]],
clipCoords = [
[56.301, 136.905],
[56.150, 137.839],
[55.639, 137.531],
[55.788, 136.609],
[5
下载地址
用户评论