- public bool animate_zoom { get; set; }
Animate zoom change when zooming in/out.
- public Actor background_pattern { get; set; }
The pattern displayed in the background of the map.
- public double deceleration { get; set; }
The deceleration rate for the kinetic mode.
- public uint goto_animation_duration { get; set; }
The duration of an animation when going to a location.
- public AnimationMode goto_animation_mode { get; set; }
The mode of animation when going to a location.
- public bool horizontal_wrap { get; set; }
Determines whether the view should wrap horizontally.
- public bool keep_center_on_resize { get; set; }
Keep the current centered position when resizing the view.
- public bool kinetic_mode { get; set; }
Determines whether the view should use kinetic mode.
- public double latitude { get; set; }
The latitude coordonate of the map
- public double longitude { get; set; }
The longitude coordonate of the map
- public MapSource map_source { get; set; }
- public uint max_zoom_level { get; set; }
The highest allowed level of zoom of the content.
- public uint min_zoom_level { get; set; }
The lowest allowed level of zoom of the content.
- public State state { get; }
The view's global state.
- public BoundingBox world { get; set; }
Set a bounding box to limit the world to.
- public uint zoom_level { get; set; }
The level of zoom of the content.
- public bool zoom_on_double_click { get; set; }
Should the view zoom in and recenter when the user double click on the
map.
- public void add_layer (Layer layer)
Adds a new layer to the view
- public void add_overlay_source (MapSource map_source, uint8 opacity)
Adds a new overlay map source to render tiles with the supplied
opacity on top of the ordinary map source.
- public void bin_layout_add (Actor child, BinAlignment x_align, BinAlignment y_align)
This function inserts a custom actor to the undrelying
BinLayout manager.
- public void center_on (double latitude, double longitude)
Centers the map on these coordinates.
- public void ensure_layers_visible (bool animate)
Changes the map's zoom level and center to make sure that the bounding
boxes of all inserted layers are visible.
- public void ensure_visible (BoundingBox bbox, bool animate)
Changes the map's zoom level and center to make sure the given area is
visible
- public bool get_animate_zoom ()
Checks whether the view animates zoom level changes.
- public unowned Content get_background_pattern ()
Gets the current background texture displayed behind the map.
- public BoundingBox get_bounding_box ()
Gets the bounding box for view this
at current zoom-level.
- public BoundingBox get_bounding_box_for_zoom_level (uint zoom_level)
Gets the bounding box for view this
at zoom_level
.
- public double get_center_latitude ()
Gets the latitude of the view's center.
- public double get_center_longitude ()
Gets the longitude of the view's center.
- public double get_deceleration ()
Gets the view's deceleration rate.
- public bool get_horizontal_wrap ()
- public bool get_keep_center_on_resize ()
Checks whether to keep the center on resize
- public bool get_kinetic_mode ()
Gets the view's scroll mode behaviour.
- public unowned License get_license_actor ()
Returns the License
actor which is inserted by default into the layout manager.
- public unowned MapSource get_map_source ()
Gets the view's current map source.
- public uint get_max_zoom_level ()
Gets the view's maximum allowed zoom level.
- public uint get_min_zoom_level ()
Gets the view's minimal allowed zoom level.
- public List<unowned MapSource> get_overlay_sources ()
Gets a list of overlay sources.
- public State get_state ()
Gets the view's state.
- public void get_viewport_anchor (out int anchor_x, out int anchor_y)
Gets the x and y coordinate of the viewport anchor in respect to the
layer origin.
- public void get_viewport_origin (out int x, out int y)
Gets the x and y coordinate of the viewport in respect to the layer
origin.
- public unowned BoundingBox get_world ()
Get the bounding box that represents the extent of the world.
- public uint get_zoom_level ()
Gets the view's current zoom level.
- 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 double latitude_to_y (double latitude)
Converts the latitude to view's y coordinate.
- public double longitude_to_x (double longitude)
Converts the longitude to view's x coordinate.
- public void reload_tiles ()
Reloads all visible tiles.
- public void remove_layer (Layer layer)
Removes the given layer from the view
- public void remove_overlay_source (MapSource map_source)
Removes an overlay source from View.
- public void set_animate_zoom (bool value)
Should the view animate zoom level changes.
- public void set_background_pattern (Content background)
Sets the background texture displayed behind the map.
- public void set_deceleration (double rate)
The deceleration rate for the kinetic mode.
- public void set_horizontal_wrap (bool wrap)
- public void set_keep_center_on_resize (bool value)
Keep the current centered position when resizing the view.
- public void set_kinetic_mode (bool kinetic)
Determines the way the view reacts to scroll events.
- public void set_map_source (MapSource map_source)
Changes the currently used map source.
- public void set_max_zoom_level (uint zoom_level)
Changes the highest allowed level of zoom
- public void set_min_zoom_level (uint zoom_level)
Changes the lowest allowed level of zoom
- public void set_world (BoundingBox bbox)
Set a bounding box to limit the world to.
- public void set_zoom_level (uint zoom_level)
Changes the current level of zoom
- 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 Surface to_surface (bool include_layers)
Will generate a XlibSurface that represents
the current view of the map.
- public double x_to_longitude (double x)
Converts the view's x coordinate to longitude.
- public double y_to_latitude (double y)
Converts the view's y coordinate to latitude.
- public void zoom_in ()
Zoom in the map by one level.
- public void zoom_out ()
Zoom out the map by one level.