03 2017 档案

摘要:function PathBack() { var PVLayer = new ol.layer.Vector({ source: new ol.source.Vector({}) }); var pointList = new Array(); map.addLayer(PVLayer); ... 阅读全文
posted @ 2017-03-17 13:37 破碎s 阅读(5854) 评论(0) 推荐(0)
摘要://经纬度转墨卡托 public Vector2D lonLat2Mercator(Vector2D lonLat) { Vector2D mercator = new Vector2D(); double x = lonLat.X * 20037508.34 / 180; double y ... 阅读全文
posted @ 2017-03-16 15:12 破碎s 阅读(583) 评论(0) 推荐(0)
摘要:就是在鼠标移动到feature上的时候,鼠标样式更改成手势标记。 阅读全文
posted @ 2017-03-15 15:31 破碎s 阅读(1955) 评论(0) 推荐(0)
摘要:1 //划线 2 this.drawLine = function (type) { 3 //清除双击放大效果 4 this.map.getInteractions().item(1).setActive(false); 5 var draw = new ol.interaction.Draw({ 6 ... 阅读全文
posted @ 2017-03-15 15:27 破碎s 阅读(8316) 评论(0) 推荐(0)