Mapbox GL JS Integration

Hi

Im trying to follow the mapbox quickstart guide here Installation | Mapbox GL JS | Mapbox

it requires script adding to the header (which I have done):

IT THEN REQUIRES JAVASCRIPT ADDING TO THE PAGE TO DISPLAY THE MAP. SEE THE LINK FOR DETAILS OF THE SAMPLE CODE. I USED MY PERSONAL AUTHORISATION KEY SO THIS IS NOT THE PROBLEM

I THIN K THIS IS WHERE IS GOES WRONG. I USED THE LOADERR PLUGIN BUT THE MAP DOESNT SHOW UP.

CAN ANYONE HELP?

Are you using a plugin or just adding the code to your Bubble script in header section in Settings and then adding elements to the page?

Make sure you add an HTML element to the page and add this:
<div id='map' style='width: 400px; height: 300px;'></div>

Hi,

Why would you write the entire map code when there are several plugins for this purpose?

I am more concerned with the JSON JWT API integration which i am having problems connecting to. But the map itself and several other features are supported by the plugins in the library.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.