public function getJs()
    {
        $bounds = $this->getBounds()->getJs();
        $options = $this->getEncodedOptions();
        $js = [];
        $js[] = "var {$this->getName()} = new google.maps.GroundOverlay('{$this->url}',{$bounds}, {$options});";

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

        return implode("\n", $js);
    }
public function getJs()
    {
        $bounds = $this->getBounds()->getJs();
        $options = $this->getEncodedOptions();
        $js = [];
        $js[] = "var {$this->getName()} = new google.maps.GroundOverlay('{$this->url}',{$bounds}, {$options});";

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

        return implode("\n", $js);
    }
public function getJs ( ) { $ bounds = $ this -> getBounds ( ) -> getJs ( ) ; $ options = $ this -> getEncodedOptions ( ) ; $ js = [ ] ; $ js [ ] = "var {$this->getName()} = new google.maps.GroundOverlay('{$this->url}',{$bounds}, {$options});" ; foreach ( $ this -> events as $ event ) { /** @var \dosamigos\google\maps\Event $event */ $ js [ ] = $ event -> getJs ( $ this -> getName ( ) ) ; } return implode ( "\n" , $ js ) ; }
Returns the js code to create a rectangle on a map
@return string
Returns the js code to create a rectangle on a map