{"action":"closed","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/6162","repository_url":"https://api.github.com/repos/Leaflet/Leaflet","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/6162/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/6162/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/6162/events","html_url":"https://github.com/Leaflet/Leaflet/issues/6162","id":322667426,"number":6162,"title":"Weird behaviour with polyline and zooming","user":{"login":"erfurtjohn","id":37433116,"avatar_url":"https://avatars2.githubusercontent.com/u/37433116?v=4","gravatar_id":"","url":"https://api.github.com/users/erfurtjohn","html_url":"https://github.com/erfurtjohn","followers_url":"https://api.github.com/users/erfurtjohn/followers","following_url":"https://api.github.com/users/erfurtjohn/following{/other_user}","gists_url":"https://api.github.com/users/erfurtjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/erfurtjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erfurtjohn/subscriptions","organizations_url":"https://api.github.com/users/erfurtjohn/orgs","repos_url":"https://api.github.com/users/erfurtjohn/repos","events_url":"https://api.github.com/users/erfurtjohn/events{/privacy}","received_events_url":"https://api.github.com/users/erfurtjohn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-14T04:16:56Z","updated_at":"2018-05-14T07:34:03Z","closed_at":"2018-05-14T07:34:03Z","author_association":"NONE","body":"Hello everyone,\r\n\r\nI just found leaflet yesterday and directly used it. But that's the same time I ran into a problem...\r\n\r\nI use the latest version of leaflet 1.3.1 and Google Chrome.\r\n\r\nBefore zoom the map looks as it should look:\r\n![Before](https://image.ibb.co/n9Yz8y/2018_05_14_06_09_12_Standort_Freiwillige_Feuerwehr_Eppenhausen.png)\r\n\r\nAnd after I zoomed in it looks like this:\r\n![After](https://image.ibb.co/b6f7vd/2018_05_14_06_09_24_Standort_Freiwillige_Feuerwehr_Eppenhausen.png)\r\n\r\nMy javascript looks like this:\r\n\r\n```\r\nvar mymap = L.map('leafletMap').setView([51.358438, 7.499192], 13);\r\n\r\n                L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}', {\r\n                    attribution: 'Map data &copy; <a href=\"https://www.openstreetmap.org/\">OpenStreetMap</a> contributors, <a href=\"https://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA</a>, Imagery © <a href=\"https://www.mapbox.com/\">Mapbox</a>',\r\n                    maxZoom: 18,\r\n                    id: 'mapbox.streets',\r\n                    accessToken: 'pk.eyJ1IjoiZXJmdXJ0am9obiIsImEiOiJjamg1MGJnaTEwdjFwMnlvYXZtNWo1eXk3In0.JA_85hn8PLw253oKWkv4Ug'\r\n                }).addTo(mymap);\r\n\r\n                var abschnittCoords = [\r\n                        [51.368640, 7.496750], //Lützowstr. Ecke Feithstr.\r\n                        [51.367577, 7.497429],\r\n                        [51.367577, 7.497429],\r\n                        [51.366810, 7.498319], //Feithstr. Ecke Berchumer\r\n                        [51.367118, 7.499576], //Berchumer\r\n                        [51.367508, 7.501724], //Berchumer\r\n                        [51.368674, 7.504532], //Berchumer\r\n                        [51.369723, 7.505267], //Berchumer\r\n                        [51.371825, 7.507327], //Berchumer / a46\r\n                        [51.369468, 7.512736], //a46   \r\n                        [51.368464, 7.517129], //ak a46/a45\r\n                        [51.365243, 7.515080], //a45    \r\n                        [51.361050, 7.515227], //a45 ochsenkamp    \r\n                        [51.358040, 7.516859], // donnerkuhler weg / concordia  \r\n                        [51.354342, 7.521916], //a45 höhe haßley  \r\n                        [51.351836, 7.524968], //a45\r\n                        [51.349312, 7.526375], //a45\r\n                        [51.348067, 7.526487], //a45 / volmeabstieg\r\n                        [51.347680, 7.522369], //volmeabstieg /köhlerweg\r\n                        [51.350286, 7.521101], // köhlerweg\r\n                        [51.351988, 7.519116], // köhlerweg / elmenhorststr\r\n                        [51.347878, 7.514636], // elmenhorststr\r\n                        [51.347263, 7.513842],\r\n                        [51.346811, 7.511441],\r\n                        [51.346797, 7.509033], // elmenhorststr / berghang\r\n                        [51.346993, 7.504463], // berghang\r\n                        [51.347515, 7.499306], // volmetalstr. / zuglinie\r\n                        [51.348888, 7.495618], // volmetaltsr.\r\n                        [51.351742, 7.485653], // volmetalstr. / eilper\r\n                        [51.354054, 7.482442], //volmestr\r\n                        [51.355870, 7.479738],\r\n                        [51.358449, 7.478976], //cvjm\r\n                        [51.360278, 7.478912], // lützow / arndt\r\n                        [51.361869, 7.482802], // lützow\r\n                        [51.365815, 7.491747], // lützow\r\n                        [51.367247, 7.494201], // lützow\r\n                        [51.368640, 7.496750] // startpunkt\r\n                ];\r\n                var polyline = L.polyline(abschnittCoords, {color: \"#D63B37\", weight: 2, fill: true, fillOpacity: 0.3}).addTo(mymap),\r\n                hagenGeo = L.geoJson(hagen, {color: \"#D63B37\", fill: false, weight: 2}).addTo(mymap);\r\n                \r\n                \r\n                mymap.fitBounds(polyline.getBounds());\r\n```\r\n\r\nWould be nice if someone could help me out with this!\r\n\r\n"}}
{"actor":{"display_login":"IvanSanchez"}}