GetMapSearchHeader() public static method

The bounding-box corners are available by js calls too (see e.g. locations/search.php).
public static GetMapSearchHeader ( integer $p_mapWidth, integer $p_mapHeight, mixed $p_bboxDivs = null ) : string
$p_mapWidth integer
$p_mapHeight integer
$p_bboxDivs mixed
return string
コード例 #1
0
ファイル: search.php プロジェクト: nidzix/Newscoop
/js/geocoding/styles/map-info.css" />

    <script type="text/javascript" src="<?php 
echo $Campsite['WEBSITE_URL'];
?>
/js/base64.js"></script>
    <script type="text/javascript" src="<?php 
echo $Campsite['WEBSITE_URL'];
?>
/js/json2.js"></script>

<?php 
$bbox_divs = array('tl_lon' => 'top_left_longitude', 'tl_lat' => 'top_left_latitude', 'br_lon' => 'bottom_right_longitude', 'br_lat' => 'bottom_right_latitude');
$map_width = 600;
$map_height = 400;
echo Geo_Map::GetMapSearchHeader($map_width, $map_height, $bbox_divs);
?>

</head>
<body onLoad="return false;">
<div class="map_preview_serach">
<div class="map_mappart_outer_serach">
<div class="map_mappart_serach">
<div class="map_mapmenu_serach">
<a href="#" onClick="<?php 
echo Geo_Map::GetMapSearchCenter();
?>
 return false;"><?php 
putGS('show initial map view');
?>
</a>