Select to view content in your preferred language

Multiple Layer Identify

4039
2
03-16-2015 06:38 PM
JeffersonLegaspi
Deactivated User

Hi. I just want to ask on how to identify a feature with multiple layers on map using .NET on windows phone 8.1.

Follow up question, is there like a popuptemplate available on windows phone 8.1 just like on arcgis for javascript popuptemplate. Thanks

0 Kudos
2 Replies
AnttiKajanus1
Deactivated User

You can just loop through layers that you want to include in the hit test and combine results from them. It's often useful to add the layer information to the results that tells what layer the feature was in.

We don't really have "out of the box popup" but there is all pieces to create one. To show the popup in the specific location see sample MapOverlays. If you want to add features attributes to the popup, you can just add FeatureDataForm control into it. Check it's properties to see how you can control it's behavior.

If you are using MVVM, note that popups are living outside of maps VisualTree so DataContext is not derived to it automatically but you can fix that by setting it's DataContext manually in view's codebehind. This is similar behavior to appbar and popups in general.

0 Kudos
JeffersonLegaspi
Deactivated User

Can i use IdentifyTask instead? If ever, Do you have sample? Thanks in advance.

0 Kudos