Select to view content in your preferred language

Identify Tool in arcgis viewer for silverlight

4489
8
02-19-2012 11:36 PM
DeepikaJain
Occasional Contributor
I want to add identify tool in arcgis viewer for silverlight. I did not find it in the template.
Any suggestions would be very helpful.

Thanks
Deepika
0 Kudos
8 Replies
DerekLaw
Esri Esteemed Contributor
Hi Deepika,

Identify functionality/behavior is available when configuring pop-ups for layers, you can enable pop-ups to appear "on-click" for features.

Configuring layers: Pop-Ups - ArcGIS Viewer for Silverlight help doc

Hope this helps,
0 Kudos
IanPeebles
Frequent Contributor
I have the pop-up working, but is it possible to use this for related objects?
0 Kudos
DerekLaw
Esri Esteemed Contributor
Hi Ian,

I have the pop-up working, but is it possible to use this for related objects?


Please checkout this developer add-in: Query Related Records Tool

Hope this helps,
0 Kudos
EzequiasRodrigues_da_Rocha
Regular Contributor
Hi Ian,



Please checkout this developer add-in: Query Related Records Tool

Hope this helps,


There isn't a way to avoid this extension repositioning if you click in a feature that are too much on the top of the map?

This is the problem of this balloon.

I hope you already have a solution to this kind of problem. The mouse hover effect does not behave like this.

Sincerely
Ezequias
0 Kudos
KatherineDalton
Esri Regular Contributor
Hi Ezequias,

I think you posted a similar question already, but the basic answer is that what you are seeing is the default behavior of the on-click pop-up. To implement a different behavior for the pop-up, you would need to completely replace the out-of-the-box on-click pop-up with your own custom logic. You would then be responsible for managing all the behavior of the pop-up. You could use GraphicsLayer.MapTip, InfoWindow, or any other means. Unfortunately, I don't have a sample for the ArcGIS Viewer for Silverlight at this time, but you could look at some of the samples in the ArcGIS API for Silverlight (just for ideas) such as InfoWindow and MapTips.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
JamalNUMAN
Legendary Contributor
Hi Ezequias,

I think you posted a similar question already, but the basic answer is that what you are seeing is the default behavior of the on-click pop-up. To implement a different behavior for the pop-up, you would need to completely replace the out-of-the-box on-click pop-up with your own custom logic. You would then be responsible for managing all the behavior of the pop-up. You could use GraphicsLayer.MapTip, InfoWindow, or any other means. Unfortunately, I don't have a sample for the ArcGIS Viewer for Silverlight at this time, but you could look at some of the samples in the ArcGIS API for Silverlight (just for ideas) such as InfoWindow and MapTips.

Katy


Hi Katherine and Derek,

We are frequently advised to migrate from the ADF web application builder to Silverlight and Flex (viewers). As a matter of fact, Silverlight and Flex are still missing many of the very basic tools and we (as non-developers) are struggling to get them available.

In return, the ADF web application has all of them and thus it is a good alternative for the non-developers to build a web application in few minutes!


I hope to find an identify tool (for Silverlight) that works the same way as ArcGIS desktop

[ATTACH=CONFIG]24700[/ATTACH]


Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos
IanPeebles
Frequent Contributor
Hi Deepika,

Identify functionality/behavior is available when configuring pop-ups for layers, you can enable pop-ups to appear "on-click" for features.

Configuring layers: Pop-Ups - ArcGIS Viewer for Silverlight help doc

Hope this helps,


Are there any plans for ESRI to develop an identify tool that can handle related objects?  When I say related objects, the tool needs to handle several levels of related objects rather than one.  I really do not know why this has not been considered.

The problem with the pop up is with the mouse click.  Other tools use the left mouse click, for instance if you perform a pan, sometimes when you go to pan, the pop up appears when you do not want it to.

There really needs to be an identify manager. . meaning when you click on the icon from the toolbar, a manager comes up and allows you to choose the layer you want to identify.  With the pop-up, they are all enabled depending on what was configured.  In our case, we have over 80 layers configured with the pop-up.  Our users need to be able to see attributes for these features.  End users within my organization are not really happy with the pop up.

Also, I have created a redline tool set that includes editing the graphic.  Editing the graphic requires a left mouse click to select the graphic for editing.  Guess what?. . .when the graphic becomes selected for editing using the left mouse click the pop up will appear unless you are exactly on the right spot of the graphic.  It is a hit and miss.  In other words, there is competition between the pop-up and selecting redline graphics with the left mouse click.  To work around this, I have had to make the graphic editing a right click, then they can go back to the left mouse click to edit the graphic.

I have asked the question before if there are plans for ESRI to develop an identify tool or a manager similar to what was available in the web ADF, but nobody has given me an answer.  Just know, that there is limited configuration with the pop-up and that is frustrating as a developer. 

The thing I do not like is that the pop up is on at all time, meaning that if you have several layers with the pop-up configured, you can be at full extent do a left mouse click on the map and a pop up appears.  This is an annoying behavior.  I would love to give a demo to ESRI to show the behavior I am describing.
0 Kudos
JamalNUMAN
Legendary Contributor
Are there any plans for ESRI to develop an identify tool that can handle related objects?  When I say related objects, the tool needs to handle several levels of related objects rather than one.  I really do not know why this has not been considered.

The problem with the pop up is with the mouse click.  Other tools use the left mouse click, for instance if you perform a pan, sometimes when you go to pan, the pop up appears when you do not want it to.

There really needs to be an identify manager. . meaning when you click on the icon from the toolbar, a manager comes up and allows you to choose the layer you want to identify.  With the pop-up, they are all enabled depending on what was configured.  In our case, we have over 80 layers configured with the pop-up.  Our users need to be able to see attributes for these features.  End users within my organization are not really happy with the pop up.

Also, I have created a redline tool set that includes editing the graphic.  Editing the graphic requires a left mouse click to select the graphic for editing.  Guess what?. . .when the graphic becomes selected for editing using the left mouse click the pop up will appear unless you are exactly on the right spot of the graphic.  It is a hit and miss.  In other words, there is competition between the pop-up and selecting redline graphics with the left mouse click.  To work around this, I have had to make the graphic editing a right click, then they can go back to the left mouse click to edit the graphic.

I have asked the question before if there are plans for ESRI to develop an identify tool or a manager similar to what was available in the web ADF, but nobody has given me an answer.  Just know, that there is limited configuration with the pop-up and that is frustrating as a developer. 

The thing I do not like is that the pop up is on at all time, meaning that if you have several layers with the pop-up configured, you can be at full extent do a left mouse click on the map and a pop up appears.  This is an annoying behavior.  I would love to give a demo to ESRI to show the behavior I am describing.



Hi Ian,

I have posted many threads asking for very basic tools/functions/behaviour in the Silverlight (viewer) but sounds not to have most of them


For example, till now the Map Scale is not there while we are dealing all he time with maps and we need to know about the scales

[ATTACH=CONFIG]24855[/ATTACH]

Best

Jamal
----------------------------------------
Jamal Numan
Geomolg Geoportal for Spatial Information
Ramallah, West Bank, Palestine
0 Kudos