您好,可以通过修改矢量瓦片的vectorstyles,实现图层的显隐。 获取到矢量风格,找到需要隐藏的图层,修改参数"visibility":"visible",再使用style加载修改过后的vectorstyles,例如
示例服务:https://iserver.supermap.io/iserver/services/map-mvt-China/rest/maps/China/tileFeature/vectorstyles?type=MapBox_GL
帮助文档描述:https://help.supermap.com/iServer/mergedProjects/SuperMapiServerRESTAPI/root/maps/map/tileFeature/vectorStyles/vectorstyles.htm