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