There used to be an anchor in ChamplainMarker, but ClutterActor
offers that functionality now.
champlain_marker_init (ChamplainMarker *champlainMarker)
{
ChamplainMarkerPrivate *priv = CHAMPLAIN_MARKER_GET_PRIVATE (champlainMarker);
- priv->anchor.x = 0;
- priv->anchor.y = 0;
}
{
gdouble lon;
gdouble lat;
-
- ChamplainPoint anchor;
};
typedef struct
y = priv->map->latitude_to_y(priv->map, marker_priv->lat, priv->map->current_level->level);
clutter_actor_set_position(CLUTTER_ACTOR(marker),
- x - marker_priv->anchor.x - priv->map->current_level->anchor.x,
- y - marker_priv->anchor.y - priv->map->current_level->anchor.y);
+ x - priv->map->current_level->anchor.x,
+ y - priv->map->current_level->anchor.y);
}
}