public function setCenter($center)
    {
        if (!$center instanceof LatLng) {
            $center = LatLng::fromNative($center);
        }

        Assertion::isInstanceOf($center, 'Netzmacht\LeafletPHP\Value\LatLng');

        return $this->setOption('center', $center);
    }
public function setCenter($center)
    {
        if (!$center instanceof LatLng) {
            $center = LatLng::fromNative($center);
        }

        Assertion::isInstanceOf($center, 'Netzmacht\LeafletPHP\Value\LatLng');

        return $this->setOption('center', $center);
    }
public function setCenter ( $ center ) { if ( ! $ center instanceof LatLng ) { $ center = LatLng :: fromNative ( $ center ) ; } Assertion :: isInstanceOf ( $ center , 'Netzmacht\LeafletPHP\Value\LatLng' ) ; return $ this -> setOption ( 'center' , $ center ) ; }
Set the center.

@param LatLng|array $center The map center.

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