laptop and a wrench

Bogue

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

Dernière publication: September 14, 2015 ArcGIS API for JavaScript
Numéro d’ID de bogue BUG-000087759
EnvoiMay 19, 2015
Dernière modificationJune 5, 2024
S’applique àArcGIS API for JavaScript
Version trouvée3.13
StatutKnown Limit

Informations supplémentaires

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

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000087759

Logiciel:

  • ArcGIS API for JavaScript

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement