1. Ordinary get through the event
<Text bindtap = "markertap"> // Bind event
<Text class = "dztext"> {{ugetaddress}} </ text> // display the acquired position ugetaddress select address is the default value
</text>
By clicking the "Select Address" to get the current location
JS code as follows
After clicking enter wx.chooseLocationAPI, select a specific address
After selecting renderings that successfully get the current position
2. Location map directly to the current location by <map> </ map>