Ejemplo n.º 1
0
 /** Get the data for building the map
  * @access public
  * @return method
  */
 public function getMap()
 {
     $data = $this->getData();
     $geo = new Pas_Twfy_Geometry();
     $constituency = $geo->get($data['constituency']);
     return $this->buildMap($constituency, $data);
 }
Ejemplo n.º 2
0
 /** Get the constituency's geometry
  * @access public
  * @param  string $constituency
  * @return object
  */
 public function getGeometry($constituency)
 {
     $geo = new Pas_Twfy_Geometry();
     return $geo->get($constituency);
 }