![]() |
![]() |
![]() |
libchamplain Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
ChamplainBaseMarker; ClutterActor * champlain_base_marker_new (void); void champlain_base_marker_set_position (ChamplainBaseMarker *marker, gdouble longitude, gdouble latitude);
GObject +----GInitiallyUnowned +----ClutterActor +----ClutterGroup +----ChamplainBaseMarker +----ChamplainMarker
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.
ClutterActor * champlain_base_marker_new (void);
Returns : |
a new ChamplainBaseMarker ready to be used as a ClutterActor. |
Since 0.4
void champlain_base_marker_set_position (ChamplainBaseMarker *marker, gdouble longitude, gdouble latitude);
Positions the base_marker on the map at the coordinates
|
|
|
the longitude to center the map at |
|
the longitude to center the map at |
Since 0.4
"latitude"
property"latitude" gdouble : Read / Write
The latitude coordonate of the map
Allowed values: [-90,90]
Default value: 0
Since 0.4
"longitude"
property"longitude" gdouble : Read / Write
The longitude coordonate of the map
Allowed values: [-180,180]
Default value: 0
Since 0.4