{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/7340","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/7340/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/7340/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/7340/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/7340","id":194253935,"number":7340,"title":"add multiple markers using json.","user":{"login":"arpit999bicubic","id":20318296,"avatar_url":"https://avatars.githubusercontent.com/u/20318296?v=3","gravatar_id":"","url":"https://api.github.com/users/arpit999bicubic","html_url":"https://github.com/arpit999bicubic","followers_url":"https://api.github.com/users/arpit999bicubic/followers","following_url":"https://api.github.com/users/arpit999bicubic/following{/other_user}","gists_url":"https://api.github.com/users/arpit999bicubic/gists{/gist_id}","starred_url":"https://api.github.com/users/arpit999bicubic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arpit999bicubic/subscriptions","organizations_url":"https://api.github.com/users/arpit999bicubic/orgs","repos_url":"https://api.github.com/users/arpit999bicubic/repos","events_url":"https://api.github.com/users/arpit999bicubic/events{/privacy}","received_events_url":"https://api.github.com/users/arpit999bicubic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-08T05:59:22Z","updated_at":"2016-12-08T05:59:22Z","closed_at":null,"body":"<!--\r\nHello and thanks for contributing! To help us diagnose your problem quickly, please:\r\n\r\n - Include a minimal demonstration of the bug, including code, logs, and screenshots.\r\n - Ensure you can reproduce the bug using the latest release.\r\n - Only post to report a bug or request a feature; direct all other questions to: https://stackoverflow.com/questions/tagged/mapbox\r\n-->\r\n\r\n**Android:**\r\n**4.2.0-beta.5@aar:**\r\n\r\n### Steps to trigger behavior\r\n\r\n 1.  I am find in stackoverflow and google but not find any specific how to add multiple markers.\r\n \r\nHere is my code.\r\n\r\n```\r\n mapView.onCreate(savedInstanceState);\r\n        mapView.getMapAsync(new OnMapReadyCallback() {\r\n            @Override\r\n            public void onMapReady(MapboxMap mapboxMap) {\r\n                map = mapboxMap;\r\n                if (map != null) {\r\n                    toggleGps(!map.isMyLocationEnabled());\r\n                }\r\n                \r\n                IconFactory iconFactory = IconFactory.getInstance(SelectTourActivity.this);\r\n                Drawable shayamal = ContextCompat.getDrawable(SelectTourActivity.this, R.mipmap.marker_red);\r\n                Icon icon_shayamal = iconFactory.fromDrawable(shayamal);\r\n\r\n                Drawable sg = ContextCompat.getDrawable(SelectTourActivity.this, R.mipmap.marker_green);\r\n                Icon icon_sg = iconFactory.fromDrawable(sg);\r\n\r\n                // Add the custom icon marker to the map\r\n                mapboxMap.addMarker(new MarkerOptions()\r\n                        .position(new LatLng(23.0133, 72.5308))\r\n                        .title(\"Shayamal\")\r\n                        .icon(icon_shayamal));\r\n\r\n                // Add the custom icon marker to the map\r\n                mapboxMap.addMarker(new MarkerOptions()\r\n                        .position(new LatLng(23.0837, 72.5272))\r\n                        .title(\"SG Highway\")\r\n                        .icon(icon_sg));\r\n            }\r\n        });\r\n```\r\n\r\nPlease give me some link regarding how to add multiple markers or please guide me.\r\n\r\n### add multiple marker at a time.\r\n\r\n### I am able to add only one. "}}
{"actor":{"display_login":"arpit999bicubic"}}