addJs(array('https://openlayers.org/en/v4.6.4/build/ol.js', 'map.js')); $this->addCss('https://openlayers.org/en/v4.6.4/css/ol.css'); return $this->getJsCode('map') . $this->parseHtmlByName('map.html', array()); } public function getJsCode($sType, $aParams = array(), $bWrap = true) { $aParams = array_merge(array( 'sPathToJsonData' => $this->_oConfig->getHomeUrl() . 'js/continents.geojson', 'iIntervalCheckNewInSeconds' => getParam('bx_mapshow_interval_refresh_new_users_in_seconds'), 'fCenterMapLonCoordinate' => getParam('bx_mapshow_default_center_lat_coordinate'), 'fCenterMapLatCoordinate' => getParam('bx_mapshow_default_center_lon_coordinate'), 'fMapZoom' => getParam('bx_mapshow_default_zoom') ), $aParams); return parent::getJsCode($sType, $aParams, $bWrap); } } /** @} */