pub struct Geo<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Geo<'a>
impl<'a> Geo<'a>
pub fn domain(&mut self) -> &mut Domain<'a>
Sourcepub fn fitbounds(&mut self, fitbounds: Fitbounds) -> &mut Self
pub fn fitbounds(&mut self, fitbounds: Fitbounds) -> &mut Self
Determines if this subplot’s view settings are auto-computed to fit trace data. On scoped maps, setting fitbounds
leads to center.lon
and center.lat
getting auto-filled. On maps with a non-clipped projection, setting fitbounds
leads to center.lon
, center.lat
, and projection.rotation.lon
getting auto-filled. On maps with a clipped projection, setting fitbounds
leads to center.lon
, center.lat
, projection.rotation.lon
, projection.rotation.lat
, lonaxis.range
and lonaxis.range
getting auto-filled. If locations, only the trace’s visible locations are considered in the fitbounds
computations. If geojson, the entire trace input geojson
(if provided) is considered in the fitbounds
computations, Defaults to false.
default: false
Sourcepub fn resolution(&mut self, resolution: Resolution) -> &mut Self
pub fn resolution(&mut self, resolution: Resolution) -> &mut Self
Sets the resolution of the base layers. The values have units of km/mm e.g. 110 corresponds to a scale ratio of 1:110,000,000.
default: 110
pub fn projection(&mut self) -> &mut Projection<'a>
pub fn center(&mut self) -> &mut Center
Sourcepub fn visible(&mut self, visible: bool) -> &mut Self
pub fn visible(&mut self, visible: bool) -> &mut Self
Sets the default visibility of the base layers.
default: true
Sourcepub fn showcoastlines(&mut self, showcoastlines: bool) -> &mut Self
pub fn showcoastlines(&mut self, showcoastlines: bool) -> &mut Self
Sets whether or not the coastlines are drawn.
Sourcepub fn coastlinecolor(&mut self, coastlinecolor: &'a str) -> &mut Self
pub fn coastlinecolor(&mut self, coastlinecolor: &'a str) -> &mut Self
Sets the coastline color.
default: #444
Sourcepub fn coastlinewidth(&mut self, coastlinewidth: f64) -> &mut Self
pub fn coastlinewidth(&mut self, coastlinewidth: f64) -> &mut Self
Sets the coastline stroke width (in px).
default: 1
Sourcepub fn showland(&mut self, showland: bool) -> &mut Self
pub fn showland(&mut self, showland: bool) -> &mut Self
Sets whether or not land masses are filled in color.
default: false
Sourcepub fn landcolor(&mut self, landcolor: &'a str) -> &mut Self
pub fn landcolor(&mut self, landcolor: &'a str) -> &mut Self
Sets the land mass color.
default: #F0DC82
Sourcepub fn showocean(&mut self, showocean: bool) -> &mut Self
pub fn showocean(&mut self, showocean: bool) -> &mut Self
Sets whether or not oceans are filled in color.
default: false
Sourcepub fn oceancolor(&mut self, oceancolor: &'a str) -> &mut Self
pub fn oceancolor(&mut self, oceancolor: &'a str) -> &mut Self
Sets the ocean color
default: #3399FF
Sourcepub fn showlakes(&mut self, showlakes: bool) -> &mut Self
pub fn showlakes(&mut self, showlakes: bool) -> &mut Self
Sets whether or not lakes are drawn.
default: false
Sourcepub fn lakecolor(&mut self, lakecolor: &'a str) -> &mut Self
pub fn lakecolor(&mut self, lakecolor: &'a str) -> &mut Self
Sets the color of the lakes.
default: #3399FF
Sourcepub fn showrivers(&mut self, showrivers: bool) -> &mut Self
pub fn showrivers(&mut self, showrivers: bool) -> &mut Self
Sets whether or not rivers are drawn.
default: false
Sourcepub fn rivercolor(&mut self, rivercolor: &'a str) -> &mut Self
pub fn rivercolor(&mut self, rivercolor: &'a str) -> &mut Self
Sets color of the rivers.
default: #3399FF
Sourcepub fn riverwidth(&mut self, riverwidth: f64) -> &mut Self
pub fn riverwidth(&mut self, riverwidth: f64) -> &mut Self
Sets the stroke width (in px) of the rivers.
default: 1
Sourcepub fn showcountries(&mut self, showcountries: bool) -> &mut Self
pub fn showcountries(&mut self, showcountries: bool) -> &mut Self
Sets whether or not country boundaries are drawn.
Sourcepub fn countrycolor(&mut self, countrycolor: &'a str) -> &mut Self
pub fn countrycolor(&mut self, countrycolor: &'a str) -> &mut Self
Sets line color of the country boundaries.
default: #444
Sourcepub fn countrywidth(&mut self, countrywidth: f64) -> &mut Self
pub fn countrywidth(&mut self, countrywidth: f64) -> &mut Self
Sets line width (in px) of the country boundaries.
default: 1
Sourcepub fn showsubunits(&mut self, showsubunits: bool) -> &mut Self
pub fn showsubunits(&mut self, showsubunits: bool) -> &mut Self
Sets whether or not boundaries of subunits within countries (e.g. states, provinces) are drawn.
Sourcepub fn subunitcolor(&mut self, subunitcolor: &'a str) -> &mut Self
pub fn subunitcolor(&mut self, subunitcolor: &'a str) -> &mut Self
Sets the color of the subunits boundaries.
default: #444
Sourcepub fn subunitwidth(&mut self, subunitwidth: f64) -> &mut Self
pub fn subunitwidth(&mut self, subunitwidth: f64) -> &mut Self
Sets the stroke width (in px) of the subunits boundaries.
default: 1
Sourcepub fn showframe(&mut self, showframe: bool) -> &mut Self
pub fn showframe(&mut self, showframe: bool) -> &mut Self
Sets whether or not a frame is drawn around the map.
Sourcepub fn framecolor(&mut self, framecolor: &'a str) -> &mut Self
pub fn framecolor(&mut self, framecolor: &'a str) -> &mut Self
Sets the color the frame.
default: #444
Sourcepub fn framewidth(&mut self, framewidth: f64) -> &mut Self
pub fn framewidth(&mut self, framewidth: f64) -> &mut Self
Sets the stroke width (in px) of the frame.
default: 1
Sourcepub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
pub fn bgcolor(&mut self, bgcolor: &'a str) -> &mut Self
Set the background color of the map
default: #fff
pub fn lonaxis(&mut self) -> &mut Lonaxis<'a>
pub fn lataxis(&mut self) -> &mut Lataxis<'a>
Sourcepub fn uirevision(&mut self, uirevision: Any) -> &mut Self
pub fn uirevision(&mut self, uirevision: Any) -> &mut Self
Controls persistence of user-driven changes in the view (projection and center). Defaults to layout.uirevision
.