You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If multiple people in your organization may want to use Mapboard to make mapping apps, they will probably want to use many of the same aspects of a map, or same datasets. Creating a base configuration file which multiple apps can link to removes the need to define basemaps, data sources, and other frequently-used options in every application.
var BASE_CONFIG_URL = 'https://cdn.jsdelivr.net/gh/cityofphiladelphia/mapboard-default-base-config@d3ad38f050cf55b4ab0dc2ff68e6f18025690246/config.js';
Instead of containing a simple js object, a base configuration must contain an immediately-invoked function expression (IIFE) which contains a js object. This allows us to pass values from the config to the baseconfig, as "opts."