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();
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.