Exemple #1
0
 private void MapView_Info(object sender, UI.MapInfoEventArgs e)
 {
     if (e?.MapInfo?.Feature != null)
     {
         featureInfo.Text = $"Click Info:{Environment.NewLine}{e.MapInfo.Feature.ToDisplayText()}";
     }
 }
Exemple #2
0
        private void MapView_Info(object sender, UI.MapInfoEventArgs e)
        {
            if (e?.MapInfo?.Feature != null)
            {
                foreach (var style in e.MapInfo.Feature.Styles)
                {
                    if (style is CalloutStyle)
                    {
                        style.Enabled = !style.Enabled;
                        e.Handled     = true;
                    }
                }

                mapView.Refresh();
            }
        }
Exemple #3
0
        private void MapView_Info(object sender, UI.MapInfoEventArgs e)
        {
            if (e?.MapInfo?.Feature != null)
            {
                featureInfo.Text = $"Click Info:{Environment.NewLine}{e.MapInfo.Feature.ToDisplayText()}";

                foreach (var style in e.MapInfo.Feature.Styles)
                {
                    if (style is CalloutStyle)
                    {
                        style.Enabled = !style.Enabled;
                        e.Handled     = true;
                    }
                }

                mapView.Refresh();
            }
        }