1、在文件夹下复制资源文件并粘贴(分别位于 iserver安装包/iClient/forJavascript/dist、iserver安装包/iClient/forJavascript/webs/libs)
2、在index.html文件中引入leaftlet
<script src="dist/leaflet/include-leaflet.js"></script>
3、初始化加载地图
// 地图显示的div
<div id="map"></div>
window.url = 'http://localhost:8090/iserver/services/map-China/rest/maps/China'
// 地图实例
window.map = L.map('map', {
center: { lng: 117, lat: 40 },
maxZoom: 18,
zoom: 7
})
new L.supermap.TiledMapLayer(url).addTo(map)