Geolocation field

The field is part of framework

It is here : frappe/geolocation.js at develop · frappe/frappe · GitHub

Also check leaflet API documentation for what you need.
https://leafletjs.com/plugins.html