I would like to build an AddIn that, once installed extents the context menu of MapViews. Meaning whenever the user is creating a MapView and does subsequently a right click on the map then there should be an item in it that does something when clicked on.
Is that possible, and if so do the community samples contain an example for it? I could not find one concerning the MapView/ Map.
take a look at this sample
The config.daml file illustrates how to update an existing context menu. Look at the <updateModule> section
You will need to find the correct daml-ID for the menu you are interested in modifying.
thanks for the link. The particular example I found, and I also went through the DAML Ids, looking for something like mapview or mapviewcomponent but ‘nada’. Hence my question if it is possible and the mapview maybe not accessible. I might also be wrong and the mapview is not the component the context menu belongs to.
Try esri_mapping_selection2DContextMenu & esri_mapping_selection3DContextMenu for 2D & 3D map views respectively... see...
for example DAML changes (search for this menu)
your references certainly helped. However, this requires that there is an object that is selected. Is there a refId to add to the context menu that you get when using the 'explore tool'?
Edit: I found it! It's the 'esri_mapping_popupToolContextMenu'