/** * @param array $points * @param array $properties * @param array $options */ public function __construct(array $points, array $properties = [], array $options = []) { $geometry = new Geometry(Geometry::TYPE_LINE, $points); parent::__construct($geometry, $options); }
/** * @param Point|string $point Point or name of the place. If null, then placemark will be at the map center * @param array $properties * @param array $options */ public function __construct(Point $point = null, array $properties = [], array $options = []) { $geometry = new Geometry(Geometry::TYPE_POINT, [$point]); parent::__construct($geometry, $properties, $options); }