public function rawmode(Syj_Model_Path $path) {
$this->_helper->SyjReset->resetPlaceHolders();
- $this->_helper->SyjMedias->addScripts('syjraw');
+ $this->_helper->SyjMedias->addScripts('rawidx');
$this->view->headLink()->appendStylesheet('css/generic.css', 'all');
$this->view->headLink()->appendStylesheet('css/syjraw.css', 'all');
$geomform->geom_title->setValue($path->title);
} else {
$geomform->setAction('path');
- $extent = new phptojs\JsObject('gMaxExtent', $this->_helper->syjGeoip($this->getRequest()->getClientIp(true)));
+ $clientip = trim(end(split(',', $this->getRequest()->getClientIp(true))));
+ $extent = new phptojs\JsObject('gMaxExtent', $this->_helper->syjGeoip($clientip));
$this->view->headScript()->prependScript((string) $extent);
$title = "Show your journey";
}