Geo_Map::GetMapFilterCenter PHP Method

GetMapFilterCenter() public static method

Gives the body map-centering (js call) part for the map filtering
public static GetMapFilterCenter ( ) : string
return string
    public static function GetMapFilterCenter()
    {
        global $Campsite;
        $tag_string = '';
        $map_suffix = '_filter';
        $tag_string .= 'geo_object' . $map_suffix . '.map_showview();';
        return $tag_string;
    }

Usage Example

Ejemplo n.º 1
0
<?php 
$map_width = 800;
$map_height = 500;
echo Geo_Map::GetMapFilterHeader($map_width, $map_height);
?>

</head>
<body onLoad="return false;">

<div class="map_show_filter">

<div class="map_mappart_outer_filter">

<div class="map_mappart_filter">
<a href="#" class="geo_map_show_initial" onClick="<?php 
echo Geo_Map::GetMapFilterCenter();
?>
 return false;"><?php 
echo $translator->trans('show initial map view', array(), 'geolocation');
?>
</a>
<?php 
echo Geo_Map::GetMapFilterBody();
?>
</div><!-- end of map_mappart_filter -->

</div><!-- end of map_mappart_outer_filter -->

<div class="geo_filter_texts" style="height:150px;overflow-y:auto;overflow-x:hidden">

<div class="polygon_info">