FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Maps

    struct · ferroui-livecharts · v0.5.0

    struct Maps
    

    The maps of the source (Maps).

    View source

    Members

    world_map

    fn world_map() -> &'static DrawnMap
    

    The bundled world map (GetWorldMap), parsed once and shared.

    Source

    map_from_geojson

    fn map_from_geojson(json: &str) -> Result<DrawnMap, ChartError>
    

    A map of one layer, default, read from GeoJSON text (GetMapFromStreamReader).

    Source

    build_projector

    fn build_projector(projection: MapProjection, map_size: [f64; 2], base_offset: [f64; 2], center: (f64, f64), bounds: GeographicBounds) -> MapProjector
    

    A projector of the projection fitted into the map area (BuildProjector): the area keeps the aspect ratio of the projection, centred on the shorter side, and the orthographic globe faces center (longitude, latitude) in degrees.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

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