Hello from the Wix DevRel Team!
This sounds like an issue that has more to do with the embedded mapbox than Wix itself. Checking the console on my local machine shows the following error:
public/pages/lubjy.js: Unexpected token, expected "{" (12:32)
10 | })
11 |
> 12 | function getCurrentGeolocation(): Promise<Object>
| ^
13 |
If your getCurrentGeolocation function is in fact already defined, you want a semi-colon ( ; ) on line 12, not a colon ( : ).
Additionally, I’m also getting the same warning in the console that says:
Geolocation support is not available so the GeolocateControl will be disabled.
Looking at the documentation, it appears that this is a browser-specific issue. While it doesn’t appear to be working for me in Chrome or Firefox, the GeolocateControl does work when I test it in Safari, which also confirms that it’s a browser-specific issue.
There might be a way to manually override this for every specific browser, but it might also be one of those things that you’re unable to fix until updates are made to each browser, or a consistent, cross-browser web standard is adopted for geolocation.
Hope this helps!
Rob