+ public function rawmode(Syj_Model_Path $path) {
+ $this->_helper->SyjReset->resetPlaceHolders();
+
+ $this->view->headLink()->appendStylesheet('css/generic.css');
+ $this->view->headLink()->appendStylesheet('css/syjraw.css');
+ $this->view->headScript()->appendFile('js/OpenLayers.js');
+ $this->view->headScript()->appendFile('js/syjraw.js');
+ $this->view->headTitle($path->displayTitle);
+
+ $this->_jsRawLocaleStrings();
+ if ($path->creator) {
+ $this->view->jslocales['geomAttribution'] =
+ $this->view->translate('route by <strong>%s</strong>', (string)$path->creator->pseudo);
+ }
+ $jsgeom = new phptojs\JsObject('gInitialGeom', array('data' => (string) $path->geom));
+ $this->view->headScript()->prependScript((string) $jsgeom);
+
+ $this->view->rawmode = true;
+ $this->_helper->ViewRenderer->setViewScriptPathSpec(':controller/raw.:suffix');
+ }
+