MapboxGL加载mvt是原生的方法 SuperMap.SecurityManager.registerToken/Key 对其无效 需设置transformRequest 代码如下
var map = new mapboxgl.Map({ container: 'map', // container id style: host + '/iserver/services/map-mvt-China/rest/maps/China/tileFeature/vectorstyles.json?type=MapBox_GL&styleonly=true', center: [120.143, 30.236], zoom: 0, attributionControl: false, transformRequest: (url,resourceType) => { if(url.indexOf('?') !== -1){ return { url: url+'&key=sdfdgdfgfdhfgh' } } else { return { url: url+'?key=sdfdgdfgfdhfgh' } } } });