为什么发布tilelayer服务会出错

require([
"esri/Map",
"esri/layers/FeatureLayer",
"esri/config",
"esri/views/MapView",
"esri/layers/WebTileLayer",
"esri/widgets/Legend", //图例部件
"esri/widgets/Locate",//定位部件
"esri/widgets/ScaleBar",//比例尺
"esri/views/draw/Draw",
"esri/Graphic",
"esri/geometry/Polyline",
"esri/geometry/geometryEngine",
"esri/geometry/Polygon",
"esri/symbols/TextSymbol",
"esri/layers/TileLayer",
"esri/layers/FeatureLayer",
"esri/layers/MapImageLayer",
"dojo/on",
"dojo/domReady!"
], function (Map, FeatureLayer, esriConfig, MapView, WebTileLayer, Legend, Locate,
ScaleBar, Draw, Graphic, Polyline, geometryEngine, Polygon, TileLayer,
FeatureLayer, MapImageLayer, on, TextSymbol) {


const layer = new TileLayer({
url: "http://localhost:6080/arcgis/r ... ot%3B
});
var map = new Map({
basemap: "gray",
layers: [layer]
});

var view = new MapView({
container: "viewDiv",
map: map,
center: [104.072833, 30.663484],
zoom: 10
});
 
我的服务是没有问题的啊,报错是“Uncaught (in promise) TypeError: a.load is not a function”
QQ截图20200411161307.png QQ截图20200411161250.png QQ截图20200411161504.png
已邀请:

海盐 - 一个艺术家,副业GISer。

赞同来自:

require啥 function里就对应啥,你require里的TextSymbol,在function里最好要放在TileLayer之前。

又又_795

赞同来自:

require 的引用顺序要和 function顺序对应上 

要回复问题请先登录注册