Using Mapbox's flyTo function in plotly.js

I am currently using plotly.js and scattermapbox to create a map.

I’m interested in using Mapbox’s flyTo function:

Let’s assume my map is the Meteorite Landing Location example:

When I add the Event Listener specified in the Mapbox flyTo page, what is the variable name I should replace “map” with?

In other words, when adding the below code,

document.getElementById('fly').addEventListener('click', function () {

// Fly to a random location by offsetting the point -74.50, 40

// by up to 5 degrees.



What should I replace “map” with?

You try using

var gd = document.getElementById(/* id of your graph */) /* */)