Explorar el Código

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] hace 2 años
committed by GitHub
padre
commit
3e70643a39
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      frappe/public/js/frappe/form/controls/geolocation.js

+ 1
- 0
frappe/public/js/frappe/form/controls/geolocation.js Ver fichero

@@ -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) {


Cargando…
Cancelar
Guardar