_doc->addGoogleMapScript(); $this->_addItem(array( 'tpl' => $this->getTemplate('view.tpl'), )); $this->_doc->addScript('js/app/contactMap.js'); $params = array( 'coordinates' => $this->getConfig('coordinates'), 'center' => $this->getConfig('center'), ); $this->_doc->addInitObject('app.contactMap.Map', $params); return $this; } }