add tests for geolocate self on map views
This commit is contained in:
parent
0d59532147
commit
06d8755f6b
5 changed files with 122 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue