【问题标题】:How to set the info template on a wms layer如何在 wms 图层上设置信息模板
【发布时间】:2018-09-16 04:55:13
【问题描述】:

在 arcgisdynamicmapservicelayer 中,我可以为弹出窗口设置一个模板,如下所示:

setInfoTemplatesObject[tooltipObject.Laagindex] = { infoTemplate: new InfoTemplate(tooltipObject.Title, tooltipObject.Content) }
layer.setInfoTemplates(setInfoTemplatesObject);

有没有办法通过 WMS 层做到这一点?

我正在寻找一种在 WMS 层中执行此操作的方法:

【问题讨论】:

    标签: arcgis esri arcgis-js-api esri-maps


    【解决方案1】:

    WMS 规范没有明确定义服务必须从 GetFeatureInfo 方法返回什么,因此有 API 函数可以为 WMSLayer 执行此操作。 More info in this thread.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-27
      • 1970-01-01
      相关资源
      最近更新 更多