Multiple Layer Identify

3627
2
03-16-2015 06:38 PM
JeffersonLegaspi
New Contributor II

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
Regular Contributor II

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
New Contributor II

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

0 Kudos