{"action":"created","issue":{"url":"https://api.github.com/repos/amay077/Xamarin.Forms.GoogleMaps/issues/563","repository_url":"https://api.github.com/repos/amay077/Xamarin.Forms.GoogleMaps","labels_url":"https://api.github.com/repos/amay077/Xamarin.Forms.GoogleMaps/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/amay077/Xamarin.Forms.GoogleMaps/issues/563/comments","events_url":"https://api.github.com/repos/amay077/Xamarin.Forms.GoogleMaps/issues/563/events","html_url":"https://github.com/amay077/Xamarin.Forms.GoogleMaps/issues/563","id":366464410,"node_id":"MDU6SXNzdWUzNjY0NjQ0MTA=","number":563,"title":"Problem when many Pins to add (5.000 in my case)","user":{"login":"marcelocferdeveloper","id":17338668,"node_id":"MDQ6VXNlcjE3MzM4NjY4","avatar_url":"https://avatars1.githubusercontent.com/u/17338668?v=4","gravatar_id":"","url":"https://api.github.com/users/marcelocferdeveloper","html_url":"https://github.com/marcelocferdeveloper","followers_url":"https://api.github.com/users/marcelocferdeveloper/followers","following_url":"https://api.github.com/users/marcelocferdeveloper/following{/other_user}","gists_url":"https://api.github.com/users/marcelocferdeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelocferdeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelocferdeveloper/subscriptions","organizations_url":"https://api.github.com/users/marcelocferdeveloper/orgs","repos_url":"https://api.github.com/users/marcelocferdeveloper/repos","events_url":"https://api.github.com/users/marcelocferdeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/marcelocferdeveloper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-03T18:16:07Z","updated_at":"2018-10-17T09:20:21Z","closed_at":null,"author_association":"NONE","body":"### VERSIONS\r\n\r\n* Xamarin.Forms.GoogleMaps - 3.0.3\r\n* Xamarin.Forms - 3.2.0\r\n* Xamarin.GooglePlayServices.Maps - 60.1142.1\r\n\r\n### PLATFORMS\r\n\r\n- [x] Android\r\n- [ ] iOS\r\n- [ ] UWP\r\n\r\n### ACTUAL BEHAVIOR\r\n\r\nWhen the list of pins is too long, the app lock. For instance, I have a Collection of Pins \"A\" that has 500 elements on list... works normally. Another Collection of Pins \"B\" has almost 5.000 pins. The app lock when start to Add the pins. Nothing happens. Any exception or error...just frozen.\r\n\r\n### EXPECTED BEHAVIOR\r\n\r\nAll the pins on the map.\r\n\r\n### HOW TO REPRODUCE\r\n\r\n<!-- Let me show how to reproduce with steps or codes) -->\r\n\r\n1.  Create a custom Pin\r\n```\r\nPin pinOndeTemTiro = new Pin()\r\n        {\r\n            Type = PinType.Place,\r\n            Icon = BitmapDescriptorFactory.FromBundle(\"ondetemtiro.png\")\r\n        };\r\n```\r\n\r\n2. Then, I have a Api Call that returns a Json, that is a List<MyModel> .\r\n3. I get this List and try to populate on the Map.\r\n\r\n```\r\n mylist = t.Result;\r\n\r\n                        for (int index = 0; index < mylist.Count; index++)\r\n                        {\r\n                            try\r\n                            {\r\n                                var item = mylist[index];\r\n                                var obj = item.latlng;\r\n                                var LATLONG = JsonConvert.DeserializeObject<LatLong>(obj);\r\n                                mylist[index].Latlong = LATLONG;\r\n\r\n                                pinOndeTemTiro.Label = mylist[index].DsObjeto;\r\n                                pinOndeTemTiro.Address = mylist[index].NmInformacao;\r\n                                pinOndeTemTiro.Position = new Position(mylist[index].Latlong.Lat, mylist[index].Latlong.Lng);\r\n\r\n                                map.Pins.Add(pinOndeTemTiro);\r\n\r\n                            }\r\n                            catch (Exception ex)\r\n                            {\r\n\r\n                            }\r\n                        }\r\n```\r\nBut, how I told, when has 500 items works nicelly. But when has almost 5.000 , locks and nothing happens."},"comment":{"url":"https://api.github.com/repos/amay077/Xamarin.Forms.GoogleMaps/issues/comments/430554660","html_url":"https://github.com/amay077/Xamarin.Forms.GoogleMaps/issues/563#issuecomment-430554660","issue_url":"https://api.github.com/repos/amay077/Xamarin.Forms.GoogleMaps/issues/563","id":430554660,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDU1NDY2MA==","user":{"login":"amay077","id":401369,"node_id":"MDQ6VXNlcjQwMTM2OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/401369?v=4","gravatar_id":"","url":"https://api.github.com/users/amay077","html_url":"https://github.com/amay077","followers_url":"https://api.github.com/users/amay077/followers","following_url":"https://api.github.com/users/amay077/following{/other_user}","gists_url":"https://api.github.com/users/amay077/gists{/gist_id}","starred_url":"https://api.github.com/users/amay077/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amay077/subscriptions","organizations_url":"https://api.github.com/users/amay077/orgs","repos_url":"https://api.github.com/users/amay077/repos","events_url":"https://api.github.com/users/amay077/events{/privacy}","received_events_url":"https://api.github.com/users/amay077/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T09:20:21Z","updated_at":"2018-10-17T09:20:21Z","author_association":"OWNER","body":"Please check out the issue #497 .\r\nAnd our sample app's code.\r\n\r\nhttps://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/4ab24797821e19768ebf89baa5c6896d4977f0af/XFGoogleMapSample/Droid/CachingNativeBitmapDescriptorFactory.cs\r\n\r\nhttps://github.com/amay077/Xamarin.Forms.GoogleMaps/blob/4ab24797821e19768ebf89baa5c6896d4977f0af/XFGoogleMapSample/Droid/MainActivity.cs"}}
{"actor":{"display_login":"amay077"}}