{"action":"closed","issue":{"url":"https://api.github.com/repos/openlayers/openlayers/issues/9053","repository_url":"https://api.github.com/repos/openlayers/openlayers","labels_url":"https://api.github.com/repos/openlayers/openlayers/issues/9053/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/openlayers/issues/9053/comments","events_url":"https://api.github.com/repos/openlayers/openlayers/issues/9053/events","html_url":"https://github.com/openlayers/openlayers/issues/9053","id":389843567,"node_id":"MDU6SXNzdWUzODk4NDM1Njc=","number":9053,"title":"create custom polygon style from point feature","user":{"login":"remiglobal","id":9311461,"node_id":"MDQ6VXNlcjkzMTE0NjE=","avatar_url":"https://avatars2.githubusercontent.com/u/9311461?v=4","gravatar_id":"","url":"https://api.github.com/users/remiglobal","html_url":"https://github.com/remiglobal","followers_url":"https://api.github.com/users/remiglobal/followers","following_url":"https://api.github.com/users/remiglobal/following{/other_user}","gists_url":"https://api.github.com/users/remiglobal/gists{/gist_id}","starred_url":"https://api.github.com/users/remiglobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remiglobal/subscriptions","organizations_url":"https://api.github.com/users/remiglobal/orgs","repos_url":"https://api.github.com/users/remiglobal/repos","events_url":"https://api.github.com/users/remiglobal/events{/privacy}","received_events_url":"https://api.github.com/users/remiglobal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-12-11T16:20:45Z","updated_at":"2018-12-14T22:45:13Z","closed_at":"2018-12-14T22:45:13Z","author_association":"NONE","body":"hi\r\n\r\ni wanted to create a custom polygon style for a point feature. So far i have tested the following code but failed. No error but nothing displayed on the map.\r\n\r\nvar myPolyArray = [[0,0],[5,0],[5,5],[0,5],[0,0]];\r\nvar featureSelectedStyle = new ol.style.Style( {\r\n\r\n\tfill: new ol.style.Fill( {color: 'rgba(192,122,192,1)'} ),\r\n\tstroke: new ol.style.Stroke({color: 'rgba(255, 204, 0, 0.2)', width: 2}),\r\n\tgeometry: function(feature) {\r\n\t\t\treturn new ol.geom.MultiLineString([myPolyArray]); \r\n\t\t}\t\t\r\n} );\r\n\r\nI have been looking at 2-3 example on geometry function but failed to understand. Am i missing something?"}}
{"actor":{"display_login":"remiglobal"}}