Select to view content in your preferred language

In Navagation toolbar, can you highlight what mode you are in?

2339
10
09-22-2010 06:55 AM
JamesB
by
Emerging Contributor
http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/toolbar/toolbar_navigation.html

So you can be in one of 3 navigation modes, zoom in, zoom out and pan - you can see this in the API
http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi/navigation.htm

However, I think it's essential to highlight to the user which mode you are in. If your in "Zoom In" mode there is nothing to indicate that, and I would like something to indicate to the user what will happen when they click.

Is there any property like navToolbar.navType or function like navToolbar.getNavType() I can use to find this out?

I suppose could do something like:
    <div id="navToolbar" >
      <div id="zoomin" onClick="HIGHLIGHT ME; navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN);">Zoom In</div>
      <div id="zoomout" onClick="HIGHLIGHT ME;  navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT);">Zoom Out</div>
....
      <div id="deactivate" onClick="UNHIGHLIGHT OTHERS; navToolbar.deactivate()">Deactivate</div>
    </div>


But would be curious to know for completeness sake.
0 Kudos
10 Replies
timgogl
Deactivated User
you can do it with css. you would need to look up how which ever javascript framework your using handles changing css, but here is a list of cursor options:
http://blogs.techrepublic.com.com/programming-and-development/?p=401
0 Kudos