LSformElement_postaladdress: update OSM nominatim search URL

This commit is contained in:
Benjamin Renard 2024-04-24 11:22:39 +02:00
parent 118b784a5d
commit 151b229c3d
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -48,7 +48,7 @@ class LSformElement_postaladdress extends LSformElement_textarea {
$return = parent :: getDisplay();
if ($this -> isFreeze()) {
if (!empty($this->values)) {
$map_url_format = $this -> getParam('html_options.map_url_format', 'http://nominatim.openstreetmap.org/search.php?q=%{pattern}', 'string');
$map_url_format = $this -> getParam('html_options.map_url_format', 'https://nominatim.openstreetmap.org/ui/search.html?q=%{pattern}', 'string');
$map_url_pattern_generate_function = $this -> getParam('html_options.map_url_pattern_generate_function');
$map_url_pattern_format = $this -> getParam('html_options.map_url_pattern_format');
if ($map_url_pattern_generate_function) {