Your best answer would be to look to this thread, it has a working sample of where you want to be going Previous discussion on toolbar toggle.
You can see where he has a connection happening, the basic identify function, and then where you can toggle the connect/disconnect to get it working over and over.
In the ArcGIS API for JavaScript, all data on a map is managed via layers. To add points, the simplest solution is to use a graphics layer. Once you have a graphics layer, you add graphics to it. Graphics consist of:
- geometry: where it is on a map*
- symbol: what it looks like on the map
- attributes: associated non-spatial information
- info template: how to display/format attributes
Technically, those are all optional when creating a graphic but if you want to see a graphic on a map you have to provide a geometry and a symbol.
Here's an example of creating a graphics layer and adding a point with your coordinates to the map: http://jsbin.com/OsuKOfA/1/edit (I made the point symbol large so it stands out, looks like a circle)
*If no spatial reference is provided, all geometries assume wgs84, which is what you want since you're wanting to use latitude and longitude to specify your location. Also note that "latitude, longitude" is equivalent to "y, x". When creating a geometry coordinates are expected to be provided as x, y so you pass longitude, latitude to the Point geometry constructor.
Best Answer
you must be having map div.put following code
if you want new button and put nice style adjust using css in style attribute of input button.
If you are referring + and - button then those button are default zoom button which can be initialized in map properties.