laptop and a wrench

漏洞

The InfoWindow does not stay opened when setting the content in the click event and a KML layer is present.

上次发布: September 14, 2015 ArcGIS API for JavaScript
漏洞 ID 编号 BUG-000087759
已提交May 19, 2015
上次修改时间June 5, 2024
适用范围ArcGIS API for JavaScript
找到的版本3.13
状态Known Limit

附加信息

FeatureLayers automatically handle pop-up on click. Instead of defining a feature layer click set an info template on the layer.

解决办法

Change the following to use the map click event instead of feature layer click. Change: //associate the features with the popup on click featureLayer.on("click", function(evt) { map.infoWindow.setFeatures([evt.graphic]); var html = "<strong>"; map.infoWindow.setTitle("Station "); map.infoWindow.show(evt.mapPoint, map.getInfoWindowAnchor(evt.screenPoint)); }); To: //associate the features with the popup on click map.on("click", function(evt) { map.infoWindow.setFeatures([evt.graphic]); var html = "<strong>"; map.infoWindow.setTitle("Station "); map.infoWindow.show(evt.mapPoint, map.getInfoWindowAnchor(evt.screenPoint)); });

重现步骤

漏洞 ID: BUG-000087759

软件:

  • ArcGIS API for JavaScript

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项