public function testNoWrapWithValidNoWrap() { $this->coordinate->setNoWrap(false); $this->assertFalse($this->coordinate->isNoWrap()); }
/** * Renders a coordinate. * * @param \Ivory\GoogleMap\Base\Coordinate $coordinate The coordinate. * * @return string The JS output. */ public function render(Coordinate $coordinate) { return sprintf('%s = new google.maps.LatLng(%s, %s, %s);' . PHP_EOL, $coordinate->getJavascriptVariable(), $coordinate->getLatitude(), $coordinate->getLongitude(), json_encode($coordinate->isNoWrap())); }