当前位置: 首页 > news >正文

网站设计网页主页介绍四川建设网官方网站

网站设计网页主页介绍,四川建设网官方网站,网络设计师证怎么考,wordpress顶部修改文章目录 0.引言1.ArcGIS创建点要素2.ArcGIS Server发布点要素3.ArcgisForJS将ArcGIS创建的点要素渲染为热力图 0.引言 ArcGIS For JS 是一个强大的地理信息系统#xff08;GIS#xff09;工具#xff0c;它允许开发者使用 JavaScript 语言来创建各种 GIS 应用。ArcGIS Ser… 文章目录 0.引言1.ArcGIS创建点要素2.ArcGIS Server发布点要素3.ArcgisForJS将ArcGIS创建的点要素渲染为热力图 0.引言 ArcGIS For JS 是一个强大的地理信息系统GIS工具它允许开发者使用 JavaScript 语言来创建各种 GIS 应用。ArcGIS Server 是 ArcGIS For JS 的一个组件它提供了一个强大的服务用于发布和处理地理空间数据。在 ArcGIS For JS 中你可以使用 ArcGIS Server API 发布点要素数据并通过 ArcGIS Server API 的热力图功能将其渲染为热力图。 1.ArcGIS创建点要素 1新建一个mxd地图文档命名为renderHeatmap    2双击连接地理数据库和ArcGIS Server    3点要素创建并注册    4添加编辑要素的底图    5编辑点要素并添加属性值    6移除底图图层    2.ArcGIS Server发布点要素 在ArcGIS Server中查看。    REST URLhttp://localhost:6080/arcgis/rest/services/renderHeatmap/FeatureServer 3.ArcgisForJS将ArcGIS创建的点要素渲染为热力图 1实现代码 html langen head meta charsetutf-8 / meta nameviewport contentinitial-scale1,maximum-scale1,user-scalableno / titleIntro to heatmap | Sample | ArcGIS Maps SDK for JavaScript 4.28/title link relstylesheet hrefhttps://js.arcgis.com/4.28/esri/themes/light/main.css / style html, body, #viewDiv { padding: 0; margin: 0; height: 100%; width: 100%; } /style script srchttps://js.arcgis.com/4.28//script script require([esri/Map, esri/layers/FeatureLayer, esri/views/MapView, esri/widgets/Legend], ( Map, FeatureLayer, MapView, Legend ) { const urlhttp://localhost:6080/arcgis/rest/services/renderHeatmap/FeatureServer; // Paste the url into a browsers address bar to download and view the attributes // in the CSV file. These attributes include: // * mag - magnitude // * type - earthquake or other event such as nuclear test // * place - location of the event // * time - the time of the event const template { title: 标题, content: 值为{va}。 }; // The heatmap renderer assigns each pixel in the view with // an intensity value. The ratio of that intensity value // to the maxPixel intensity is used to assign a color // from the continuous color ramp in the colorStops property const renderer { type: heatmap, field: va, colorStops: [ { color: rgba(63, 40, 102, 0), ratio: 0 }, { color: #472b77, ratio: 0.083 }, { color: #4e2d87, ratio: 0.166 }, { color: #563098, ratio: 0.249 }, { color: #5d32a8, ratio: 0.332 }, { color: #6735be, ratio: 0.415 }, { color: #7139d4, ratio: 0.498 }, { color: #7b3ce9, ratio: 0.581 }, { color: #853fff, ratio: 0.664 }, { color: #a46fbf, ratio: 0.747 }, { color: #c29f80, ratio: 0.83 }, { color: #e0cf40, ratio: 0.913 }, { color: #ffff00, ratio: 1 } ], maxDensity: 0.01, minDensity: 0 }; const layer new FeatureLayer({ url: url, title: test heatmap, popupTemplate: template, renderer: renderer, labelsVisible: true, labelingInfo: [ { symbol: { type: text, // autocasts as new TextSymbol() color: white, font: { family: Noto Sans, size: 8 }, haloColor: #472b77, haloSize: 0.75 }, labelPlacement: center-center, labelExpressionInfo: { expression: Text($feature.va, #.0) }, where: va 4 } ] }); const map new Map({ basemap: gray-vector, layers: [layer] }); const view new MapView({ container: viewDiv, center: [106.49446091380375, 29.559187456407138], zoom: 10, map: map }); view.ui.add( new Legend({ view: view }), bottom-left ); 点击地图获取经纬度坐标 //view.on(click, evt { // let mapPoint evt.mapPoint; // alert(经度${mapPoint.longitude},纬度${mapPoint.latitude}); //}); }); /script /head body div idviewDiv/div /body /html2实现结果    参考资料 [1] 一入GIS深似海. 不一样的前端JavaScript之arcgis api教程; 2020-11-02 [accessed 2024-02-24]. [2] HPUGIS. ArcGIS API For JS 之render符号渲染); 2018-07-03 [accessed 2024-02-24]. [3] 风衡. JS API 4.0地图渲染之符号一; 2016-08-22 [accessed 2024-02-24]. [4] GIS_KHF. JS API 4.x地图渲染之符号二(转载); 2016-11-10 [accessed 2024-02-24]. [5] 不睡觉的怪叔叔. ArcGIS API For JavaScript官方文档二十之图形和要素图层——③符号和渲染器; 2018-04-13 [accessed 2024-02-24].
http://www.sczhlp.com/news/210785/

相关文章:

  • 团购网站建设流程企业免费邮箱注册申请
  • 网站悬浮做教育的网站需要资质吗
  • 深圳快速网站制作服海阳手机网站开发
  • 用电脑做网站的历史在哪里找平板电脑 做网站开发
  • 电子商务网站建设设计报告营销管理系统
  • 公司网站上传图片大小苏州网站建设基础型
  • 最好的网站优化公司wordpress 导航条
  • 深圳营销型网站建设 宝安西乡优酷视频接到网站怎么做
  • 想自己做网站 有免费的吗备案的博客网站可以做别的吗
  • 做网站拿来卖wordpress+主题稳定
  • 中国做外贸最好的网站wordpress批量发邮件
  • 常做网站首页的文件名校园信息网站开发与设计
  • 台州手机网站制作完整的app网站开发
  • 如何做双版网站广州市公司网站建设公司
  • 上海兴业建设有限公司网站企业展厅设计公司大型
  • 布吉网站的建设包装纸箱怎么做网站
  • 企业建站系统 哪个好网站设计能出来什么
  • 网站后台界面设计wordpress 黑客
  • 深圳住房和建设局官网站做网销好的网站
  • 当今做哪个网站致富用dedecms织梦做中英文网站
  • 下载app 的网站 如何做wordpress友链新窗口
  • 做网站十大公司哪家好网站建设的优势是什么
  • apisix升级完整流程
  • 10.11-10.18 一周总结
  • 10/19/2025 一周总结
  • UML图
  • 博士研究文档管理技术指南
  • 鹰潭网站商城建设徐州模板开发建站
  • 网站外链接如何做网站开发背景图模板
  • 定州网站设计服装设计素材