# StipplePlotly.PlotLayout using USGS layer

**URL:** <https://discourse.julialang.org/t/stippleplotly-plotlayout-using-usgs-layer/96523>\
**Category:** General Usage\
**Tags:** question, plotting, stipple, plotjs, stippleplotly\
**Created:** [March 23, 2023, 5:37pm UTC](https://discourse.julialang.org/t/stippleplotly-plotlayout-using-usgs-layer/96523 "2023-03-23T17:37:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/monty/32/44234_2.png) [@monty](https://discourse.julialang.org/u/monty)\
**Post date:** [March 23, 2023, 5:37pm UTC](https://discourse.julialang.org/t/stippleplotly-plotlayout-using-usgs-layer/96523/1 "2023-03-23T17:37:04Z")

</div>

How to use USGS layer in StipplePlotly.PlotLayout?

according to Plotly.js website you can load USGS terrain in Plotly:

```julia
import pandas as pd
us_cities = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/us-cities-top-1k.csv")

import plotly.express as px

fig = px.scatter_mapbox(us_cities, lat="lat", lon="lon", hover_name="City", hover_data=["State", "Population"],
                        color_discrete_sequence=["fuchsia"], zoom=3, height=300)
fig.update_layout(
    mapbox_style="white-bg",
    mapbox_layers=[
        {
            "below": 'traces',
            "sourcetype": "raster",
            "sourceattribution": "United States Geological Survey",
            "source": [
                "https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}"
            ]
        }
      ])
fig.update_layout(margin={"r":0,"t":0,"l":0,"b":0})
fig.show()

```

However, I do not see how I can do this using StipplePlotly.PlotLayout.

I tried this, but it did not work:

```julia
StipplePlotly.PlotLayout(mapbox_layers_source="https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x}", mapbox_layers_sourcetype="raster")

```

Suggestions?
