FML/Controls/Control.php
public function addMapInfoFeature($eventLabel = ScriptLabel::MOUSECLICK)
    {
        $mapInfo = new MapInfo($this, $eventLabel);
        $this->addScriptFeature($mapInfo);
        return $this;
    }
public function addMapInfoFeature($eventLabel = ScriptLabel::MOUSECLICK)
    {
        $mapInfo = new MapInfo($this, $eventLabel);
        $this->addScriptFeature($mapInfo);
        return $this;
    }
public function addMapInfoFeature ( $ eventLabel = ScriptLabel :: MOUSECLICK ) { $ mapInfo = new MapInfo ( $ this , $ eventLabel ) ; $ this -> addScriptFeature ( $ mapInfo ) ; return $ this ; }
Add a dynamic Feature opening the current map info

@api
@param string $eventLabel (optional) Event on which the map info will be opened
@return static
Add a dynamic Feature opening the current map info