我正在尝试在 Leaflet 地图中显示我使用 ArcGIS Server 发布的地图。我首先尝试将地图显示为底图并创建一个简单的 Leaflet TileLayer:
var aLayerSix = L.tileLayer('http://seasnail.csun.edu/ArcGIS/rest/services/GIS/Campus_Base/MapServer/tile/{z}/{y}/{x}.png', {
attribution: 'Map Tile © CSUN Geography'
});
我拿不到地图。然后我尝试使用 Leaflet ESRI 插件:
var aLayerSix = L.esri.tiledMapLayer("http://seasnail.csun.edu/ArcGIS/rest/services/GIS/Campus_Base/MapServer/");
我仍然无法让传单显示地图。这是地图的中心:
var centerlatlng = L.latLng(34.238716626866484, -118.52985978131983);
干杯,