- Issue created by @m_hobby
- Status changed to Fixed
6 months ago 8:57pm 23 May 2024 Automatically closed - issue fixed for 2 weeks with no activity.
Checking the 'Hide Map if empty' setting for CiviCRM entity leaflet map still displays an empty map in the middle of the ocean.
Create a CiviCRM contact map view using lat / long fields.
Set the contextual filter to pull the contact ID from the URL.
Limit to 1 contact without a lat / long value.
Set the map settings to Hide map if empty.
Map will still show
Add a hide_empty_map options settings check before rendering the map
if ((!empty($lat_value) && !empty($long_value)) || !($this->options['hide_empty_map'])) {
$element = $this->leafletService->leafletRenderMap($js_settings['map'], $js_settings['features'], $map_height);
}
Raising merge request to gitlab shortly
Fixed
2.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.