/** * Generate module */ protected function compile() { // load Google Maps JavaScript $arrParams = $this->anystores_signedIn ? array('signed_in' => 'true') : array(); GoogleMaps::includeJs($arrParams); $GLOBALS['TL_JAVASCRIPT']['anystores'] = 'system/modules/anyStores/assets/js/anystores.js'; $GLOBALS['TL_JAVASCRIPT']['markerclusterer'] = 'system/modules/anyStores/assets/js/markerclusterer/src/markerclusterer_compiled.js'; // map height $this->Template->mapHeight = deserialize($this->anystores_mapheight); $this->Template->anystores_token = FrontendAjax::generateRequestToken($this->id); }