【GIS】ArcGIS JS 4.X
require(["esri/Map",
"esri/views/SceneView",
"esri/TileLayer/TdtMapLayer/TdtAnoMapLayer",
"esri/config",
"esri/layers/FeatureLayer",
"esri/widgets/Legend",
"dojo/domReady!"],
function (e, t, i, a, n, s) {
var r = {
type: "simple",
symbol: { type: "web-style", styleName: "esriRealisticTreesStyle", name: "Other" },
label: "tree",
visualVariables: [{ type: "size", axis: "height", field: "Height", valueUnit: "feet" },
{ type: "size", axis: "width", field: "Width_EW", valueUnit: "feet" },
{ type: "size", axis: "depth", field: "Width_NS", valueUnit: "feet" },
{
type: "color", field: "C_Storage", stops: [{ value: 0, color: "#f7fcb9" },
{ value: 1e4, color: "#31a354" }], legendOptions: { title: "Carbon Storage" }
}]
},
o = new n({
url: "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0",
renderer: r, outFields: ["*"],
popupTemplate: {
title: "{Cmn_Name}",
content: "<i>{Sci_Name}</i><br>This tree is in {Condition} condition and is {Height} feet in height."
}
}),
l = new e({ basemap: "satellite", ground: "world-elevation", layers: [o] })
if (a.request.corsEnabledServers.push("services.arcgisonline.com",
"t0.tianditu.cn", "t1.tianditu.cn", "t2.tianditu.cn", "t3.tianditu.cn",
"t4.tianditu.cn", "t5.tianditu.cn", "t6.tianditu.cn", "t7.tianditu.cn", "t8.tianditu.cn"),
"undefined" == typeof BaseMapTile || null == BaseMapTile) {
var d = i.InitTdtAnoMap()
BaseAnoTile = new d({
urlTemplate: "http://t{num}.tianditu.cn/cia_w/wmts?service=wmts&request=GetTile&version=1.0.0&LAYER=cia&tileMatrixSet=w&TileMatrix={z}&TileRow={y}&TileCol={x}&style=default&format=tiles"
}), l.layers.add(BaseAnoTile)
}
var c = new t({
container: "MtMap", map: l,
camera: {
position: {
x: -9177356, y: 4246783, z: 723,
spatialReference: { wkid: 3857 }
}, heading: 0, tilt: 83
},
popup: { dockEnabled: !0, dockOptions: { breakpoint: !1 } },
environment: { lighting: { directShadowsEnabled: !0 } }
})
this.MenuNav(), this.MenuMap(), c.ui._removeComponents(["attribution"]), c.ui._removeComponents(["attribution"]),
c.when(function () { })["catch"](function () {
JQuery("#MtMap").css("display", "none"),
JQuery("#NotSupportedDiv").css("display", "block")
})
})
【GIS】ArcGIS JS 4.X的更多相关文章
- 【GIS】ArcGIS Server密码
1.C:\Program Files\ArcGIS\Server\tools\passwordreset 2.PasswordReset -l 列出管理站点的管理员用户的名称 3.PasswordRe ...
- 【jQuery】 实用 js
[jQuery] 实用 js 1. int 处理 parseInt(") // int 转换 isNaN(page) // 判断是否是int类型 2. string 处理 // C# str ...
- 【转】WdatePicker.js的使用方法 帮助文档 使用说明 如何使用
[转]WdatePicker.js的使用方法 帮助文档 使用说明 如何使用 日期控件支持平面显示功能,只要设置一下eCont属性就可以把它当作日历来使用了,无需触发条件,直接显示在页面上 示例2-1 ...
- 【02】Node.js 安装配置(OK)
[02] Node.js 安装配置 本章节我们将向大家介绍在window和Linux上安装Node.js的方法. Node.js安装包及源码下载地址为:http://www.nodejs.org/do ...
- 【转】three.js详解之入门篇
原文链接:https://www.cnblogs.com/shawn-xie/archive/2012/08/16/2642553.html 开场白 webGL可以让我们在canvas上实现3D效 ...
- 【Nodejs】Node.js(Express)の環境構築
[Express]の環境 参考URL:http://expressjs.com/en/starter/generator.html ①Node.jsの準備 (参考URL:https://www.cnb ...
- 【ES6】改变 JS 内置行为的代理与反射
代理(Proxy)可以拦截并改变 JS 引擎的底层操作,如数据读取.属性定义.函数构造等一系列操作.ES6 通过对这些底层内置对象的代理陷阱和反射函数,让开发者能进一步接近 JS 引擎的能力. 一.代 ...
- 【转】Vue.js:轻量高效的前端组件化方案
摘要:Vue.js通过简洁的API提供高效的数据绑定和灵活的组件系统.在前端纷繁复杂的生态中,Vue.js有幸受到一定程度的关注,目前在GitHub上已经有5000+的star.本文将从各方面对Vue ...
- 【原创】使用JS封装的一个小型游戏引擎及源码分享
1 /** * @description: 引擎的设计与实现 * @user: xiugang * @time: 2018/10/01 */ /* * V1.0: 引擎实现的基本模块思路 * 1.创建 ...
随机推荐
- java对mongoDB的基本操作 ,游标使用
package com.mongodb.text; import java.net.UnknownHostException; import java.util.List; import org.bs ...
- linux安装android sdk
https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip 1,先安装java https://developer.and ...
- linux,chmod如何更改所有子目录的权限,要包括隐藏文件
for file in `find . -print` do chmod 777 -R $file done
- Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat 解决办法
问题描述 安装 Python的MySQL驱动时时出现这个错误: Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat 环境 ...
- 通过用户名、密码提交的方式搭建私有git服务端
1. 系统环境 centos git yum -y install git 2).创建属于自己的git库 mkdir /myGit git init --bare xiangyun.git 3). 添 ...
- pandas Series KeyError: -1
前几天写分析方法,遇到的一个错误: 具体我已经在stackoverflow 里面得到了详细的解答,下面我把问题和解决办法总结一下,方便日后的回顾 问题: sql = "select {}, ...
- e825. 当JSplitPane改变大小时分配空间
The weight of a split pane controls the behavior of the divider when the split pane is resized. If t ...
- django学习2 视图和模板
1 编写更多的视图 polls/views.py def detail(request, question_id): return HttpResponse("You're looking ...
- CentOS7 从管理员组中 新增/删除用户
$ sudo usermod -aG wheel usera #增加 $ sudo usermod -G usera usera # 删除
- C# 窗口自适应窗口宽度和高度
其实winform并不适合做自适应这玩意的,虽然,能做是能做, 就像菜刀一样能切水果,但是,不是那么合适,毕竟有水果刀 wpf做自适应拉伸窗体,会更好一些. 代码: #region 自适应 priva ...