public function getJs()
    {
        $js = $this->getInfoWindowJs();

        $js[] = "var {$this->getName()} = new google.maps.Marker({$this->getEncodedOptions()});";

        foreach ($this->events as $event) {
            /** @var \dosamigos\google\maps\Event $event */
            $js[] = $event->getJs($this->getName());
        }

        return implode("\n", $js);
    }
public function getJs()
    {
        $js = $this->getInfoWindowJs();

        $js[] = "var {$this->getName()} = new google.maps.Marker({$this->getEncodedOptions()});";

        foreach ($this->events as $event) {
            /** @var \dosamigos\google\maps\Event $event */
            $js[] = $event->getJs($this->getName());
        }

        return implode("\n", $js);
    }
public function getJs ( ) { $ js = $ this -> getInfoWindowJs ( ) ; $ js [ ] = "var {$this->getName()} = new google.maps.Marker({$this->getEncodedOptions()});" ; foreach ( $ this -> events as $ event ) { /** @var \dosamigos\google\maps\Event $event */ $ js [ ] = $ event -> getJs ( $ this -> getName ( ) ) ; } return implode ( "\n" , $ js ) ; }
The constructor js code for the Marker object
@return string
The constructor js code for the Marker object