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.

Zuletzt veröffentlicht: September 14, 2015 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000087759
EingereichtMay 19, 2015
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version3.13
StatusKnown Limit

Zusätzliche Informationen

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

Schritte zur Reproduzierung

Bug-ID: BUG-000087759

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln