fix: geolocation (#18250)
- set center and zoom for leaflet. Co-authored-by: Abhinav Raut <abhinav.raut@zerodha.com>
This commit is contained in:
parent
35ba00a54e
commit
fd81a290b2
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue