fix: geolocation (#18250)

- set center and zoom for leaflet.

Co-authored-by: Abhinav Raut <abhinav.raut@zerodha.com>
This commit is contained in:
Abhinav Raut 2022-10-03 16:38:28 +05:30 committed by GitHub
parent 35ba00a54e
commit fd81a290b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,7 @@ frappe.ui.form.ControlGeolocation = class ControlGeolocation extends frappe.ui.f
this.bind_leaflet_draw_control();
this.bind_leaflet_locate_control();
this.bind_leaflet_refresh_button();
this.map.setView(frappe.utils.map_defaults.center, frappe.utils.map_defaults.zoom);
}
format_for_input(value) {