Most third-party components are likely to need to interact with the Openlayers library that is available out of the box with Spectrum Spatial Analyst. This may be to capture user interaction (such as map clicks, drawing, or feature selection) or to add layers and features to the map or to move/zoom the map. While it is entirely feasible to reference the map object and to interface directly with Openlayers, in most circumstances. We recommend doing this via store actions. The use of store actions ensures that the state is consistently maintained between the map and the legend panel, where actions on one affect the other.