Has anyone implemented a listener to close the infoWindow when the ESC key is pressed?If so are you able to share the code, so I don't reinvent the wheel?Thanks,Steve
<script type="text/javascript" src="shortcuts.js"></script>
// Define some keyboard shortcuts var kbdOptions = { disable_in_input: true, propagate: false }; shortcut.add("Escape", function() { N.myMap.infoWindow.hide(); }, kbdOptions);
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.