{"action":"created","issue":{"url":"https://api.github.com/repos/python-visualization/folium/issues/212","labels_url":"https://api.github.com/repos/python-visualization/folium/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/python-visualization/folium/issues/212/comments","events_url":"https://api.github.com/repos/python-visualization/folium/issues/212/events","html_url":"https://github.com/python-visualization/folium/issues/212","id":110675981,"number":212,"title":"get filled color for polygon_marker","user":{"login":"PBrockmann","id":5402758,"avatar_url":"https://avatars.githubusercontent.com/u/5402758?v=3","gravatar_id":"","url":"https://api.github.com/users/PBrockmann","html_url":"https://github.com/PBrockmann","followers_url":"https://api.github.com/users/PBrockmann/followers","following_url":"https://api.github.com/users/PBrockmann/following{/other_user}","gists_url":"https://api.github.com/users/PBrockmann/gists{/gist_id}","starred_url":"https://api.github.com/users/PBrockmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PBrockmann/subscriptions","organizations_url":"https://api.github.com/users/PBrockmann/orgs","repos_url":"https://api.github.com/users/PBrockmann/repos","events_url":"https://api.github.com/users/PBrockmann/events{/privacy}","received_events_url":"https://api.github.com/users/PBrockmann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/python-visualization/folium/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"ocefpaf","id":950575,"avatar_url":"https://avatars.githubusercontent.com/u/950575?v=3","gravatar_id":"","url":"https://api.github.com/users/ocefpaf","html_url":"https://github.com/ocefpaf","followers_url":"https://api.github.com/users/ocefpaf/followers","following_url":"https://api.github.com/users/ocefpaf/following{/other_user}","gists_url":"https://api.github.com/users/ocefpaf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocefpaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocefpaf/subscriptions","organizations_url":"https://api.github.com/users/ocefpaf/orgs","repos_url":"https://api.github.com/users/ocefpaf/repos","events_url":"https://api.github.com/users/ocefpaf/events{/privacy}","received_events_url":"https://api.github.com/users/ocefpaf/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/python-visualization/folium/milestones/2","html_url":"https://github.com/python-visualization/folium/milestones/v0.1.6","labels_url":"https://api.github.com/repos/python-visualization/folium/milestones/2/labels","id":1262890,"number":2,"title":"v0.1.6","description":null,"creator":{"login":"ocefpaf","id":950575,"avatar_url":"https://avatars.githubusercontent.com/u/950575?v=3","gravatar_id":"","url":"https://api.github.com/users/ocefpaf","html_url":"https://github.com/ocefpaf","followers_url":"https://api.github.com/users/ocefpaf/followers","following_url":"https://api.github.com/users/ocefpaf/following{/other_user}","gists_url":"https://api.github.com/users/ocefpaf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocefpaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocefpaf/subscriptions","organizations_url":"https://api.github.com/users/ocefpaf/orgs","repos_url":"https://api.github.com/users/ocefpaf/repos","events_url":"https://api.github.com/users/ocefpaf/events{/privacy}","received_events_url":"https://api.github.com/users/ocefpaf/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":3,"state":"open","created_at":"2015-08-19T16:23:33Z","updated_at":"2015-10-31T00:58:25Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-10-09T14:58:45Z","updated_at":"2015-10-31T01:40:00Z","closed_at":"2015-10-31T00:58:25Z","body":"I cannot get a flat filled color when I use polygon_marker. Instead I get a gradient that comes from Leaflet-DVF I suppose.\r\nBut many times, I would prefer to display a flat color.\r\n\r\nAnother point, I have noticed on the use of the property fill_color from polygon_marker is that the filled color is not displayed when you embed your map in a notebook.\r\n\r\nHere is an example tested with 0.1.5\r\n\r\n```python\r\nimport folium\r\nprint folium.__version__\r\n\r\nfrom IPython.display import HTML, display\r\n\r\ndef inline_map(m):\r\n    if isinstance(m, folium.folium.Map):\r\n        m._build_map()\r\n        srcdoc = m.HTML.replace('\"', '&quot;')\r\n        embed = HTML('<iframe srcdoc=\"{}\" '\r\n                 'style=\"width: {}px; height: {}px; '\r\n                 'border: none\"></iframe>'.format(srcdoc, m.width, m.height))\r\n    else:\r\n        raise ValueError('{!r} is not a folium Map instance.')\r\n    return embed\r\n```\r\n\r\n```python\r\nmap_5 = folium.Map(width=600, height=400, location=[45.5236, -122.6750], zoom_start=13)\r\n\r\nmap_5.polygon_marker(location=[45.5318, -122.6745], popup='Broadway Bridge',\r\n                     line_color='red',\r\n                     fill_color='blue', num_sides=8, radius=10, fill_opacity=1)\r\n\r\ninline_map(map_5)\r\n``` \r\n![folium_02](https://cloud.githubusercontent.com/assets/5402758/10397222/c979ccc6-6ea6-11e5-922a-7976807107ef.png)\r\n\r\nInspecting the SVG I find a \r\nfill=\"url(#gradeac640f5-53f0-6c37-ea2b-10d33cbc9aa0)\"\r\nwhereas in a saved html with map_5.create_map(path=\"myfile.html\"), I get a \r\nfill='blue' as expected (event if it is a gradient that is finally displayed).\r\n\r\n![folium_03](https://cloud.githubusercontent.com/assets/5402758/10397247/e63c8006-6ea6-11e5-87c4-461d93ac4bf8.png)\r\n"},"comment":{"url":"https://api.github.com/repos/python-visualization/folium/issues/comments/152684295","html_url":"https://github.com/python-visualization/folium/issues/212#issuecomment-152684295","issue_url":"https://api.github.com/repos/python-visualization/folium/issues/212","id":152684295,"user":{"login":"ocefpaf","id":950575,"avatar_url":"https://avatars.githubusercontent.com/u/950575?v=3","gravatar_id":"","url":"https://api.github.com/users/ocefpaf","html_url":"https://github.com/ocefpaf","followers_url":"https://api.github.com/users/ocefpaf/followers","following_url":"https://api.github.com/users/ocefpaf/following{/other_user}","gists_url":"https://api.github.com/users/ocefpaf/gists{/gist_id}","starred_url":"https://api.github.com/users/ocefpaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocefpaf/subscriptions","organizations_url":"https://api.github.com/users/ocefpaf/orgs","repos_url":"https://api.github.com/users/ocefpaf/repos","events_url":"https://api.github.com/users/ocefpaf/events{/privacy}","received_events_url":"https://api.github.com/users/ocefpaf/received_events","type":"User","site_admin":false},"created_at":"2015-10-31T01:40:00Z","updated_at":"2015-10-31T01:40:00Z","body":"I saw that.  I agree that sci-wms is a :+1: (right @kwilcox :smile_cat:)\r\n\r\nWe need to sort https://github.com/python-visualization/folium/pull/124 out too.  I will open another issue for that.  Thanks!"}}