X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FIdxController.php;h=d3c4bcb20238c6f7727d6b1392cdb806fb3f4664;hp=f85989ccb7d716b1805cea478560aed8bf35953a;hb=ecc2a5e8ea444b4a0f2384355e4fa21c6571ab2e;hpb=a8006c98d15c04f86427ef6b2f5537005978e7e5 diff --git a/application/controllers/IdxController.php b/application/controllers/IdxController.php index f85989c..d3c4bcb 100644 --- a/application/controllers/IdxController.php +++ b/application/controllers/IdxController.php @@ -39,8 +39,9 @@ class IdxController extends Zend_Controller_Action $title = $path->displayTitle; $this->view->path = $path; $geomform->geom_title->setValue($path->title); - $geomform->geom_data->setValue((string)$path->geom); $loginform->login_geom_id->setValue((string)$path->id); + $jsgeom = new phptojs\JsObject('gInitialGeom', array('data' => (string) $path->geom)); + $this->view->headScript()->prependScript((string) $jsgeom); } else { $geomform->setAction('path'); $extent = new phptojs\JsObject('gMaxExtent', $this->_helper->syjGeoip($this->getRequest()->getClientIp(true)));