Geo
public final class Geo : Encodable, SubplotAxis
Undocumented
-
Unique identifier of the axis.
Declaration
Swift
public var uid: UInt -
Undocumented
Declaration
Swift
public var domain: Domain? -
Determines if this subplot’s view settings are auto-computed to fit trace data.
On scoped maps, setting
See morefitboundsleads tocenter.lonandcenter.latgetting auto-filled. On maps with a non-clipped projection, settingfitboundsleads tocenter.lon,center.lat, andprojection.rotation.longetting auto-filled. On maps with a clipped projection, settingfitboundsleads tocenter.lon,center.lat,projection.rotation.lon,projection.rotation.lat,lonaxis.rangeandlonaxis.rangegetting auto-filled. If locations, only the trace’s visible locations are considered in thefitboundscomputations. If geojson, the entire trace inputgeojson(if provided) is considered in thefitboundscomputations, Defaults to false.Declaration
Swift
public enum FitBounds : Encodable -
Determines if this subplot’s view settings are auto-computed to fit trace data.
On scoped maps, setting
fitboundsleads tocenter.lonandcenter.latgetting auto-filled. On maps with a non-clipped projection, settingfitboundsleads tocenter.lon,center.lat, andprojection.rotation.longetting auto-filled. On maps with a clipped projection, settingfitboundsleads tocenter.lon,center.lat,projection.rotation.lon,projection.rotation.lat,lonaxis.rangeandlonaxis.rangegetting auto-filled. If locations, only the trace’s visible locations are considered in thefitboundscomputations. If geojson, the entire trace inputgeojson(if provided) is considered in thefitboundscomputations, Defaults to false.Declaration
Swift
public var fitBounds: FitBounds? -
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.
See moreDeclaration
Swift
public enum Resolution : Int, Encodable -
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.
Declaration
Swift
public var resolution: Resolution? -
Set the scope of the map.
See moreDeclaration
Swift
public enum Scope : String, Encodable -
Set the scope of the map.
Declaration
Swift
public var scope: Scope? -
Undocumented
See moreDeclaration
Swift
public struct Projection : Encodable -
Undocumented
Declaration
Swift
public var projection: Projection? -
Undocumented
See moreDeclaration
Swift
public struct Center : Encodable -
Undocumented
Declaration
Swift
public var center: Center? -
Sets the default visibility of the base layers.
Declaration
Swift
public var visible: Bool? -
Sets whether or not the coastlines are drawn.
Declaration
Swift
public var showCoastLines: Bool? -
Sets the coastline color.
Declaration
Swift
public var coastLineColor: Color? -
Sets the coastline stroke width (in px).
Declaration
Swift
public var coastLineWidth: Double? -
Sets whether or not land masses are filled in color.
Declaration
Swift
public var showLand: Bool? -
Sets the land mass color.
Declaration
Swift
public var landColor: Color? -
Sets whether or not oceans are filled in color.
Declaration
Swift
public var showOcean: Bool? -
Sets the ocean color
Declaration
Swift
public var oceanColor: Color? -
Sets whether or not lakes are drawn.
Declaration
Swift
public var showLakes: Bool? -
Sets the color of the lakes.
Declaration
Swift
public var lakeColor: Color? -
Sets whether or not rivers are drawn.
Declaration
Swift
public var showRivers: Bool? -
Sets color of the rivers.
Declaration
Swift
public var riverColor: Color? -
Sets the stroke width (in px) of the rivers.
Declaration
Swift
public var riverWidth: Double? -
Sets whether or not country boundaries are drawn.
Declaration
Swift
public var showCountries: Bool? -
Sets line color of the country boundaries.
Declaration
Swift
public var countryColor: Color? -
Sets line width (in px) of the country boundaries.
Declaration
Swift
public var countryWidth: Double? -
Sets whether or not boundaries of subunits within countries (e.g.
states, provinces) are drawn.
Declaration
Swift
public var showSubunits: Bool? -
Sets the color of the subunits boundaries.
Declaration
Swift
public var subUnitColor: Color? -
Sets the stroke width (in px) of the subunits boundaries.
Declaration
Swift
public var subUnitWidth: Double? -
Sets whether or not a frame is drawn around the map.
Declaration
Swift
public var showFrame: Bool? -
Sets the color the frame.
Declaration
Swift
public var frameColor: Color? -
Sets the stroke width (in px) of the frame.
Declaration
Swift
public var frameWidth: Double? -
Set the background color of the map
Declaration
Swift
public var backgroundColor: Color? -
Undocumented
See moreDeclaration
Swift
public struct LongitudeAxis : Encodable -
Undocumented
Declaration
Swift
public var longitudeAxis: LongitudeAxis? -
Undocumented
See moreDeclaration
Swift
public struct LatitudeAxis : Encodable -
Undocumented
Declaration
Swift
public var latitudeAxis: LatitudeAxis? -
Controls persistence of user-driven changes in the view (projection and center).
Defaults to
layout.uirevision.Declaration
Swift
public var uiRevision: Anything? -
Shared and preset default axis reference used to initialize layout and all traces.
Declaration
Swift
public static let preset: Geo -
init(uid:domain: fitBounds: resolution: scope: projection: center: visible: showCoastLines: coastLineColor: coastLineWidth: showLand: landColor: showOcean: oceanColor: showLakes: lakeColor: showRivers: riverColor: riverWidth: showCountries: countryColor: countryWidth: showSubunits: subUnitColor: subUnitWidth: showFrame: frameColor: frameWidth: backgroundColor: longitudeAxis: latitudeAxis: uiRevision: ) Creates
Geoobject with specified properties.Declaration
Swift
public init(uid: UInt = UInt.random(in: 2...UInt.max), domain: Domain? = nil, fitBounds: FitBounds? = nil, resolution: Resolution? = nil, scope: Scope? = nil, projection: Projection? = nil, center: Center? = nil, visible: Bool? = nil, showCoastLines: Bool? = nil, coastLineColor: Color? = nil, coastLineWidth: Double? = nil, showLand: Bool? = nil, landColor: Color? = nil, showOcean: Bool? = nil, oceanColor: Color? = nil, showLakes: Bool? = nil, lakeColor: Color? = nil, showRivers: Bool? = nil, riverColor: Color? = nil, riverWidth: Double? = nil, showCountries: Bool? = nil, countryColor: Color? = nil, countryWidth: Double? = nil, showSubunits: Bool? = nil, subUnitColor: Color? = nil, subUnitWidth: Double? = nil, showFrame: Bool? = nil, frameColor: Color? = nil, frameWidth: Double? = nil, backgroundColor: Color? = nil, longitudeAxis: LongitudeAxis? = nil, latitudeAxis: LatitudeAxis? = nil, uiRevision: Anything? = nil)Parameters
uidUnique identifier of the axis.
domainfitBoundsDetermines if this subplot’s view settings are auto-computed to fit trace data.
resolutionSets the resolution of the base layers.
scopeSet the scope of the map.
projectioncentervisibleSets the default visibility of the base layers.
showCoastLinesSets whether or not the coastlines are drawn.
coastLineColorSets the coastline color.
coastLineWidthSets the coastline stroke width (in px).
showLandSets whether or not land masses are filled in color.
landColorSets the land mass color.
showOceanSets whether or not oceans are filled in color.
oceanColorSets the ocean color
showLakesSets whether or not lakes are drawn.
lakeColorSets the color of the lakes.
showRiversSets whether or not rivers are drawn.
riverColorSets color of the rivers.
riverWidthSets the stroke width (in px) of the rivers.
showCountriesSets whether or not country boundaries are drawn.
countryColorSets line color of the country boundaries.
countryWidthSets line width (in px) of the country boundaries.
showSubunitsSets whether or not boundaries of subunits within countries (e.g.
subUnitColorSets the color of the subunits boundaries.
subUnitWidthSets the stroke width (in px) of the subunits boundaries.
showFrameSets whether or not a frame is drawn around the map.
frameColorSets the color the frame.
frameWidthSets the stroke width (in px) of the frame.
backgroundColorSet the background color of the map
longitudeAxislatitudeAxisuiRevisionControls persistence of user-driven changes in the view (projection and center).
View on GitHub
Install in Dash
Geo Class Reference