Select to view content in your preferred language

Extracting data from public Mapbox map

195
3
a month ago
CelesteWalz
Regular Contributor

I am an ArcPro home-use user. I have recently returned from an expedition cruise in Alaska, and they provided an interactive travel map accessed via webpage, that was made in Mapbox. I am not familiar with this product at all.

I would like to extract the route and stops from the webpage. 

Is there a way to do this?

Thanks.

Tags (3)
0 Kudos
3 Replies
SteveCole
Honored Contributor

Someone who is savvy and versed in the Mapbox API could probably extract the layer of your trip from the web map as a JSON or GeoJSON format object and then you could use Pro's JSON to Feature Tool to import it. That person is not me but that's how I would approach it (and have for ESRI powered web maps).

CelesteWalz
Regular Contributor

That person is not me, either. Do you know of good resources? I'll dig around on the Mapbox webpage, but I don't want to pay for an account.

In Chrome I can open dev tools and see the network calls, but that is about as far as I can get. There is some kind of token (?) I guess that pulls the data from MapBox?

0 Kudos
SteveCole
Honored Contributor

Again, one would have to refer to the API documentation but, using the ESRI JS API as an example, when an ESRI app loads, the API loads with it so using the console in the Developer Tools, you're then able to use the API references and functions on the loaded map and layers. This gets harder if the web map is loaded inside of UI wrapper (WebApp Builder, Instant App, etc) but I think is still doable.

Ultimately, it may just be easiest to have that Mapbox app open on one monitor and Google Earth open on a second monitor and eyeball sketch what you see as KML features inside Google Earth.

I'm not saying this is doable within Mapbox's API but it *could* be. Another potential option might be a browser extension such as Geo Hound (or anything along those lines). I don't know if it would allow you to extract the data but something worth checking.