@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
39 lines (38 loc) • 2.07 kB
JavaScript
;
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createStyles = void 0;
var mapThemeStyle_1 = require("./mapThemeStyle");
var constant_1 = require("./mapThemeStyle/constant");
var createStylesLight = function (queryPath, _a) {
var worldView = _a.worldView, tilePath = _a.tilePath;
return mapThemeStyle_1.getLightStyle(queryPath, { worldView: worldView, tilePath: tilePath });
};
var createStylesDark = function (queryPath, _a) {
var worldView = _a.worldView, tilePath = _a.tilePath;
return mapThemeStyle_1.getDarkStyle(queryPath, { worldView: worldView, tilePath: tilePath });
};
var createStylesEleganceGreen = function (queryPath, _a) {
var worldView = _a.worldView, tilePath = _a.tilePath;
return mapThemeStyle_1.getEleganceGreenStyle(queryPath, { worldView: worldView, tilePath: tilePath });
};
var createStylesStreets = function (queryPath, _a) {
var worldView = _a.worldView, tilePath = _a.tilePath;
return mapThemeStyle_1.getStreetsStyle(queryPath, { worldView: worldView, tilePath: tilePath });
};
var createStylesOutdoors = function (queryPath, _a) {
var worldView = _a.worldView, tilePath = _a.tilePath;
return mapThemeStyle_1.getOutdoorsStyle(queryPath, { worldView: worldView, tilePath: tilePath });
};
var createStylesMap = (_a = {},
_a[constant_1.MapboxThemeTypes.Light] = createStylesLight,
_a[constant_1.MapboxThemeTypes.Dark] = createStylesDark,
_a[constant_1.MapboxThemeTypes.EleganceGreen] = createStylesEleganceGreen,
_a[constant_1.MapboxThemeTypes.Outdoors] = createStylesOutdoors,
_a[constant_1.MapboxThemeTypes.Streets] = createStylesStreets,
_a);
var createStyles = function (queryPath, _a) {
var _b = _a.worldView, worldView = _b === void 0 ? constant_1.WORLD_VIEW.CN : _b, _c = _a.mapThemeType, mapThemeType = _c === void 0 ? constant_1.MapboxThemeTypes.Light : _c, tilePath = _a.tilePath;
return createStylesMap[mapThemeType](queryPath, { worldView: worldView, tilePath: tilePath });
};
exports.createStyles = createStyles;