API / geotoolkit / schematics / factory / DefaultMap / DefaultMap
factory.DefaultMap.DefaultMap
Default componentName-to-componentFactory mapping
Constructors
- [new DefaultMap()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.schematics.factory.defaultmap.defaultmap.md#new defaultmap())
Methods
▸ getClassName(): string
string
▸ Static getClassName(): string
string
▸ Static getElements(): { factory: AbstractComponentNodeFactory | (data?: Element) => ComponentNode ; name: string }[]
Gets array of componentName-to-componentFactory pairs
Example
// To retrieve a list of all components supported in SchematicsJS use the following call
import {DefaultMap} from '@int/geotoolkit/schematics/factory/DefaultMap';
const elements = DefaultMap.getElements();{ factory: AbstractComponentNodeFactory | (data?: Element) => ComponentNode ; name: string }[]