Map
Object Hierarchy:
Description:
[ CCode ( type_id = "shumate_map_get_type ()" ) ]
public class Map : Widget, Accessible, Buildable, ConstraintTarget
Content:
Properties:
- public bool animate_zoom { get; set; }
Animate zoom change when zooming in/out.
- public uint go_to_duration { get; set; }
The duration of an animation when going to a location, in
milliseconds.
- public State state { get; }
The view's global state.
- public Viewport viewport { get; }
The viewport, which contains information about the center, rotation,
zoom, etc.
- public bool zoom_on_double_click { get; set; }
Should the view zoom in and recenter when the user double click on the
map.
Creation methods:
Methods:
- public void add_layer (Layer layer)
Adds a new layer to the view
- public void center_on (double latitude, double longitude)
Centers the map on these coordinates.
- public bool get_animate_zoom ()
Checks whether the view animates zoom level changes.
- public uint get_go_to_duration ()
Get the 'go-to-duration' property.
- public State get_state ()
Gets the view's state.
- public unowned Viewport get_viewport ()
- public bool get_zoom_on_double_click ()
Checks whether the view zooms on double click.
- public void go_to (double latitude, double longitude)
Move from the current position to these coordinates.
- public void go_to_full (double latitude, double longitude, double zoom_level)
Move from the current position to these coordinates and zoom to the
given zoom level.
- public void go_to_full_with_duration (double latitude, double longitude, double zoom_level, uint duration_ms)
Move from the current position to these coordinates and zoom to the
given zoom level.
- public void insert_layer_above (Layer layer, Layer? next_sibling)
Adds layer
to this
above next_sibling
or, if next_sibling
is null, at the bottom of the layer
list.
- public void insert_layer_behind (Layer layer, Layer? next_sibling)
Adds layer
to this
behind next_sibling
or, if next_sibling
is null, at the top of the layer
list.
- public void remove_layer (Layer layer)
Removes the given layer from the view
- public void set_animate_zoom (bool value)
Should the view animate zoom level changes.
- public void set_go_to_duration (uint duration)
Set the duration of the transition of [method@Map.
- public void set_map_source (MapSource map_source)
Changes the currently used map source.
- public void set_zoom_on_double_click (bool value)
Should the view zoom in and recenter when the user double click on the
map.
- public void stop_go_to ()
Stop the go to animation.
- public void zoom_in ()
Zooms the map in.
- public void zoom_out ()
Zooms the map out.
Signals:
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Gtk.Accessible
- accessible_role
- get_accessible_role
- reset_property
- reset_relation
- reset_state
- update_property
- update_property_value
- update_relation
- update_relation_value
- update_state
- update_state_value
All known members inherited from interface Gtk.Buildable
- add_child
- custom_finished
- custom_tag_end
- custom_tag_start
- get_buildable_id
- get_id
- get_internal_child
- parser_finished
- set_buildable_property
- set_id