Skip to content

Removing infoTemplate on setMapClickMode #902

@apatriz

Description

@apatriz

How often can you reproduce it?

  • [x ] Always
  • Sometimes
  • Rarely
  • Unable
  • I didn’t try

Description:
When there is no defaultMapClickMode for the app and setting mapClickMode to anything other than 'identify', the Identify widget will remove the infoTemplate property from all graphicsLayers in the setMapClickMode method. This creates side-effects in widgets that may use the infoTemplate property.

Steps to reproduce:

  1. add any FeatureLayer(s) as operational layers and set infoTemplates on them
  2. set defaultMapClickMode: '' in config to remove the default 'identify' mapClickMode (i.e. left-clicking the map will NOT execute identify)
  3. left click a feature layer feature to open the infoTemplate (this is default functionality for featurelayers)
  4. publish the mapClickMode topic from another widget topic.publish('mapClickMode/setCurrent', 'draw')
  5. reset the mapClickMode to default topic.publish('mapClickMode/setDefault')
  6. left click a feature in a feature layer and no infoTemplate will be shown

Expected results:

InfoTemplates that are set on Feature Layers should always be available and not removed

Actual results:
All infoTemplates are removed from all FeatureLayers on the map

Environment:

Software Version
CMV Version v 2.0.0 beta.2
Browser Chrome (latest)
Operating system Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions