Skip to content
Clever Booster logoCleverBooster

CBmap Store Locator

Articles

Create a Mapbox token and restrict it to your domains

Create a Mapbox access token for your store locator and limit it to your store's domains so no one else can use it.

Updated · 2 min read

On this page
  1. 1. Create a Mapbox token
  2. 2. Restrict it to your domains
  3. 3. Add the token to CBmap

CBmap Store Locator can draw your map with Mapbox instead of Google Maps. To do that it needs a Mapbox access token. Restrict the token to your own domains so no one else can use it on your account.

1. Create a Mapbox token

  1. Sign in to your Mapbox account (opens in a new tab), or create one (opens in a new tab).
  2. Open the Access tokens (opens in a new tab) page and click Create a token.
    Mapbox Access tokens page with the Create a token button highlighted
  3. Give the token a name, for example "Store locator". The default public scopes are enough for CBmap.

2. Restrict it to your domains

  1. On the same page, under Token restrictions → URLs, add each address where the map should work: your store's domain, plus these two:
    https://admin.shopify.com/
    https://cleverbooster.com/
    Mapbox token restrictions with the store domain, admin.shopify.com and cleverbooster.com in the URL field
  2. Click Add URL after each one, then Create token.

3. Add the token to CBmap

  1. In CBmap Store Locator, open Settings → Map keys.
  2. Paste the token into the Mapbox field and click Save.
    CBmap Map keys settings with the Mapbox token field highlighted

Your store locator now loads its map from Mapbox.