using Gtk;

int main (string[] args) {
	
	Clutter.init (null);
	Gtk.init(ref args);

	var window = new Window (WindowType.TOPLEVEL);
	window.title = "Champlain Exmaple";
	window.set_default_size (500, 500);
	window.position = WindowPosition.CENTER;
	window.destroy.connect (Clutter.main_quit);
	
	var embed = new GtkChamplain.Embed ();
	window.add (embed);
	window.show_all ();
	
	var view = embed.champlain_view;
	
	var poly = new Champlain.Polygon();
	poly.append_point(46.568,15.628);
	poly.append_point(46.572,15.676);
	poly.append_point(46.537,15.678);
	poly.append_point(46.536,15.615);
	view.add_polygon(poly);
	
	view.set_show_license(false);
	view.set_zoom_level(13);
	view.center_on(46.556, 15.646);

	Clutter.main ();
	Gtk.main ();
	
	return 0;
}

