{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5530","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5530/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5530/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5530/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/5530","id":163339349,"number":5530,"title":"[Android] Addmarkers() with markerview ?","user":{"login":"benjisora","id":15685057,"avatar_url":"https://avatars.githubusercontent.com/u/15685057?v=3","gravatar_id":"","url":"https://api.github.com/users/benjisora","html_url":"https://github.com/benjisora","followers_url":"https://api.github.com/users/benjisora/followers","following_url":"https://api.github.com/users/benjisora/following{/other_user}","gists_url":"https://api.github.com/users/benjisora/gists{/gist_id}","starred_url":"https://api.github.com/users/benjisora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjisora/subscriptions","organizations_url":"https://api.github.com/users/benjisora/orgs","repos_url":"https://api.github.com/users/benjisora/repos","events_url":"https://api.github.com/users/benjisora/events{/privacy}","received_events_url":"https://api.github.com/users/benjisora/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/Android","name":"Android","color":"000000"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-01T07:52:46Z","updated_at":"2016-08-18T20:43:35Z","closed_at":null,"body":"Hello there,\r\n\r\nI'm using MapBox in an Android app to render a lot of markers on a map, and to do so, I was creating a List of MarkerOption, and I was using the 'addmarkers' function then. By using 'addmarker' and adding them one by one, it weirdly takes way to long, as explained (and solved) in #5390 \r\n\r\nThe problem is, I have to add a custom icon to each of them, and it seems like when I do so, some markers disappear kinda like seen in #3379, and I end up with a memory leak if I refresh several times even though I use \"removeAnnotations\" to make sure it cleans the map when I refresh the data. (I think my code needs some correcting, but still, the disappearance of the markers I had before when not adding a custom icon is a bit problematic...)\r\n\r\nI saw that MapBox 4.1.0 introduced the markerviews, but I have troubles adding them like I previously did with simple markers (in a list and then using addmarkers). Is there any way to add multiple markerview at once on a map ?\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/240850497","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/5530#issuecomment-240850497","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/5530","id":240850497,"user":{"login":"tobrun","id":2151639,"avatar_url":"https://avatars.githubusercontent.com/u/2151639?v=3","gravatar_id":"","url":"https://api.github.com/users/tobrun","html_url":"https://github.com/tobrun","followers_url":"https://api.github.com/users/tobrun/followers","following_url":"https://api.github.com/users/tobrun/following{/other_user}","gists_url":"https://api.github.com/users/tobrun/gists{/gist_id}","starred_url":"https://api.github.com/users/tobrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobrun/subscriptions","organizations_url":"https://api.github.com/users/tobrun/orgs","repos_url":"https://api.github.com/users/tobrun/repos","events_url":"https://api.github.com/users/tobrun/events{/privacy}","received_events_url":"https://api.github.com/users/tobrun/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T20:43:35Z","updated_at":"2016-08-18T20:43:35Z","body":"@SylvainHocq we are aware of the performance issues with MarkerView. MarkerViews are Android SDK View objects synchronised above a SurfaceView. They are extremely flexible when it comes to functionality but are limited in performance. We hope to solve this use-case some day with Marker View clustering. GL based markers on the other hand scale much better, they are drawn as part of our gl rendering but they do not expose all the basic functionality yet."}}
{"actor":{"display_login":"tobrun"}}