{"issue":{"milestone":null,"user":{"id":732033,"login":"acanimal","url":"https://api.github.com/users/acanimal","avatar_url":"https://secure.gravatar.com/avatar/9a4ad0db806d53efd701273265d3fa0c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9a4ad0db806d53efd701273265d3fa0c"},"title":"Better OpenLayers integration (solve some bugs)","created_at":"2011-08-01T17:37:52Z","updated_at":"2011-12-19T22:15:05Z","labels":[],"state":"open","id":1324487,"pull_request":{"patch_url":"https://github.com/pa7/heatmap.js/pull/3.patch","html_url":"https://github.com/pa7/heatmap.js/pull/3","diff_url":"https://github.com/pa7/heatmap.js/pull/3.diff"},"html_url":"https://github.com/pa7/heatmap.js/issues/3","closed_at":null,"body":"The modifications allows to work with OpenLayers.LonLat which allows to use any projection with the points.","number":3,"url":"https://api.github.com/repos/pa7/heatmap.js/issues/3","comments":3,"assignee":null},"comment":{"user":{"id":252042,"login":"Polzme","url":"https://api.github.com/users/Polzme","avatar_url":"https://secure.gravatar.com/avatar/7bc615892daeab87a6b442f9937f0361?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7bc615892daeab87a6b442f9937f0361"},"created_at":"2011-12-19T22:15:05Z","updated_at":"2011-12-19T22:15:05Z","id":3210577,"body":"Hi acanimal,\r\n\r\nI'm looking for integrating Heatmap.js into Drupal (with the Openlayers module).\r\nI'm using the original version of Patrick and I'm looking for a solution, that's how I ended here.\r\n\r\nI'm creating a Heatmap only from a layer. So I have to compute each coordinates from layer and then, inject it in the heatmap layer with: \r\n```heatmap.addDataPoint(component.x, component.y);```\r\n\r\nThe problem I have is that when I zoom in the map, the heatmap doesn't update itself and the heatmap reset to it's original state.\r\n\r\nI tried your version of the file heatmap-openlayers.js and it doesn't work.\r\n\r\nWith your version, I have to provide a ```c``` argument.\r\nI'm looking for a way to compute it but I'm not able to do it.\r\nThe only data I have are the points (coordinates) from the layer to apply the heatmap to.\r\nHow can I get this c parameter ?\r\n\r\nI tried by putting '1', but it returns an error : this.tmpData.data is undefined.\r\n\r\nMaybe we can help each other by testing and sending patches to patrick.\r\n\r\nWhat do you think ?","url":"https://api.github.com/repos/pa7/heatmap.js/issues/comments/3210577"},"action":"created"}