+ init (self) {
+ /* initialize the object here */
+ VIK_MAP_TYPE(self)->tilesize_x = 256;
+ VIK_MAP_TYPE(self)->tilesize_y = 256;
+ VIK_MAP_TYPE(self)->drawmode = VIK_VIEWPORT_DRAWMODE_MERCATOR;
+ }
+
+ public GObject *
+ new_with_id (guint8 id, GoogleType type) {
+ GoogleMapType *ret = GET_NEW;
+ VIK_MAP_TYPE(ret)->uniq_id = id;
+ ret->_priv->type = type;
+ return G_OBJECT (ret);
+ }
+
+ virtual gchar *
+ get_uri( self, MapCoord *src )
+ {
+ const gchar *verstr = google_version_number(src, GOOGLE_MAP_TYPE(self)->_priv->type);
+ gchar *uri = g_strdup_printf ( "/mt?n=404&v=%s&x=%d&y=%d&zoom=%d", verstr, src->x, src->y, src->scale );
+ return uri;
+ }
+
+ virtual gchar *
+ get_hostname( self )
+ {
+ return g_strdup("mt.google.com");
+ }
+