@aws-amplify/cli-internal
Version:
Amplify CLI
25 lines • 1.05 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GeoMapGenerator = void 0;
const geo_resource_generator_1 = require("./geo-resource.generator");
class GeoMapGenerator extends geo_resource_generator_1.GeoResourceGenerator {
constructor(gen1App, outputDir, resource, geoGenerator, logger) {
super(gen1App, outputDir, resource, geoGenerator, logger);
}
addResource(base, parameters) {
var _a, _b;
const props = {
...base,
needsAuthAndUnauthRoles: true,
serviceName: 'Map',
serviceSpecificProps: [
{ key: 'mapName', value: (_a = parameters.get('mapName')) !== null && _a !== void 0 ? _a : this.resource.resourceName },
{ key: 'mapStyle', value: (_b = parameters.get('mapStyle')) !== null && _b !== void 0 ? _b : '' },
],
};
this.geoGenerator.addMap(props);
return props;
}
}
exports.GeoMapGenerator = GeoMapGenerator;
//# sourceMappingURL=map.generator.js.map