Select to view content in your preferred language

Disable Map Navigation

1364
2
07-20-2011 07:57 AM
TimothyWilcoxon
Emerging Contributor
I have this code in my html, if I select a zoom in button and then select the "select" button it will not disable the map navigation.

<button dojoType="dijit.form.Button" onClick="selectionToolbar.activate
(esri.toolbars.Draw.FREEHAND_POLYGON);map.disableMapNavigation();resetSums();">Select</button>

that is all i need right?


Thanks
Timothy
0 Kudos
2 Replies
TimothyWilcoxon
Emerging Contributor
Does the zoom in and zoom out have a seperate disable code?
Something like
map.disablezoomoutNav()?
0 Kudos
JeffPace
MVP Alum
that should be all you need, but if you created a navtoolbar, you might also need

this.navToolbar.deactivate();


I have this code in my html, if I select a zoom in button and then select the "select" button it will not disable the map navigation.

<button dojoType="dijit.form.Button" onClick="selectionToolbar.activate
(esri.toolbars.Draw.FREEHAND_POLYGON);map.disableMapNavigation();resetSums();">Select</button>

that is all i need right?


Thanks
Timothy
0 Kudos