Browse Source

fix: geolocation (#18250) (#18282)

- set center and zoom for leaflet.

Co-authored-by: Abhinav Raut <abhinav.raut@zerodha.com>
(cherry picked from commit fd81a290b2)

Co-authored-by: Abhinav Raut <abhinavrautcs@gmail.com>
version-14
mergify[bot] 2 years ago
committed by GitHub
parent
commit
3e70643a39
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      frappe/public/js/frappe/form/controls/geolocation.js

+ 1
- 0
frappe/public/js/frappe/form/controls/geolocation.js 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) {


Loading…
Cancel
Save