map.infowWindow.onHide(clearGraphics); function clearGraphics() { if (map.graphics) {map.graphics.clear()}; }
Hi,I've got an Identify Task that opens an infoWindow and highlights the clicked feature using a map graphic. I want to clear the graphic when the infoWindow is closed but can't get it to work. I tried using onHide() with no success:map.infowWindow.onHide(clearGraphics); function clearGraphics() { if (map.graphics) {map.graphics.clear()}; }Any ideas?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.