public function openOn(Map $map)
    {
        $this->map = $map;
        $map->addLayer($this);

        return $this->addMethod('openOn', array($map));
    }
public function openOn(Map $map)
    {
        $this->map = $map;
        $map->addLayer($this);

        return $this->addMethod('openOn', array($map));
    }
public function openOn ( Map $ map ) { $ this -> map = $ map ; $ map -> addLayer ( $ this ) ; return $ this -> addMethod ( 'openOn' , array ( $ map ) ) ; }
Create openOn map method.

@param Map $map The map.

@return $this
Create openOn map method .