+ parent_class->download = _download;
+ parent_class->download_handle_init = _download_handle_init;
+ parent_class->download_handle_cleanup = _download_handle_cleanup;
+
+ /* Default implementation of methods */
+ klass->get_uri = NULL;
+ klass->get_hostname = NULL;
+ klass->get_download_options = NULL;
+
+ pspec = g_param_spec_uint ("id",
+ "Id of the tool",
+ "Set the id",
+ 0 /* minimum value */,
+ G_MAXUINT /* maximum value */,
+ 0 /* default value */,
+ G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
+ g_object_class_install_property (object_class, PROP_ID, pspec);
+
+ pspec = g_param_spec_string ("label",
+ "Label",
+ "The label of the map source",
+ "<no-set>" /* default value */,
+ G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
+ g_object_class_install_property (object_class, PROP_LABEL, pspec);
+
+ pspec = g_param_spec_uint ("tilesize-x",
+ "TileSizeX",
+ "Set the size of the tile (x)",
+ 0 /* minimum value */,
+ G_MAXUINT16 /* maximum value */,
+ 0 /* default value */,
+ G_PARAM_CONSTRUCT | G_PARAM_READWRITE);
+ g_object_class_install_property (object_class, PROP_TILESIZE_X, pspec);
+
+ pspec = g_param_spec_uint ("tilesize-y",
+ "TileSizeY",
+ "Set the size of the tile (y)",
+ 0 /* minimum value */,
+ G_MAXUINT16 /* maximum value */,
+ 0 /* default value */,
+ G_PARAM_CONSTRUCT | G_PARAM_READWRITE);
+ g_object_class_install_property (object_class, PROP_TILESIZE_Y, pspec);
+
+ pspec = g_param_spec_enum("drawmode",
+ "Drawmode",
+ "The mode used to draw map",
+ VIK_TYPE_VIEWPORT_DRAW_MODE,
+ VIK_VIEWPORT_DRAWMODE_UTM,
+ G_PARAM_READWRITE);
+ g_object_class_install_property(object_class, PROP_DRAWMODE, pspec);
+
+ pspec = g_param_spec_string ("copyright",
+ "Copyright",
+ "The copyright of the map source",
+ NULL,
+ G_PARAM_READWRITE);
+ g_object_class_install_property (object_class, PROP_COPYRIGHT, pspec);
+
+ pspec = g_param_spec_string ("license",
+ "License",
+ "The license of the map source",
+ NULL,
+ G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
+ g_object_class_install_property (object_class, PROP_LICENSE, pspec);
+
+ pspec = g_param_spec_string ("license-url",
+ "License URL",
+ "The URL of the license of the map source",
+ NULL,
+ G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
+ g_object_class_install_property (object_class, PROP_LICENSE_URL, pspec);