Geo_Map::GetMapFilterBody PHP Method

GetMapFilterBody() public static method

Gives the body map-placement part for the map filtering
public static GetMapFilterBody ( ) : string
return string
    public static function GetMapFilterBody()
    {
        global $Campsite;
        $tag_string = '';
        $map_suffix = '_filter';
        $tag_string .= "<div id=\"geo_map_mapcanvas{$map_suffix}\"></div>\n";
        return $tag_string;
    }

Usage Example

Ejemplo n.º 1
0
<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">
<div id="geo_polygons_info">&nbsp;</div>
</div><!-- end of polygon_info -->

<div class="polygon_append">
<form name="polygon_spec_new" action="#" onSubmit="<?php 
echo Geo_Map::GetMapFilterObjName();
?>