ChamplainBaseMarker

ChamplainBaseMarker — A base marker to identify points of interest on a map

Synopsis

                    ChamplainBaseMarker;
ClutterActor *      champlain_base_marker_new           (void);
void                champlain_base_marker_set_position  (ChamplainBaseMarker *marker,
                                                         gdouble longitude,
                                                         gdouble latitude);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----ClutterActor
               +----ClutterGroup
                     +----ChamplainBaseMarker
                           +----ChamplainMarker

Implemented Interfaces

ChamplainBaseMarker implements ClutterScriptable and ClutterContainer.

Properties

  "latitude"                 gdouble               : Read / Write
  "longitude"                gdouble               : Read / Write

Description

Base markers reprensent points of interest on a map. base markers need to be placed on a layer (a ChamplainLayer). layers have to be added to a champlainview for the base_markers to show on the map.

a basemarker is nothing more than a regular clutteractor. you can draw on it what ever you want. don't forget to set the anchor position in the base marker using clutter_actor_set_anchor_point. set the base_markers position on the map using champlain_base_marker_set_position.

champlain has a more evoluted type of markers with text and image support. see champlainmarker.

Details

ChamplainBaseMarker

typedef struct _ChamplainBaseMarker ChamplainBaseMarker;


champlain_base_marker_new ()

ClutterActor *      champlain_base_marker_new           (void);

Returns :

a new ChamplainBaseMarker ready to be used as a ClutterActor.

Since 0.4


champlain_base_marker_set_position ()

void                champlain_base_marker_set_position  (ChamplainBaseMarker *marker,
                                                         gdouble longitude,
                                                         gdouble latitude);

Positions the base_marker on the map at the coordinates

marker :

longitude :

the longitude to center the map at

latitude :

the longitude to center the map at

Since 0.4

Property Details

The "latitude" property

  "latitude"                 gdouble               : Read / Write

The latitude coordonate of the map

Allowed values: [-90,90]

Default value: 0

Since 0.4


The "longitude" property

  "longitude"                gdouble               : Read / Write

The longitude coordonate of the map

Allowed values: [-180,180]

Default value: 0

Since 0.4