Component Initialization Parameter - Spectrum_Spatial_Analyst - Latest

Spectrum Spatial Analyst Extensibility Guide

Product type
Software
Portfolio
Locate
Product family
Spectrum™ software
Product
Spectrum™ software > Spatial > Spectrum Spatial Analyst
Version
Latest
ft:locale
en-US
Product name
Spectrum Spatial Analyst
ft:title
Spectrum Spatial Analyst Extensibility Guide
Copyright
2025
First publish date
2007
ft:lastEdition
2025-10-28
ft:lastPublication
2025-10-28T15:15:05.535000
L1_Product_Gateway
L2_Product_Segment
L3_Product_Brand
L4_Investment_Segment
L5_Product_Group
L6_Product_Name
The Spectrum Spatial Analyst extensibility platform envisages cases where more than one instance of newly created angular 11 third-party components need to be on-boarded. There can be cases where multiple instances of the new component may need to share the same set of information. For example, a developer may create a new component that shows Google Street View that is shown in multiple instances and needs to share the API key for Google between them. The Spectrum Spatial Analyst extensibility platform supports parameter sharing using the init parameters among multiple component instances. To get access to the init parameter, the developer needs to:
  1. Declare an input field called data in its component.
  2. Add an entry corresponding to the component in CustomAnalystModuleConfig.json. For example:
    
    		"modules": [{
    		"name": "GIQueryModule",
    		Spectrum Spatial Analyst Extensibility Guide v.2019.1 26
    		"description": "Module For GI query",
    		"modulePath": "../../../extensions/dynamic.module.ts#DynamicModule",
    		"components":[{componentName:"TestComponent","parentComponentName": "SettingsPanel",
    		"initParameters": {
    		"apiKey": “abcdef”
    		}
    		}}]
    		}]				
  3. Once this is declared in CustomAnalystModuldeConfig.json one can access the key like data.initParameters.apiKey in the component instance.

The init parameter supports the data types that JavaScript supports. It does not put restrictions on the size of the parameters supplied.