上一页 1 2 3 4 5 6 7 8 9 10 ··· 36 下一页

使用ant的checkboxGroup将列表信息添加为多选框,并根据多选框的转换进行操作

摘要: 使用的数据(放到script的data()中) taskList: [], taskListOptions: [], taskItems: [], ops: { vuescroll: {}, scrollPanel: {}, rail: { keepShow: true }, bar: { hove 阅读全文
posted @ 2021-08-30 10:12 一往无前! 阅读(2199) 评论(0) 推荐(0)

arcgis api绘制多个点

摘要: 从网上找了好多教程,大多数都是实现点击一次按钮绘制一个点,无法实现一次性绘制多个点的功能。最后还是官方文档靠谱提供了现成的方法。 首先需要定义一个按钮用于触发绘制事件 <button id="btn_multipoint">绘制多个点</button> const btn_multipoint = 阅读全文
posted @ 2021-08-30 09:54 一往无前! 阅读(480) 评论(0) 推荐(0)

使用hittest获取点击要素的属性值

摘要: 在项目中会用到点击要素,显示当前点击要素的相关属性,需要进行弹窗的显示,而官方自带的popup不符合界面的要求,所以就是想着在获取到对应的属性值,在自己定义的div中进行显示。查阅了很多资料,发现可以使用hittest方法轻松获取到这些属性值。 view.on("click", function ( 阅读全文
posted @ 2021-08-27 10:52 一往无前! 阅读(157) 评论(0) 推荐(0)

地图坐标的转换

摘要: 需要引入的类为 import {transform, transformExtent, fromLonLat} from "ol/proj"; view中进行坐标的转换 var view = new View({ projection: "EPSG:3857", //使用这个坐标系 center: 阅读全文
posted @ 2021-08-26 10:31 一往无前! 阅读(202) 评论(0) 推荐(0)

FeatureLayer图层的属性查询方式(query的使用方法)

摘要: 以csvLayer为例: view .whenLayerView(csvLayer) .then(function(csvLayerView) { const queryStations = csvLayerView.createQuery(); queryStations.where = "sta 阅读全文
posted @ 2021-08-26 09:43 一往无前! 阅读(273) 评论(0) 推荐(0)

使用LayerView.effect进行点的高亮显示

摘要: 通过设置一个按钮事件通过,设置一个简单的查询条件,对查找到的元素进行高亮显示,对于其他元素进行遮盖处理。 const btn = document.getElementById("btn"); btn.addEventListener("click",function(){ view .whenLa 阅读全文
posted @ 2021-08-25 18:07 一往无前! 阅读(52) 评论(0) 推荐(0)

获取图层中的属性值

摘要: Arcgis api for js从图层中获取字段的值 function getGraphics(response) { // the topmost graphic from the hurricanesLayer // and display select attribute values fr 阅读全文
posted @ 2021-08-20 18:06 一往无前! 阅读(174) 评论(0) 推荐(0)

设置sceneView的背景

摘要: 设置sceneView的背景 const view = new SceneView({ container: "viewDiv", map: map, //高亮显示选中的图层 highlightOptions: { haloOpacity: 0 }, environment: { //设置背景 ba 阅读全文
posted @ 2021-08-20 18:04 一往无前! 阅读(178) 评论(0) 推荐(0)

arcgis api中save map

摘要: 保存地图 需要引入的模块: import WebMap from "@arcgis/core/WebMap"; 首先声明一个webmap,引入底图 const webmap = new WebMap({ portalItem: { // autocasts as new PortalItem() i 阅读全文
posted @ 2021-08-20 18:03 一往无前! 阅读(149) 评论(0) 推荐(0)

render的使用方法

摘要: const seattleLayer = new FeatureLayer({ url: "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Puget_Sound_BG_demographics/FeatureSer 阅读全文
posted @ 2021-08-20 17:57 一往无前! 阅读(110) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 36 下一页