I don't believe you will be able to at 3.1. The LocateButton class was not added until version 3.7. See the following link:https://developers.arcgis.com/javascript/jsapi/locatebutton-amd.html
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.