Mapbox
public final class Mapbox : Encodable, SubplotAxis
Undocumented
-
Unique identifier of the axis.
Declaration
Swift
public var uid: UInt
-
Undocumented
Declaration
Swift
public var domain: Domain?
-
Sets the mapbox access token to be used for this mapbox map.
Alternatively, the mapbox access token can be set in the configuration options under
mapboxAccessToken
. Note that accessToken are only required whenstyle
(e.g with values : basic, streets, outdoors, light, dark, satellite, satellite-streets ) and/or a layout layer references the Mapbox server.Declaration
Swift
public var accessToken: String?
-
Defines the map layers that are rendered by default below the trace layers defined in
data
, which are themselves by default rendered below the layers defined inlayout.mapbox.layers
.These layers can be defined either explicitly as a Mapbox Style object which can contain multiple layer definitions that load data from any public or private Tile Map Service (TMS or XYZ) or Web Map Service (WMS) or implicitly by using one of the built-in style objects which use WMSes which do not require any access tokens, or by using a default Mapbox style or custom Mapbox style URL, both of which require a Mapbox access token Note that Mapbox access token can be set in the
accesstoken
attribute or in themapboxAccessToken
config option. Mapbox Style objects are of the form described in the Mapbox GL JS documentation available at https://docs.mapbox.com/mapbox-gl-js/style-spec The built-in plotly.js styles objects are: open-street-map, white-bg, carto-positron, carto-darkmatter, stamen-terrain, stamen-toner, stamen-watercolor The built-in Mapbox styles are: basic, streets, outdoors, light, dark, satellite, satellite-streets Mapbox style URLs are of the form: mapbox://mapbox.mapbox-- Declaration
Swift
public var style: Anything?
-
Undocumented
See moreDeclaration
Swift
public struct Center : Encodable
-
Undocumented
Declaration
Swift
public var center: Center?
-
Sets the zoom level of the map (mapbox.zoom).
Declaration
Swift
public var zoom: Double?
-
Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing).
Declaration
Swift
public var bearing: Double?
-
Sets the pitch angle of the map (in degrees, where 0 means perpendicular to the surface of the map) (mapbox.pitch).
Declaration
Swift
public var pitch: Double?
-
Undocumented
See moreDeclaration
Swift
public struct Layer : Encodable
-
Undocumented
Declaration
Swift
public var layers: [Layer]?
-
Shared and preset default axis reference used to initialize layout and all traces.
Declaration
Swift
public static let preset: Mapbox
-
Creates
Mapbox
object with specified properties.Declaration
Parameters
uid
Unique identifier of the axis.
domain
accessToken
Sets the mapbox access token to be used for this mapbox map.
style
Defines the map layers that are rendered by default below the trace layers defined in
data
, which are themselves by default rendered below the layers defined inlayout.mapbox.layers
.center
zoom
Sets the zoom level of the map (mapbox.zoom).
bearing
Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing).
pitch
Sets the pitch angle of the map (in degrees, where 0 means perpendicular to the surface of the map) (mapbox.pitch).
layers
uiRevision