Closed Belarophon closed 7 years ago
Improved the workaround by specifying a default location in the top-level-XSD (the Location itself was located in a nested element):
Somehow the London-default value was not used.
The commit above fixes the issue. It is no longer necessary to set a default value for the widget to work.
We have problems using the LocationPicker-Widget in openCMS 10.5.1. Whenever we specify a new location, it is empty. So no preview is shown. When trying to edit it (folder-symbol) it shows the error message 'Missing Google Maps API Key...'. The problem is that we provided a valid key via the root folder properties. Debugging the method CmsLocationPickerWidget.getConfiguration() also confirmed that our provided key is used. The problems seems to be the missing map preview, since this is also one of the things that is checked in method CmsLocationController.hasError().
We tried a workaround (editing the control code manually and inserting the xml-formatted location-code from some 'old' component) and voila - the map preview is shown and also the folder-button to edit the location works.
Remarks/Questions: