Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Forms.Map - Pins not appear on the device only in the simulator (IOS)

$
0
0

My map-based application works perfectly in the simulator, however when I executalo the IOS device (Debug or Release) the pins simply do not appear.

I tried to reduce the amount to 10 and yet to no avail.

Can someone help me?

                if ( lQInfo.Count!=0) {
                    foreach (var item in lQInfo) {
                        var posPoint = new Position (Convert.ToDouble (item.Y), Convert.ToDouble (item.X));
                            var pin = new Pin () {
                                Position = posPoint,
                                Label = item.Value.ToString (),
                                Address = 
                                    item.Endereco.TrimEnd () + "\r :" +
                                    item.IdPoint.ToString (), 
                                Type = PinType.SearchResult

                            };
                            pin.Clicked += PinOnClicked;
                            Pins.Add (pin); 
                    }
                }

                if (Pins.Count != 0) {
                        foreach (var item in Pins) {
                        map.Pins.Add (item);
                    }


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>