laptop and a wrench

Bug

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

Last Published: September 14, 2015 ArcGIS API for JavaScript
Bug ID Number BUG-000087759
SubmittedMay 19, 2015
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.13
StatusKnown Limit

Additional Information

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

Workaround

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)); });

Steps to Reproduce

Bug ID: BUG-000087759

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options