-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Maps not working #4702
Comments
Found it! Unwanted "let". webtrees/resources/js/webtrees.js Line 736 in 4088d8d
|
Fixes issue fisharebest#4702
Andrew, @fisharebest the default layer code needs rethinking here. As we can now disable any of the map providers (If they are all disabled then we now throw an error) I think we either need to prevent disabling OpenStreetMap or always default to provider[0], layer[0]. BTW My PR #4165 may be a partial solution (although at present it still has code for default layer) |
@andrewgoz - thanks for the fix @ddrury - could you add a description to #4165 explaining the issue being fixed. i.e. how would I reproduce the problem, so that I could test the fix... |
https://github.com/fisharebest/webtrees/blob/4088d8d3a616e1b30a663cd261932bb6c6b9b188/public/js/webtrees.min.js
If I knew where to find the non-minimized version, I would have reported against that.
Search for the text "t.mapProviders[0].children[0].layer". That expression should be assigned to "i", so the code looks like
i=t.mapProviders[0].children[0].layer
The text was updated successfully, but these errors were encountered: