davez
Member
Hi,
Haven't posted in a long time. But been using Fabrik continuously. I found a bug that's a bit obscure.
I use media-relative icons for many of my Google maps visualizations. I noticed the recent changes in regards to how one specifies where the icons reside on the server, which breaks my maps.
So, I use both the icon displayed on the details view (the element is set to display an icon in the list view parameter with icon hover text set to yes also) AND the Google Map uses that field to display the icon on the map visualization. What happens is that the Google Map visualization loads the entire string that contains the icon and tooltip for the details view icon.
As a crutch, I've made this change to /plugins/fabrik_visualization/googlemap/models/googlemap.php (starts around line 427)
One of the problems with my solution is if people have used a databasejoin for their element, then it's going to load the numerical entry rather than the actual word. But I'm not sure how that would can be resolved.
Thanks for the fix!
Haven't posted in a long time. But been using Fabrik continuously. I found a bug that's a bit obscure.
I use media-relative icons for many of my Google maps visualizations. I noticed the recent changes in regards to how one specifies where the icons reside on the server, which breaks my maps.
So, I use both the icon displayed on the details view (the element is set to display an icon in the list view parameter with icon hover text set to yes also) AND the Google Map uses that field to display the icon on the map visualization. What happens is that the Google Map visualization loads the entire string that contains the icon and tooltip for the details view icon.
As a crutch, I've made this change to /plugins/fabrik_visualization/googlemap/models/googlemap.php (starts around line 427)
Code:
$iconImgPath = FArrayHelper::getValue($markerImagesPath, $c, 'media');
$iconImg = FArrayHelper::getValue($rowdata, $iconImg.'_raw', ''); //changed to the _raw form and addeed the slash at the beginning
// Normalize the $iconimg so it is either a file path relative to J! root, or a non-local URL
switch ($iconImgPath) {
case 'media':
default:
$iconImg = 'media/com_fabrik/images' . $iconImg;
break;
case 'jroot':
One of the problems with my solution is if people have used a databasejoin for their element, then it's going to load the numerical entry rather than the actual word. But I'm not sure how that would can be resolved.
Thanks for the fix!