Class StoreExtensions
public static class StoreExtensions
- Inheritance
-
object
StoreExtensions
Methods
Add(MarkerStore, LatLon, double, float, MarkerSizeMode, Color32, MarkerShape, bool, MarkerAltitudeMode)
public static MarkerHandle Add(this MarkerStore store, LatLon position, double altitudeMeters, float sizeParam, MarkerSizeMode mode, Color32 color, MarkerShape shape = MarkerShape.Circle, bool flat = false, MarkerAltitudeMode altitudeMode = MarkerAltitudeMode.RelativeToGround)
Parameters
store MarkerStore
position LatLon
altitudeMeters double
sizeParam float
mode MarkerSizeMode
color Color32
shape MarkerShape
flat bool
altitudeMode MarkerAltitudeMode
Returns
- MarkerHandle
AddPolygon(PolygonStore, IReadOnlyList<LatLon>, Color32)
public static int AddPolygon(this PolygonStore store, IReadOnlyList<LatLon> ring, Color32 fillColor)
Parameters
store PolygonStore
ring IReadOnlyList<LatLon>
fillColor Color32
Returns
- int
AddPolyline(PolylineStore, IReadOnlyList<LatLon>, float, Color32)
public static int AddPolyline(this PolylineStore store, IReadOnlyList<LatLon> points, float widthPx, Color32 color)
Parameters
store PolylineStore
points IReadOnlyList<LatLon>
widthPx float
color Color32
Returns
- int
AddPolyline3D(PolylineStore, IReadOnlyList<LatLon>, IReadOnlyList<double>, float, Color32)
public static int AddPolyline3D(this PolylineStore store, IReadOnlyList<LatLon> points, IReadOnlyList<double> altitudesMeters, float widthPx, Color32 color)
Parameters
store PolylineStore
points IReadOnlyList<LatLon>
altitudesMeters IReadOnlyList<double>
widthPx float
color Color32
Returns
- int
SetHoverStyle(MarkerInfoStore, in MarkerRef, Color32, Color32, int)
public static void SetHoverStyle(this MarkerInfoStore info, in MarkerRef marker, Color32 textColor, Color32 backgroundColor, int fontSizePx = 0)
Parameters
info MarkerInfoStore
marker MarkerRef
textColor Color32
backgroundColor Color32
fontSizePx int
SetHoverStyle(MarkerInfoStore, int, Color32, Color32, int)
public static void SetHoverStyle(this MarkerInfoStore info, int markerId, Color32 textColor, Color32 backgroundColor, int fontSizePx = 0)
Parameters
info MarkerInfoStore
markerId int
textColor Color32
backgroundColor Color32
fontSizePx int
SetOutlineColor(MarkerHandle, Color32)
public static void SetOutlineColor(this MarkerHandle handle, Color32 outlineColor)
Parameters
handle MarkerHandle
outlineColor Color32
SetOutlineColor(MarkerStore, int, Color32)
public static void SetOutlineColor(this MarkerStore store, int slot, Color32 outlineColor)
Parameters
store MarkerStore
slot int
outlineColor Color32
UpdateStyle(MarkerHandle, float, MarkerSizeMode, Color32, MarkerShape)
public static void UpdateStyle(this MarkerHandle handle, float sizeParam, MarkerSizeMode mode, Color32 color, MarkerShape shape = MarkerShape.Circle)
Parameters
handle MarkerHandle
sizeParam float
mode MarkerSizeMode
color Color32
shape MarkerShape
UpdateStyle(MarkerStore, int, float, MarkerSizeMode, Color32, MarkerShape)
public static void UpdateStyle(this MarkerStore store, int slot, float sizeParam, MarkerSizeMode mode, Color32 color, MarkerShape shape = MarkerShape.Circle)
Parameters
store MarkerStore
slot int
sizeParam float
mode MarkerSizeMode
color Color32
shape MarkerShape