{"action":"created","issue":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/2824","repository_url":"https://api.github.com/repos/Leaflet/Leaflet","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/2824/labels{/name}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/2824/comments","events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/2824/events","html_url":"https://github.com/Leaflet/Leaflet/issues/2824","id":39188111,"number":2824,"title":"Circle Markers disappear randomly on zoom","user":{"login":"danielopitz","id":1937970,"avatar_url":"https://avatars2.githubusercontent.com/u/1937970?v=4","gravatar_id":"","url":"https://api.github.com/users/danielopitz","html_url":"https://github.com/danielopitz","followers_url":"https://api.github.com/users/danielopitz/followers","following_url":"https://api.github.com/users/danielopitz/following{/other_user}","gists_url":"https://api.github.com/users/danielopitz/gists{/gist_id}","starred_url":"https://api.github.com/users/danielopitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielopitz/subscriptions","organizations_url":"https://api.github.com/users/danielopitz/orgs","repos_url":"https://api.github.com/users/danielopitz/repos","events_url":"https://api.github.com/users/danielopitz/events{/privacy}","received_events_url":"https://api.github.com/users/danielopitz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/23","html_url":"https://github.com/Leaflet/Leaflet/milestone/23","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones/23/labels","id":489038,"number":23,"title":"0.7.*","description":"\r\n\r\n<!---\r\n@huboard:{\"order\":19.78125}\r\n-->\r\n","creator":{"login":"mourner","id":25395,"avatar_url":"https://avatars1.githubusercontent.com/u/25395?v=4","gravatar_id":"","url":"https://api.github.com/users/mourner","html_url":"https://github.com/mourner","followers_url":"https://api.github.com/users/mourner/followers","following_url":"https://api.github.com/users/mourner/following{/other_user}","gists_url":"https://api.github.com/users/mourner/gists{/gist_id}","starred_url":"https://api.github.com/users/mourner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mourner/subscriptions","organizations_url":"https://api.github.com/users/mourner/orgs","repos_url":"https://api.github.com/users/mourner/repos","events_url":"https://api.github.com/users/mourner/events{/privacy}","received_events_url":"https://api.github.com/users/mourner/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":14,"state":"closed","created_at":"2013-11-18T21:25:52Z","updated_at":"2015-03-02T00:12:02Z","due_on":null,"closed_at":"2015-03-02T00:12:02Z"},"comments":10,"created_at":"2014-07-31T12:11:47Z","updated_at":"2018-02-26T13:45:12Z","closed_at":"2014-10-31T11:45:38Z","author_association":"NONE","body":"Hi,\nI have several CircleMarkers on my map in a separate FeatureGroup. When I zoom in and out some of the markers disappear reappear randomly. It is even possible, through quick zooming, to make them all disappear. Moving the map around slightly helps to reproduce this behaviour even quicker.\n\nHere is some example code:\n\n```\n<!DOCTYPE html>\n<html>\n<head>\n<meta charset=utf-8 />\n<title>A simple map</title>\n<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />\n<link rel=\"stylesheet\" href=\"http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css\" />\n<script src=\"http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js\"></script>\n<style>\n  body { margin:0; padding:0; }\n  #map { position:absolute; top:0; bottom:0; width:100%; }\n</style>\n</head>\n<body>\n\n<div id='map'></div>\n<script>\nvar geojson = [{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [11.372,54.485]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"8.110\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [12.484,49.226]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"19.513\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [11.343,54.432]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"16.685\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [10.411,55.744]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"19.389\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [9.262,53.722]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"18.988\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [9.175,53.727]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"19.293\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [9.644,54.021]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"18.841\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [9.884,54.047]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"9.345\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [12.490,53.180]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"18.895\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [9.866,54.024]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"0.000\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [13.793,53.800]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"19.432\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [11.922,50.579]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"19.420\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [9.703,54.008]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"19.471\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [9.916,54.160]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"13.847\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [9.704,54.137]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"9.788\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [11.144,55.280]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"19.559\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [10.580,55.543]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"18.923\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [10.508,54.283]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"11.932\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}},{\"type\": \"Feature\",\"geometry\": {\"type\": \"Point\",\"coordinates\": [8.547,54.260]},\"properties\": {\"title\": \"\",\"description\": \"\",\"size-value\": \"19.015\",\"marker-color\": \"#e74c3c\",\"marker-symbol\": \"circle\",\"marker-size\": \"large\"}}];\nvar map = L.map('map').setView([51.0, 9.0], 6);\nL.tileLayer('https://{s}.tiles.mapbox.com/v3/examples.map-i86nkdio/{z}/{x}/{y}.png').addTo(map);\nvar circleLayer = L.featureGroup().addTo(map);\nfor (var i = 0; i < geojson.length; i++) {\n    L.circleMarker([geojson[i].geometry.coordinates[1], geojson[i].geometry.coordinates[0]]).setRadius(geojson[i].properties['size-value']).addTo(circleLayer);\n}\n</script>\n\n</body>\n</html>\n```\n\nIs this an error on my side? Or is it a bug in leaflet.js?\n\nCheers,\nDaniel\n\n<!---\n@huboard:{\"order\":2245.0,\"milestone_order\":2824,\"custom_state\":\"\"}\n-->\n"},"comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments/368508110","html_url":"https://github.com/Leaflet/Leaflet/issues/2824#issuecomment-368508110","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/2824","id":368508110,"user":{"login":"ShadowZone","id":976282,"avatar_url":"https://avatars3.githubusercontent.com/u/976282?v=4","gravatar_id":"","url":"https://api.github.com/users/ShadowZone","html_url":"https://github.com/ShadowZone","followers_url":"https://api.github.com/users/ShadowZone/followers","following_url":"https://api.github.com/users/ShadowZone/following{/other_user}","gists_url":"https://api.github.com/users/ShadowZone/gists{/gist_id}","starred_url":"https://api.github.com/users/ShadowZone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShadowZone/subscriptions","organizations_url":"https://api.github.com/users/ShadowZone/orgs","repos_url":"https://api.github.com/users/ShadowZone/repos","events_url":"https://api.github.com/users/ShadowZone/events{/privacy}","received_events_url":"https://api.github.com/users/ShadowZone/received_events","type":"User","site_admin":false},"created_at":"2018-02-26T13:45:11Z","updated_at":"2018-02-26T13:45:11Z","author_association":"NONE","body":"I got the same problem with the CircleMarker on version 1.3.1.\r\nIf I modify the radius, the marker will randomly appear and disappear.\r\nWithout any radius modifications it behaves like normal.\r\n\r\nThe workaround above does not work for me and I can't simply put a plus sign in front of the value because I get the options via an object variable."}}
{"actor":{"display_login":"ShadowZone"}}