Exemplo n.º 1
0
 public function testLongitudeWithNull()
 {
     $this->coordinate->setLongitude(null);
     $this->assertNull($this->coordinate->getLongitude());
 }
 /**
  * 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()));
 }