public GObject *
new_with_id (guint8 id, GoogleType type) {
- GObject *ret = GET_NEW;
+ GoogleMapType *ret = GET_NEW;
VIK_MAP_TYPE(ret)->uniq_id = id;
- GOOGLE_MAP_TYPE(ret)->_priv->type = type;
- return G_OBJECT (ret);
- }
-
- public GObject *
- new (void) {
- GObject *ret = GET_NEW;
+ ret->_priv->type = type;
return G_OBJECT (ret);
}
public GObject *
new_with_id (guint8 id, const gchar *hostname, const gchar *url) {
- GObject *ret = GET_NEW;
+ OsmMapType *ret = GET_NEW;
VIK_MAP_TYPE(ret)->uniq_id = id;
- OSM_MAP_TYPE(ret)->_priv->hostname = g_strdup(hostname);
- OSM_MAP_TYPE(ret)->_priv->url = g_strdup(url);
- return G_OBJECT (ret);
- }
-
- public GObject *
- new (void) {
- GObject *ret = GET_NEW;
+ ret->_priv->hostname = g_strdup(hostname);
+ ret->_priv->url = g_strdup(url);
return G_OBJECT (ret);
}
public GObject *
new_with_id (guint8 id, int type) {
- GObject *ret = GET_NEW;
+ TerraserverMapType *ret = GET_NEW;
VIK_MAP_TYPE(ret)->uniq_id = id;
- TERRASERVER_MAP_TYPE(ret)->_priv->type = type;
+ ret->_priv->type = type;
return G_OBJECT (ret);
}
#include "config.h"
#endif
+#include "vikviewport.h"
#include "vikcoord.h"
#include "mapcoord.h"
%}
public guint8 uniq_id;
public guint16 tilesize_x;
public guint16 tilesize_y;
- public guint drawmode;
+ public VikViewportDrawMode drawmode;
virtual public gboolean coord_to_mapcoord ( self, const VikCoord *src, gdouble xzoom, gdouble yzoom, MapCoord *dest )
{
return FALSE;