-
-
Notifications
You must be signed in to change notification settings - Fork 275
Open
Description
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:
- add any FeatureLayer(s) as operational layers and set infoTemplates on them
- set
defaultMapClickMode: ''in config to remove the default 'identify' mapClickMode (i.e. left-clicking the map will NOT execute identify) - left click a feature layer feature to open the infoTemplate (this is default functionality for featurelayers)
- publish the mapClickMode topic from another widget
topic.publish('mapClickMode/setCurrent', 'draw') - reset the mapClickMode to default
topic.publish('mapClickMode/setDefault') - 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
Labels
No labels