Google Map Visualization Filter Position

Status
Not open for further replies.

englishpool

New Member
I might have overlooked something very basic, but is it possible to show the filter under the map in the googlemap viz?

I'd like the user to see the map first and then have the option of filtering the data.

Thanks in advance,

Paul Evans
 
Create a custom template and select it in Googlemap viz/Options settings.

The templates are in ..\plugins\fabrik_visualization\googlemap\views\googlemap\tmpl
Copy the bootstrap folder, adapt default.php
 
... and all you should have to do in that file is move the loadTemplate('filter') line down to the bottom of the main div, like this ...

Code:
<?php
/**
 * Bootstrap Google Map Viz Template
 *
 * @package      Joomla.Plugin
 * @subpackage   Fabrik.visualization.googlemap
 * @copyright    Copyright (C) 2005-2016  Media A-Team, Inc. - All rights reserved.
 * @license      GNU/GPL http://www.gnu.org/copyleft/gpl.html
 */

// No direct access
defined('_JEXEC') or die('Restricted access');

$row = $this->row;
$params = $this->params;
$width = $params->get('fb_gm_mapwidth', '0');
if (!empty($width) && !strstr($width, '%')) :
    $width .= 'px';
endif;
$width =  $width == '0' ? '' : 'width:' . $width . ';';
?>
<div id="<?php echo $this->containerId;?>" class="fabrikGoogleMap fabrik_visualization">
    <?php if ($this->params->get('show-title', 1)) : ?>
        <h1><?php echo $row->label;?></h1>
    <?php endif; ?>
    <div><?php echo $row->intro_text;?></div>
    <table id="<?php echo $this->containerId . '_sub';?>" style="width:100%">
        <tr>
        <?php if ($this->sidebarPosition == '1') :
            echo $this->loadTemplate('sidebar');
        endif; ?>
        <td>
            <div id="table_map" style="<?php echo $width;?> height:<?php echo $params->get('fb_gm_mapheight');?>px"></div>
        </td>
        <?php if ($this->sidebarPosition == '2') :
            echo $this->loadTemplate('sidebar');
        endif; ?>
        </tr>
    </table>
<?php
    echo $this->loadTemplate('filter');
?>
</div>

<?php foreach ($this->groupTemplates as $table => $templates) :
    foreach ($templates as $label => $content) :
        ?>
        <div style="display:none" class="groupedContent groupedContent<?php echo $table . $label?>"><?php echo $content?></div>
        <?php
    endforeach;
endforeach;

-- hugh
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top