If you use CDN example, you need to put three params into the code. Please ask us about them.
const token = '';
mapboxgl.accessToken = token;
const map = new mapboxgl.Map({
container: 'app',
style: 'mapbox://styles/mapbox/streets-v11',
center: [139.7746987, 35.6272648],
zoom: 13
});
const promoted = new PromotedCore.Promoted(map, token, {
baseUrl: '',
logUrl: '',
debug: true,
});
Create original .env from .env.sample that is created sample one.
npm run install
npm run build
Open dist/index.html at your browser.
npm run install
npm run start
Open http://localhost:8080 with your browser to see the result.