def on_loc_button_released(self): """ Get Location position is pressed """ try: latlng = getlatlng(Globals.location_manager) if latlng: self.mockmapview.update_current_locmarker(latlng[0], latlng[1], True) else: toast("Could not find your location. Try turning Location on in settings") except Exception as err: if "ACCESS_FINE_LOCATION" in err.__str__(): Dialogs.show_location_denied() return else: Logger.info(err.__str__())