上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 28 下一页
摘要: let clickSelect = new Select({ condition: click, hitTolerance: 5, }); clickSelect.layerName = 'dangerRiver'; var _this = this; clickSelect.on('select' 阅读全文
posted @ 2021-04-01 15:22 maycpou 阅读(2778) 评论(0) 推荐(0) 编辑
摘要: 使用:name is null。name是字段名。不能使用name = ''的写法。 阅读全文
posted @ 2021-03-29 11:04 maycpou 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1.边框如下所示: 2.使用工具: 3.填写表达式和保存地址: 阅读全文
posted @ 2021-03-26 11:19 maycpou 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 1.需要的数据:一个未配准的栅格数据,一个同地区的准确的矢量数据。 2.查看你的矢量数据的坐标系是什么,这里假设是WGS84的。那么首先打开arcmap将图层框的坐标系设置为WGS84: 3.导入你的栅格图层 4.右键你导入的栅格图层:data=>export data,在弹出框中设置导出图层: 5 阅读全文
posted @ 2021-03-26 11:13 maycpou 阅读(2513) 评论(0) 推荐(0) 编辑
摘要: 1.按每个节点打散 Data management tools/features/split line at vertices 2.按照线的相交点打断 打开高级编辑工具条=》开启编辑状态=》选择需要打断的线=》工具条中选择planarize lines 阅读全文
posted @ 2021-03-25 18:23 maycpou 阅读(300) 评论(0) 推荐(0) 编辑
摘要: turf.js官网:https://turfjs.org/ 中文网:https://turfjs.fenxianglu.cn/ 1.npm安装turf.js:npm install @turf/turf 2.引入: import Point from 'ol/geom/Point'; import  阅读全文
posted @ 2021-03-25 18:22 maycpou 阅读(1535) 评论(0) 推荐(0) 编辑
摘要: 1.比如一个有三个点的对象 let obj = [[1,1],[2,2],[3,3]]; 2.用这三个点的坐标生成一个图层加载到地图上 let features = new Array(); for (let i = 0; i < obj .length; i++) { let point = ne 阅读全文
posted @ 2021-03-24 11:19 maycpou 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1.点 (1)以一个圆来表示点 new Style({ image: new CircleStyle({ radius: 5,//半径 fill: //填充的颜色 new Fill({ color: 'rgba(0, 0, 255, 0.1)' //color: feature.values_.fi 阅读全文
posted @ 2021-03-24 10:10 maycpou 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 1.项目中我们经常要引用别人的包,很多时候我们使用的仅仅是别人包里面的几个方法或者样式,如果打包的时候将别人的包整个打包进行,就多了很多无用的代码,所以需要将这些无用的代码去掉。 2.去掉无用的js代码:这个功能webpack已经自带了,前提是我们要用es6的方式引用和导出包,并且打包的模式要为pr 阅读全文
posted @ 2021-03-20 10:44 maycpou 阅读(2075) 评论(0) 推荐(0) 编辑
摘要: 1.配置了dev-server的好处是,可以将我们打包后的文件作为一个后台服务启动,然后在浏览器中打开启动的地址就可以浏览我们打包出来的网页了。并且可以在我们代码改动后自动重新打包刷新网页。就不用我们每次手动打包,打包后需要自己找到打包后的文件在浏览器打开。 2.安装包:npm install we 阅读全文
posted @ 2021-03-20 09:48 maycpou 阅读(223) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 28 下一页