{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/5207","repository_url":"https://api.github.com/repos/Leaflet/Leaflet","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/5207/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/5207/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/5207/events","html_url":"https://github.com/Leaflet/Leaflet/issues/5207","id":196331580,"number":5207,"title":"Part of Layers didn't display when the map was initialized but became normal when I resize the browser window?","user":{"login":"hijiangtao","id":4990015,"avatar_url":"https://avatars.githubusercontent.com/u/4990015?v=3","gravatar_id":"","url":"https://api.github.com/users/hijiangtao","html_url":"https://github.com/hijiangtao","followers_url":"https://api.github.com/users/hijiangtao/followers","following_url":"https://api.github.com/users/hijiangtao/following{/other_user}","gists_url":"https://api.github.com/users/hijiangtao/gists{/gist_id}","starred_url":"https://api.github.com/users/hijiangtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hijiangtao/subscriptions","organizations_url":"https://api.github.com/users/hijiangtao/orgs","repos_url":"https://api.github.com/users/hijiangtao/repos","events_url":"https://api.github.com/users/hijiangtao/events{/privacy}","received_events_url":"https://api.github.com/users/hijiangtao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-19T04:59:01Z","updated_at":"2016-12-19T08:36:13Z","closed_at":"2016-12-19T08:36:13Z","body":"- [x] I'm reporting a bug, not asking for help\r\n- [x] I've looked at the [documentation](http://leafletjs.com/reference-1.0.0.html) to make sure the behaviour is documented and expected\r\n- [x] I'm sure this is a Leaflet code issue, not an issue with my own code nor with the framework I'm using (Cordova, Ionic, Angular, React…)\r\n- [ ] I've searched through the issues to make sure it's not yet reported\r\n\r\n----\r\n\r\n## How to reproduce\r\n\r\n- Leaflet version I'm using: 1.0.2\r\n- Browser (with version) I'm using: chrome\r\n- OS/Platform (with version) I'm using: ubuntu16.04\r\n- step 1\r\n- step 2\r\n\r\n## What behaviour I'm expecting and which behaviour I'm seeing\r\n\r\nIt shows that the mao just display the layers normally around the top of the map view, like the pic shows below, which left the other part of the view blank.\r\n\r\n![download 1](https://cloud.githubusercontent.com/assets/4990015/21301603/1325af8e-c5ea-11e6-9f13-4e8bff2e386f.png)\r\n\r\nThe console didn't hint any bug info logs, and the situation can be fixed by I resize the window of chrome browser, exactly, any resize operation (excepts zoom and scale in the map) like open the console of chrome can help me get the other layers that didn't display normally at first.\r\n\r\nI wonder if there is any potential rule in leaflet css or js can influence the layer's loading behavior?\r\n\r\nThe codes shows here (I just delete my accessToken and id here): \r\n\r\n```\r\nvar baseLayer = L.tileLayer(\r\n\t\t'https://api.mapbox.com/styles/v1/{id}/{z}/{x}/{y}?access_token={accessToken}')\r\n\r\nmap = new L.map(id, {\r\n\t\tcenter: L.latLng(39.914,116.396),\r\n\t\tzoom: 12,\r\n\t\tlayers: baseLayer\r\n\t  })\r\n\r\nmap.zoomControl.setPosition('topright');\r\n```\r\n\r\n\r\n## Minimal example reproducing the issue\r\n\r\n- [x] this example is as simple as possible\r\n- [x] this example does not rely on any third party code\r\n\r\nUsing http://playground-leaflet.rhcloud.com/ or any other jsfiddle like site.\r\n"},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/267909283","html_url":"https://github.com/Leaflet/Leaflet/issues/5207#issuecomment-267909283","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/5207","id":267909283,"user":{"login":"hijiangtao","id":4990015,"avatar_url":"https://avatars.githubusercontent.com/u/4990015?v=3","gravatar_id":"","url":"https://api.github.com/users/hijiangtao","html_url":"https://github.com/hijiangtao","followers_url":"https://api.github.com/users/hijiangtao/followers","following_url":"https://api.github.com/users/hijiangtao/following{/other_user}","gists_url":"https://api.github.com/users/hijiangtao/gists{/gist_id}","starred_url":"https://api.github.com/users/hijiangtao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hijiangtao/subscriptions","organizations_url":"https://api.github.com/users/hijiangtao/orgs","repos_url":"https://api.github.com/users/hijiangtao/repos","events_url":"https://api.github.com/users/hijiangtao/events{/privacy}","received_events_url":"https://api.github.com/users/hijiangtao/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T08:36:13Z","updated_at":"2016-12-19T08:36:13Z","body":"@perliedman  Really sorry about putting my bugs in a wrong place, I think it's time to close the silly issue and I will double check my codes and Leaflet documents next time, thanks very much."}}
{"actor":{"display_login":"hijiangtao"}}