Specifying Map Configuration that Shows Components - Spectrum_Spatial_Analyst - 23.1

Spectrum Spatial Analyst Extensibility Guide

Product type
Software
Portfolio
Locate
Product family
Spectrum
Product
Spectrum > Spatial > Spectrum Spatial Analyst
Version
23.1
Language
English
Product name
Spectrum Spatial Analyst
Title
Spectrum Spatial Analyst Extensibility Guide
Topic type
Reference
Overview
Tips
How Do I
Configuration
First publish date
2007

The Spectrum Spatial Analyst Extensibility Platform supports the conditional rendering of newly added components based on the map project being used at that time. Consider a scenario that a component developer creates a component that should be available to only users when they browse to a specific map configuration. To achieve this, a user will create an entry in the CustomAnalystModuleConfig.json file and register a component for the specific map project(s). If there is more than one third-party component to be shown for a given map configuration, they can all be added as an array corresponding to the map project. Please note that the component name mentioned in the components tag should be the name of an Angular component class that is created.

Map projects associated to a third-party component should be present in allowlisting:

  • If you mention a component for a map project, then that component is visible only to that map project and not others.
  • To make a component available to more than one map projects but not for all of them, then allowlist the component in all map projects.
  • To make a component available in all map projects, do not provide any entry in the mapconfigAssociated tag. For example:
"mapConfigAssociated":[{
	"mapConfigName":"defaultmap",
	"components":["TestComponent"]
	}]