GeoMarker
struct · ferroui-controls-livecharts · v0.5.0
struct GeoMarker
A circle at a geographic coordinate over the map, the native counterpart of a
GeoVisualElement around a GeometryVisual<CircleGeometry>: it is centred on its
coordinate, follows pan, zoom and the rotation of a globe at a constant size, and is hidden on
the far side of the globe. Its defaults are the city markers of the source's MapsTests: 14
pixels of orange red with a white outline of 2.
Members
TYPEto_refconstructnewatentity_idsnapshotlongitudeset_longitudelatitudeset_latitudesizeset_sizefillset_fillstrokeset_strokestroke_thicknessset_stroke_thicknesslongitude_propertylatitude_propertysize_propertyfill_propertystroke_propertystroke_thickness_property
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<GeoMarker>
Returns a strong reference to this object.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
at
fn at(longitude: f64, latitude: f64) -> Ref<Self>
A marker at the given longitude and latitude, in degrees.
entity_id
fn entity_id(self: &Self) -> u64
snapshot
fn snapshot(self: &Self) -> ferroui_livecharts::GeoMarker
longitude
fn longitude(self: &Self) -> f64
set_longitude
fn set_longitude(self: &Self, value: f64)
latitude
fn latitude(self: &Self) -> f64
set_latitude
fn set_latitude(self: &Self, value: f64)
size
fn size(self: &Self) -> f64
The diameter.
set_size
fn set_size(self: &Self, value: f64)
fill
fn fill(self: &Self) -> Option<Color>
set_fill
fn set_fill(self: &Self, value: Option<Color>)
stroke
fn stroke(self: &Self) -> Option<Color>
set_stroke
fn set_stroke(self: &Self, value: Option<Color>)
stroke_thickness
fn stroke_thickness(self: &Self) -> f64
set_stroke_thickness
fn set_stroke_thickness(self: &Self, value: f64)
longitude_property
fn longitude_property() -> &'static StyledProperty<f64>
latitude_property
fn latitude_property() -> &'static StyledProperty<f64>
size_property
fn size_property() -> &'static StyledProperty<f64>
fill_property
fn fill_property() -> &'static StyledProperty<Option<Color>>
stroke_property
fn stroke_property() -> &'static StyledProperty<Option<Color>>
stroke_thickness_property
fn stroke_thickness_property() -> &'static StyledProperty<f64>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<GeoMarker>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.