You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kelly Hutchins edited this page Dec 10, 2013
·
12 revisions
Download and setup the template on your local web server.
Open the index.html file in your favorite text editor.
Search index.html for the div with the id of map and add a new line after the div.
Create a new div with an id of locateDiv and save the changes to index.html.
Open the **javascript/layout.js ** file in your favorite text editor.
Load the Locate button module by adding the following require after the existing require statements at the top of the layout.js file.
dojo.require("esri.dijit.LocateButton")
Search layout.js for the initUI function and add the following code to this function. This code creates a new Locate button widget and associates it with the map.
Open the css/layout.css file in your favorite text editor.
Add a new style to the file that is used to position the new Locate button on the map. This css will position the button below the existing zoom slider on the map.