FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GeoMapMeasurement

    struct · ferroui-livecharts · v0.5.0

    struct GeoMapMeasurement
    

    A measured map: the scene, the projector and viewport it was drawn with, and its lands.

    View source

    Members

    scene

    scene: Scene
    

    Source

    projector

    projector: crate::geo::MapProjector
    

    Source

    viewport

    viewport: MapViewport
    

    Source

    viewport_center

    viewport_center: ferroui_base::Point
    

    The centre of the control, about which the viewport zooms.

    Source

    lands

    lands: Vec<GeoLand>
    

    Source

    project

    fn project(self: &Self, longitude: f64, latitude: f64) -> Option<Point>
    

    The screen position of a coordinate (GeoMapChart.Project), None on the far side of a globe.

    Source

    unproject

    fn unproject(self: &Self, point: Point) -> Option<(f64, f64)>
    

    The coordinate of a screen position (GeoMapChart.Unproject), None outside the disc of a globe.

    Source

    land

    fn land(self: &Self, id: PointId) -> Option<&GeoLand>
    

    The land of a hit region.

    Source

    find_land_at

    fn find_land_at(self: &Self, point: Point) -> Option<&GeoLand>
    

    The first land whose shape contains the screen position (FindLandAt).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.