首页 / 浏览问题 / 云GIS / 问题详情
iClient for leaflet如何加载工作空间发布的rest矢量瓦片服务
5EXP 2023年12月25日

使用产品:iserver 11.1.1

操作系统:win10 x64
数据类型: 文件型
问题详细描述:使用iserver发布的工作空间,发布为Rest矢量瓦片服务,http://localhost:8090/iserver/services/map-jnps-3/restjsr/v1/vectortile/maps/jnps,使用iClient for leaflet如何加载,具体该用哪种方式哪个类加载呢

1个回答

您好,您可以具体参考官网示例:https://iclient.supermap.io/examples/leaflet/examples.html#viz-tileVectorLayer

下面都是关于矢量瓦片的加载,希望能够帮助到您!

630EXP 2023年12月25日

看这些示例中使用的地图服务url,应该不是Rest矢量瓦片吧,我发布的Rest矢量瓦片,url是http://localhost:8090/iserver/services/map-jnps-3/restjsr/v1/vectortile/maps/jnps这样,属于restjsr类型的,我使用TiledVectorLayer接口一直加载不上

目前 iClient for leaflet 不支持加载 restjsr类型的 ,支持加载rest地图服务。

iClient for OpenLayers是支持的,可以参考:https://iclient.supermap.io/examples/openlayers/editor.html#mvtvectorlayer_vectortilerest

...