add tests for geolocate self on map views

This commit is contained in:
Kerry Archibald 2023-02-07 16:51:58 +13:00
parent 0d59532147
commit 06d8755f6b
5 changed files with 122 additions and 4 deletions

View file

@ -17,6 +17,11 @@ limitations under the License.
import { _t } from "../../languageHandler";
import SdkConfig from "../../SdkConfig";
/**
* Get a localised error message for GeolocationPositionError error codes
* @param code - error code from GeolocationPositionError
* @returns
*/
export const positionFailureMessage = (code: number): string | undefined => {
const brand = SdkConfig.get().brand;
switch (code) {