Exploring Options and Troubleshooting Issues with Embedding Mapbox in a WeWeb Application
The State Changers discussed embedding content into an application, notably Mapbox. Specific bottlenecks encountered include issues with accessing underlying data and the constraints of using iframe. The conversation explored the possibility of using the Mapbox plug-in within WeWeb and configuring it via properties like the access token and style. There was difficulty in mapping this correctly.
Different approaches to the problem were discussed. One suggestion was to take the HTML code from the Mapbox map and embed it as an HTML element. It was further proposed to use a new NPM integration feature in WeWeb, which helps create a script tag that points to an NPM package.
The participants discussed potential drawbacks like working in the editor with custom code, which could bring up difficulties in visualizing the end product. A factor that could ease this issue is using the NPM integration with Mapbox GL, which would make it easier to load and create custom controls earlier in the lifecycle of the application.