Geo_Map::GetMapTagCenter PHP Метод

GetMapTagCenter() публичный статический Метод

Gives the body map-centering (js call) part for the map front end presentation
public static GetMapTagCenter ( integer $p_articleNumber, integer $p_languageId ) : string
$p_articleNumber integer
$p_languageId integer
Результат string
    public static function GetMapTagCenter($p_articleNumber, $p_languageId)
    {
        global $Campsite;
        $tag_string = '';
        $f_article_number = $p_articleNumber;
        $f_language_id = $p_languageId;
        $map_suffix = '_' . $f_article_number . '_' . $f_language_id;
        $tag_string .= 'if (window.map_prepared) {geo_object' . $map_suffix . '.map_showview();} ';
        $tag_string .= 'window.center_large_map' . $map_suffix . '(); ';
        return $tag_string;
    }

Usage Example

Пример #1
0
?>
        <input id="map_button_edit" type="submit" onClick="map_show_edit(); return false;" class="default-button" value="<?php putGS("Edit"); ?>" name="edit" />
<?php
  }
?>
        <input id="map_button_close" type="submit" onClick="map_preview_close(); return false;" class="default-button" value="<?php putGS("Close"); ?>" name="close" />
    </div>
    <div id="map_preview_info" class="map_preview_info">
      <?php putGS("Map preview"); ?>
    </div>
    <!-- end of map_save_part -->
  </div>
<!--END Toolbar-->
</div>
<!-- Map Preview Begin -->
<div class="geomap_container">
  <div class="geomap_locations">
    <?php echo Geo_Map::GetMapTagList($f_article_number, $f_language_id); ?>
  </div>
  <div class="geomap_menu">
    <a href="#" onClick="<?php echo Geo_Map::GetMapTagCenter($f_article_number, $f_language_id); ?> return false;"><?php putGS("show initial map view"); ?></a>
  </div>
  <div class="geomap_map">
    <?php echo Geo_Map::GetMapTagBody($f_article_number, $f_language_id); ?>
  </div>
</div>
<div style="clear:both" ></div>
<!-- Map Preview End //-->
</body>
</html>
All Usage Examples Of Geo_Map::GetMapTagCenter