public function setMaxBounds($bounds)
    {
        if (is_array($bounds)) {
            $bounds = LatLngBounds::fromArray($bounds);
        }

        Assertion::isInstanceOf($bounds, 'Netzmacht/LeafletPHP/Type/LatLngBounds');

        return $this->setOption('maxBounds', $bounds);
    }
public function setMaxBounds($bounds)
    {
        if (is_array($bounds)) {
            $bounds = LatLngBounds::fromArray($bounds);
        }

        Assertion::isInstanceOf($bounds, 'Netzmacht/LeafletPHP/Type/LatLngBounds');

        return $this->setOption('maxBounds', $bounds);
    }
public function setMaxBounds ( $ bounds ) { if ( is_array ( $ bounds ) ) { $ bounds = LatLngBounds :: fromArray ( $ bounds ) ; } Assertion :: isInstanceOf ( $ bounds , 'Netzmacht/LeafletPHP/Type/LatLngBounds' ) ; return $ this -> setOption ( 'maxBounds' , $ bounds ) ; }
Set max bounds option.

@param LatLngBounds|array $bounds Max bounds.

@return $this
@see    http://leafletjs.com/reference.html#map-maxbounds

@throws InvalidArgumentException If invalid bounds given.
Set max bounds option .