Use mapbox to place images with PlotlyJS

Say you’ve downloaded the file instead as

## Alternative to 4:
using JSON, Downloads
url= "https://gist.githubusercontent.com/hrbrmstr/94bdd47705d05a50f9cf/raw/0ccc6b926e1aa64448e239ac024f04e518d63954/asia.geojson"
filename = "asia.geojson"
Downloads.download(url, filename)
jsondata = JSON.parsefile(filename)

then instead of
q = Plot(choroplethmapbox(geojson = url,
do
q = Plot(choroplethmapbox(geojson = attr(type=jsondata["type"], features=jsondata["features"]),

1 Like