TypeError: invalid Figure property: marker marker Bad property path: marker

I’m using this example Scatter plots on maps in Python (North America Precipitation), and attempting to use marker = dict, but I get the following error:

Traceback (most recent call last):
  File "C:/Users/-/AppData/Local/JetBrains/PyCharm Community Edition 2022.3.1/plugins/python-ce/helpers/pydev/pydevd.py", line 1496, in _exec
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "C:\Users\-\AppData\Local\JetBrains\PyCharm Community Edition 2022.3.1\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "C:\Users\-\Downloads\-.py", line 77, in <module>
    geoplot()
  File "C:\Users\-\Downloads\-.py", line 36, in geoplot
    fig = go.Figure(data=go.Scattergeo(
  File "C:\Users\-\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\plotly\graph_objs\_figure.py", line 629, in __init__
    super(Figure, self).__init__(data, layout, frames, skip_invalid, **kwargs)
  File "C:\Users\-\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\plotly\basedatatypes.py", line 647, in __init__
    raise type_err
TypeError: invalid Figure property: marker
marker
Bad property path:
marker
^^^^^^
python-BaseException
Backend TkAgg is interactive backend. Turning interactive mode on.

Here’s my code

def geoplot(num=0):
    fig = go.Figure(data=go.Scattergeo(
        lon=b2data['longitude'],
        lat=b2data['latitude']),
        marker = dict(color=r2data['NUMS'],
        colorscale="Reds",
        reversescale=True,
        opacity=0.7,
        size=2,
        colorbar=dict(
            titleside="right",
            outlinecolor="rgba(68, 68, 68, 0)",
            ticks="outside",
            showticksuffix="last",
            dtick=0.1)
    ))
    fig.add_trace(go.Scattergeo(
        lon=r2data['longitude'],
        lat=r2data['latitude']))

    fig.update_layout(
        geo = dict(showland = True,
            landcolor = "rgb(247, 247, 247)",
            subunitcolor = "rgb(255, 255, 255)",
            countrycolor = "rgb(255, 255, 255)",
            showlakes = True,
            showocean = True,
            oceancolor = "rgb(184, 205, 219)",
            lakecolor = "rgb(255, 255, 255)",
            showsubunits = True,
            showcountries = True,
            resolution = 50,
            projection = dict(
                type = 'equirectangular'
            ),
            lonaxis = dict(range= [-7.5, 35]),
            lataxis = dict (range= [20, 64])
        ),
        title='US Precipitation 06-30-2015<br>Source: <a href="http://water.weather.gov/precip/">NOAA</a>',
    )
    fig.show()

geoplot()

Here’s the relevant documentation that shows “marker”: plotly.graph_objects.Scattergeo — 5.11.0 documentation

I’m using plotly 5.12 and tried 5.11