The extension model
Error if a parameter is not correct
JMap.Application.Extension.register({
id: "MyExtension", // Unique id
initFn: () => {
// here you can start your UI component if needed
console.log("JMap Server NG is started and my extension has been successfuly started")
},
onPanelCreation: panelContainerId => {
console.info("Create your component here")
},
onPanelDestroy: panelContainerId => {
console.info("Destroy your component here")
},
onRegistrationDone: () => {
console.info("My extension has been successfully registered")
}
})
JMap.Application.Extension.register
Registers your own JMap Server NG extension.