pub struct GeoOption {
pub map_name: Option<String>,
pub roam: Option<bool>,
pub center: Option<Vec<f64>>,
pub zoom: Option<f64>,
pub scale: Option<f64>,
pub regions: Vec<DataValue>,
pub label: Option<LabelOption>,
pub item_style: Option<ItemStyleOption>,
pub line_style: Option<LineStyleOption>,
pub emphasis: Option<EmphasisOption>,
pub show: bool,
pub aspect_scale: Option<f64>,
}Expand description
The options of a geo component.
Fields§
§map_name: Option<String>The name of the map region.
roam: Option<bool>Whether the map can be panned and zoomed.
center: Option<Vec<f64>>The centre of the map.
zoom: Option<f64>The zoom level of the map.
scale: Option<f64>The scale of the map.
regions: Vec<DataValue>The regions of the map.
label: Option<LabelOption>The label of a region.
item_style: Option<ItemStyleOption>The fill of a region.
line_style: Option<LineStyleOption>The stroke of a region.
emphasis: Option<EmphasisOption>The emphasis style of a region.
show: boolWhether the map is drawn.
aspect_scale: Option<f64>The factor that keeps the map from looking stretched.
Trait Implementations§
impl StructuralPartialEq for GeoOption
Auto Trait Implementations§
impl Freeze for GeoOption
impl RefUnwindSafe for GeoOption
impl Send for GeoOption
impl Sync for GeoOption
impl Unpin for GeoOption
impl UnsafeUnpin for GeoOption
impl UnwindSafe for GeoOption
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more