09 2023 档案
摘要:实现效果 代码 从react-native中引入 import { Animated, Easing, } from 'react-native'; js实现 const opacity1 = useRef(new Animated.Value(0.2)).current; const opacit
阅读全文
摘要:实现效果 代码如下 const mapView = Global.map let trackLayer = new GraphicsLayer() let moveLayer = new GraphicsLayer() mapView.map.addMany([trackLayer, moveLay
阅读全文
摘要:实现效果 代码如下 ToolBox.vue <template> <a-popover trigger="click"> <a-button>工具箱</a-button> <template #content> <a-button type="text" class="btn" @click="()
阅读全文
摘要:实现效果 代码如下 const setPoint = () => { const data = [ { id: 11, poi: [120.28985, 31.54225], name: '金塘泵站' }, { id: 22, poi: [120.28985, 31.54725], name: '朝
阅读全文
摘要:在Arco Design组件库中,table组件 默认只有行的边框,如下图: 文档中 bordered 属性的描述: 那么我们给bordered添加 { cell: true } 即可,修改代码如下: <a-table :bordered="{ cell: true }" :columns="col
阅读全文
摘要:在地图做面积测量时竟然出现了负值,查阅资料后发现: ArcGIS默认顺时针图形为正,手工画polygon的时候不管怎么画结果都是顺时针的。所以一般负值的出现是转换过程出现问题,polygon是由ring组成的,ring则是有更小的segement(line,circularArc,elliptica
阅读全文
摘要:1、在视图mapView 上添加的点线面 // 删除所有 mapView.graphics.removeAll(); // 删除一个 const pointGraphic = new Graphic({geometry, symbol}) mapView.graphics.remove(pointG
阅读全文
摘要:实现代码 使用ArcGIS API for JS4.8绘制点(Point)、线(Polyline)、面(Polygon)、矩形(Rectangle)、圆(Circle),使用Draw绘制,具体代码如下: <!DOCTYPE html> <html> <head> <meta charset="utf
阅读全文
摘要:错误代码一: useEffect(async()=>{ await myFunc(); },[]) const myFunc = async()=>{...}; 错误代码二: useEffect(()=>myFunc(),[]) const myFunc = async()=>{...}; 以上写法
阅读全文
摘要:## 问题 点击后弹出气泡的功能,但是只在第一次点击时正常展示气泡,之后点击无反应,代码如下 ``` mapView.on('click', (e: any) => { mapView.hitTest(e).then((e2: any) => { e2.results.forEach((e3: an
阅读全文

浙公网安备 33010602011771号