myNav = new esri.toolbars.Navigation(map) myNav.activate(esri.toolbars.Navigation.PAN);
I have a graphics layer and using Navigation toolbar. I observed weird behaviour. The moment I activate navigation, it is disabling all sorts of interaction with graphics layer. I cannot click on any of the graphic (It won't trigger 'onClick' event on clicking it). It is behaving the same in my app and I was able to reproduce it on the following sample page:http://help.arcgis.com/en/webapi/javascript/arcgis/samples/graphics_contextmenu/index.htmlI tried following commands in console while on the above page:myNav = new esri.toolbars.Navigation(map) myNav.activate(esri.toolbars.Navigation.PAN);
this.activate(esri.toolbars.Navigation.PAN); map.graphics.enableMouseEvents();
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.