_initListRedirection(); $item['containerId'] = 'map-canvas'; $item['tpl'] = $this->getTemplate('map.tpl'); $this->_addItem($item); $this->_doc->addGoogleMapScript(); $this->_doc->addScript('js/app/utilityCategory/map.js'); $options = [ 'containerId' => $item['containerId'], 'markers' => $this->_getDataObj()->getMapMarkers(), 'viewUrl' => DetailPageView::getPage('url'), 'viewUrlTitle' => ($this->_doc->getAuth()->isLoggedIn()) ? 'View More Info' : 'Log In for More Info', ]; $this->_doc->addInitObject('app.utilityCategory.Map', [$options]); return $this; } }