diff --git a/web/client/examples/api/init.js b/web/client/examples/api/init.js index 35d9b66631..030ef8708f 100644 --- a/web/client/examples/api/init.js +++ b/web/client/examples/api/init.js @@ -38,8 +38,10 @@ function init() { defaultState: cfg.state } || null, style: cfg && cfg.customStyle, - theme: { - theme, + theme: theme ? { + theme: theme, + path: '../../dist/themes' + } : { path: '../../dist/themes' } }); diff --git a/web/client/jsapi/MapStore2.js b/web/client/jsapi/MapStore2.js index ebf164e160..feff2262c3 100644 --- a/web/client/jsapi/MapStore2.js +++ b/web/client/jsapi/MapStore2.js @@ -304,7 +304,6 @@ const MapStore2 = { ThemeUtils.renderFromLess(options.style, 'custom_theme', 'themes/default/'); } const defaultThemeCfg = { - theme: 'default', prefixContainer: '#' + container };