简体   繁体   English

如何在ArcGis JavaScript API中单击地图以显示附加图像?

[英]How to display attached image on map click in ArcGis JavaScript API?

I am new to ArcGis JavaScript API. 我是ArcGis JavaScript API的新手。 I want to display attached image on map click. 我想在地图点击上显示附件图像。 Images are in blob format. 图像为斑点格式。 How to display images in popup template? 如何在弹出模板中显示图像?

If I understand what you mean correctly, the things that you are probably looking for are custom InfoWindow and InfoTemplate classes. 如果我正确理解您的意思,则可能要查找的是自定义InfoWindow和InfoTemplate类。 An InfoWindow is just and HTML popup that can be customized through the API. InfoWindow就是HTML弹出窗口,可以通过API进行自定义。 An InfoTemplate is an abstraction attached to the InfoWindow that can be used to transform the features attributes into HTML. InfoTemplate是附加到InfoWindow的抽象,可用于将要素属性转换为HTML。

The following link may help you: 以下链接可以为您提供帮助:

https://developers.arcgis.com/javascript/3/jssamples/widget_extendInfowindow.html https://developers.arcgis.com/javascript/3/jssamples/widget_extendInfowindow.html

Don't forget to also look into InfoWindow and InfoTemplate documentation at the same site from the previous link. 别忘了在上一个链接的同一站点上浏览InfoWindow和InfoTemplate文档。

Let me know if this give you some directions on how to solve your problem. 让我知道这是否为您提供有关如何解决问题的指导。

Note: Maybe this question would get faster answers at http://gis.stackexchange.com 注意:也许这个问题可以在http://gis.stackexchange.com上获得更快的答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM