这个arcgis切图出来的应该是应该是矢量瓦片资源,我看layers里没有图层


发布服务后 for mapboxGL预览效果

我尝试了好多方法也没显示出来这个
demo1
initMap() {
//初始化地图
this.map = L.map('mapContainer', {
// crs: L.CRS.EPSG4326,
center: this.$props.center,
maxZoom: 18,
minZoom: 4,
zoom: this.$props.zoom
});
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(this.map);
// 添加 MVT 图层
var vectorTileLayer = new L.vectorGrid.protobuf(
"http://localhost:8090/iserver/services/map-vtpk-NongJiZuoYe/rest/maps/%E5%86%9C%E6%9C%BA%E4%BD%9C%E4%B8%9A/tileFeature.mvt?returnAttributes=true&width=256&height=256&z={z}&x={x}&y={y}",
{
crs: L.CRS.EPSG4326,
}
).addTo(this.map);
},
demo2
window.require([
"esri/Map",
"esri/views/MapView",
"esri/layers/VectorTileLayer"
], (Map, MapView, VectorTileLayer) => {
const vtLayer = new VectorTileLayer({
url: "http://localhost:8090/iserver/services/map-world/restjsr/v1/vectortile/maps/World/style.json?f=json"
});
const map = new Map({
basemap: {
baseLayers: [vtLayer]
}
});
this.view = new MapView({
container: "viewDiv",
map: map,
center: this.$props.center,
zoom: this.$props.zoom
});
});
刚刚接触gis,不知道这个是不是要加载这个矢量瓦片资源信息,麻烦大佬给个回复