docstr: Construct a new Mapbox object
  
  Parameters
  ----------
  arg
      dict of properties compatible with this constructor or
      an instance of :class:`plotly.graph_objs.layout.Mapbox`
  accesstoken
      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 when `style`
      (e.g with values : basic, streets, outdoors, light,
      dark, satellite, satellite-streets ) and/or a layout
      layer references the Mapbox server.
  bearing
      Sets the bearing angle of the map in degrees counter-
      clockwise from North (mapbox.bearing).
  center
      :class:`plotly.graph_objects.layout.mapbox.Center`
      instance or dict with compatible properties
  domain
      :class:`plotly.graph_objects.layout.mapbox.Domain`
      instance or dict with compatible properties
  layers
      A tuple of
      :class:`plotly.graph_objects.layout.mapbox.Layer`
      instances or dicts with compatible properties
  layerdefaults
      When used in a template (as
      layout.template.layout.mapbox.layerdefaults), sets the
      default property values to use for elements of
      layout.mapbox.layers
  pitch
      Sets the pitch angle of the map (in degrees, where 0
      means perpendicular to the surface of the map)
      (mapbox.pitch).
  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
      in `layout.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 the
      `mapboxAccessToken` 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-<name>-<version>
  uirevision
      Controls persistence of user-driven changes in the
      view: `center`, `zoom`, `bearing`, `pitch`. Defaults to
      `layout.uirevision`.
  zoom
      Sets the zoom level of the map (mapbox.zoom).
  
  Returns
  -------
  Mapbox
docstr_tok: ["Construct","a","new","Mapbox","object","Parameters","--","--","--","--","--","arg","dict","of","properties","compatible","with","this","constructor","or","an","instance","of",":","class",":","`","plotly.graph_objs.layout.Mapbox","`","accesstoken","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","when","`","style","`","(","e.g","with","values",":","basic",",","streets",",","outdoors",",","light",",","dark",",","satellite",",","satellite-streets",")","and\/or","a","layout","layer","references","the","Mapbox","server",".","bearing","Sets","the","bearing","angle","of","the","map","in","degrees","counter-","clockwise","from","North","(","mapbox.bearing",")",".","center",":","class",":","`","plotly.graph_objects.layout.mapbox.Center","`","instance","or","dict","with","compatible","properties","domain",":","class",":","`","plotly.graph_objects.layout.mapbox.Domain","`","instance","or","dict","with","compatible","properties","layers","A","tuple","of",":","class",":","`","plotly.graph_objects.layout.mapbox.Layer","`","instances","or","dicts","with","compatible","properties","layerdefaults","When","used","in","a","template","(","as","layout.template.layout.mapbox.layerdefaults",")",",","sets","the","default","property","values","to","use","for","elements","of","layout.mapbox.layers","pitch","Sets","the","pitch","angle","of","the","map","(","in","degrees",",","where","0","means","perpendicular","to","the","surface","of","the","map",")","(","mapbox.pitch",")",".","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","in","`","layout.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","the","`","mapboxAccessToken","`","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-","<","name",">","-","<","version",">","uirevision","Controls","persistence","of","user-driven","changes","in","the","view",":","`","center","`",",","`","zoom","`",",","`","bearing","`",",","`","pitch","`",".","Defaults","to","`","layout.uirevision","`",".","zoom","Sets","the","zoom","level","of","the","map","(","mapbox.zoom",")",".","Returns","--","--","--","-","Mapbox"]
code: def __init__(
      self,
      arg=None,
      accesstoken=None,
      bearing=None,
      center=None,
      domain=None,
      layers=None,
      layerdefaults=None,
      pitch=None,
      style=None,
      uirevision=None,
      zoom=None,
      **kwargs,
  ):
      """
      Construct a new Mapbox object
  
      Parameters
      ----------
      arg
          dict of properties compatible with this constructor or
          an instance of :class:`plotly.graph_objs.layout.Mapbox`
      accesstoken
          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 when `style`
          (e.g with values : basic, streets, outdoors, light,
          dark, satellite, satellite-streets ) and/or a layout
          layer references the Mapbox server.
      bearing
          Sets the bearing angle of the map in degrees counter-
          clockwise from North (mapbox.bearing).
      center
          :class:`plotly.graph_objects.layout.mapbox.Center`
          instance or dict with compatible properties
      domain
          :class:`plotly.graph_objects.layout.mapbox.Domain`
          instance or dict with compatible properties
      layers
          A tuple of
          :class:`plotly.graph_objects.layout.mapbox.Layer`
          instances or dicts with compatible properties
      layerdefaults
          When used in a template (as
          layout.template.layout.mapbox.layerdefaults), sets the
          default property values to use for elements of
          layout.mapbox.layers
      pitch
          Sets the pitch angle of the map (in degrees, where 0
          means perpendicular to the surface of the map)
          (mapbox.pitch).
      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
          in `layout.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 the
          `mapboxAccessToken` 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-<name>-<version>
      uirevision
          Controls persistence of user-driven changes in the
          view: `center`, `zoom`, `bearing`, `pitch`. Defaults to
          `layout.uirevision`.
      zoom
          Sets the zoom level of the map (mapbox.zoom).
  
      Returns
      -------
      Mapbox
      """
      super(Mapbox, self).__init__("mapbox")
  
      if "_parent" in kwargs:
          self._parent = kwargs["_parent"]
          return
  
      # Validate arg
      # ------------
      if arg is None:
          arg = {}
      elif isinstance(arg, self.__class__):
          arg = arg.to_plotly_json()
      elif isinstance(arg, dict):
          arg = _copy.copy(arg)
      else:
          raise ValueError(
              """\
  The first argument to the plotly.graph_objs.layout.Mapbox 
  constructor must be a dict or 
  an instance of :class:`plotly.graph_objs.layout.Mapbox`"""
          )
  
      # Handle skip_invalid
      # -------------------
      self._skip_invalid = kwargs.pop("skip_invalid", False)
      self._validate = kwargs.pop("_validate", True)
  
      # Populate data dict with properties
      # ----------------------------------
      _v = arg.pop("accesstoken", None)
      _v = accesstoken if accesstoken is not None else _v
      if _v is not None:
          self["accesstoken"] = _v
      _v = arg.pop("bearing", None)
      _v = bearing if bearing is not None else _v
      if _v is not None:
          self["bearing"] = _v
      _v = arg.pop("center", None)
      _v = center if center is not None else _v
      if _v is not None:
          self["center"] = _v
      _v = arg.pop("domain", None)
      _v = domain if domain is not None else _v
      if _v is not None:
          self["domain"] = _v
      _v = arg.pop("layers", None)
      _v = layers if layers is not None else _v
      if _v is not None:
          self["layers"] = _v
      _v = arg.pop("layerdefaults", None)
      _v = layerdefaults if layerdefaults is not None else _v
      if _v is not None:
          self["layerdefaults"] = _v
      _v = arg.pop("pitch", None)
      _v = pitch if pitch is not None else _v
      if _v is not None:
          self["pitch"] = _v
      _v = arg.pop("style", None)
      _v = style if style is not None else _v
      if _v is not None:
          self["style"] = _v
      _v = arg.pop("uirevision", None)
      _v = uirevision if uirevision is not None else _v
      if _v is not None:
          self["uirevision"] = _v
      _v = arg.pop("zoom", None)
      _v = zoom if zoom is not None else _v
      if _v is not None:
          self["zoom"] = _v
  
      # Process unknown kwargs
      # ----------------------
      self._process_kwargs(**dict(arg, **kwargs))
  
      # Reset skip_invalid
      # ------------------
      self._skip_invalid = False
  
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 22 to create a new Mapbox object from inherited base classes: _BaseLayoutHierarchyType with example: obj = Mapbox(arg, accesstoken, bearing, center, domain, layers, layerdefaults, pitch, style, uirevision, zoom)