您的(de)iClient for Leaflet是(shì)什麽版本的(de)?可以(yǐ)從“include-web.js”請求中查看版本。我這(zhè)邊用11.1.1的(de)iClient測試,是(shì)可以(yǐ)将token添加到(dào)url中的(de):
var token = "wU32bHaw5jrhWbFXgY1ZzDy-Xz_Brs-Pnb7XzxU679mnRGayKZYXTyvZBbCmbkevBQ8wpEDCYSijVhyOZ0St3Q..";
var url = "http://localhost:8092/iserver/services/map-testWorkspace/rest/maps/Province_R";
window.L.supermap.SecurityManager.destroyToken(url);
window.L.supermap.SecurityManager.registerToken(url, token);
new L.supermap.TiledMapLayer(url).addTo(map);
