arcgis api
Y青阳
冲啊
展开
-
Cesium笔记 计算两点之间得距离(经纬度)
//计算两点间距离getFlatternDistance(lat1,lng1,lat2,lng2){varEARTH_RADIUS=6378137.0//单位MvarPI=Math.PIfunctiongetRad(d){return(d*PI)/180.0}varf=getRad((lat1+lat2)/2)varg=getRad(...原创 2021-06-29 10:01:08 · 401 阅读 · 0 评论 -
地图打印 js
//arcgis api 地图打印mapPrint() { this.$message('请绘制多边形'); this.toolBars = new mapModules.Draw(map); this.toolBars.activate(mapModules.Draw.POLYGON); this.toolBars.on("draw-end", (evt) => { let graphic = new mapModules.Graphic(evt..原创 2021-05-05 11:38:44 · 316 阅读 · 0 评论 -
arcgis for js 求线与线的交点
//求多段线的交点 polyLinesIntersection(polyline, polyline2) { let result = []; for (let j = 0; j < polyline.length - 1; j++) { let tempLine = [polyline[j], polyline[j + 1]]; f.原创 2021-04-29 11:20:06 · 751 阅读 · 1 评论 -
arcgis api 根据坐标串生成多边形,并添加到地图
let point = [[],[], [], [], [], [],[], [],[], [],[]];//坐标串,实例[[118.00,23.0],[118.01,32.01]] let polyGon = new mapModules.Polygon([point], new mapModules.SpatialReference({wkid:4326}));//arcgis api的数据格式 所以添加的数据[point] let s..原创 2021-05-11 10:06:26 · 897 阅读 · 0 评论