/** * Renders the point * * @param Ivory\GoogleMapBundle\Model\Point $point * @return string HTML output */ public function render(Point $point) { return sprintf('new google.maps.Point(%s, %s)', $point->getX(), $point->getY()); }
/** * Create a point * * @param integer $x The x coordinate * @param integer $y The y coordinate */ public function __construct($x = 0, $y = 0) { parent::__construct($x, $y); }