Interprets a json config.
the json config input.
const interpreter = ...;
const result = interpreter.interpret({map: {basemap: "streets"}});
// create widget and model classes
const {mapWidget, mapWidgetModel, map, basemapsModel} = await result.toMapWidget();
// alternative is to only create the model classes
const {mapWidgetModel, map, basemapsModel} = await result.toMapWidgetModel();
Interprets the map configuration.
Use
"map-init.Interpreter"
to inject a reference to this interface.