Skip to content

mapbox-jp/mapbox-promoted-js-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

CDN

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,
});

NPM

Create original .env from .env.sample that is created sample one.

Build App

npm run install
npm run build

Open dist/index.html at your browser.

Run at your local

npm run install
npm run start

Open http://localhost:8080 with your browser to see the result.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published