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
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.