Using mapbox API within custom widget.

I see that internally Palantir apps use mapbox API calls. I wanted to make a custom widget using map information is there a way to use mapbox within the widget?

Currently if I try and use it there is out because it’s making external calls.