{"action":"closed","number":1,"pull_request":{"state":"closed","created_at":"2011-12-14T06:07:27Z","review_comments":0,"changed_files":68,"updated_at":"2011-12-15T02:19:43Z","_links":{"review_comments":{"href":"https://api.github.com/repos/RandomEtc/shapefile-js/pulls/1/comments"},"comments":{"href":"https://api.github.com/repos/RandomEtc/shapefile-js/issues/1/comments"},"html":{"href":"https://github.com/RandomEtc/shapefile-js/pull/1"},"self":{"href":"https://api.github.com/repos/RandomEtc/shapefile-js/pulls/1"}},"patch_url":"https://github.com/RandomEtc/shapefile-js/pull/1.patch","user":{"gravatar_id":"9ad39e550e0f07de1a6495b63e02b65d","id":566958,"url":"https://api.github.com/users/mattwigway","avatar_url":"https://secure.gravatar.com/avatar/9ad39e550e0f07de1a6495b63e02b65d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mattwigway"},"issue_url":"https://github.com/RandomEtc/shapefile-js/issues/1","comments":2,"deletions":0,"body":"I added some code to allow shapefiles to be used in [OpenLayers](http://openlayers.org) so that Shapefiles can be used with other web data, symbolized, &c. There's an example [here](http://mattwigway.github.com/shapefile-js/ol_simple.html). Long-term, I hope to be able to integrate this as a format in OpenLayers, but this is a good proof of concept.\r\n\r\nThe code seems to work well with points, lines and polygons (I did not test the donut polygon case, but I think it should work). It'd be gret if you'd look over, though, as I imagine you understand the Shapefile format better than I do. I basically did a line-for-line port of layer.js. It converts Shapefile geometries to WKT and then passes that to OpenLayers. I blogged about it [here](http://indicatrix.wordpress.com/2011/12/13/shapefiles-in-openlayers/).","merged":true,"commits":6,"mergeable":null,"id":592011,"base":{"user":{"gravatar_id":"8eb29630732aecd29eb0d4de23023e12","id":39635,"url":"https://api.github.com/users/RandomEtc","avatar_url":"https://secure.gravatar.com/avatar/8eb29630732aecd29eb0d4de23023e12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"RandomEtc"},"repo":{"pushed_at":"2011-12-15T02:19:43Z","created_at":"2009-11-21T23:30:24Z","private":false,"clone_url":"https://github.com/RandomEtc/shapefile-js.git","updated_at":"2011-12-15T02:19:43Z","name":"shapefile-js","master_branch":null,"watchers":58,"svn_url":"https://svn.github.com/RandomEtc/shapefile-js","forks":5,"language":"JavaScript","owner":{"gravatar_id":"8eb29630732aecd29eb0d4de23023e12","id":39635,"url":"https://api.github.com/users/RandomEtc","avatar_url":"https://secure.gravatar.com/avatar/8eb29630732aecd29eb0d4de23023e12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"RandomEtc"},"id":381120,"homepage":"http://s3.amazonaws.com/shapefile-js/index.html","description":"A binary shapefile loader and canvas-based renderer, for javascript. Many caveats.","git_url":"git://github.com/RandomEtc/shapefile-js.git","html_url":"https://github.com/RandomEtc/shapefile-js","url":"https://api.github.com/repos/RandomEtc/shapefile-js","size":9318,"ssh_url":"git@github.com:RandomEtc/shapefile-js.git","open_issues":0,"fork":false},"sha":"185f83310ace53754b61d5cc98e3e161410e01db","ref":"master","label":"RandomEtc:master"},"merged_by":{"gravatar_id":"8eb29630732aecd29eb0d4de23023e12","id":39635,"url":"https://api.github.com/users/RandomEtc","avatar_url":"https://secure.gravatar.com/avatar/8eb29630732aecd29eb0d4de23023e12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"RandomEtc"},"number":1,"additions":3550,"title":"OpenLayers","head":{"user":{"gravatar_id":"9ad39e550e0f07de1a6495b63e02b65d","id":566958,"url":"https://api.github.com/users/mattwigway","avatar_url":"https://secure.gravatar.com/avatar/9ad39e550e0f07de1a6495b63e02b65d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mattwigway"},"repo":{"pushed_at":"2011-12-14T18:26:31Z","created_at":"2011-12-13T07:21:45Z","private":false,"clone_url":"https://github.com/mattwigway/shapefile-js.git","updated_at":"2011-12-14T18:26:31Z","name":"shapefile-js","master_branch":null,"watchers":1,"svn_url":"https://svn.github.com/mattwigway/shapefile-js","forks":0,"language":"JavaScript","owner":{"gravatar_id":"9ad39e550e0f07de1a6495b63e02b65d","id":566958,"url":"https://api.github.com/users/mattwigway","avatar_url":"https://secure.gravatar.com/avatar/9ad39e550e0f07de1a6495b63e02b65d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"mattwigway"},"id":2970563,"homepage":"http://s3.amazonaws.com/shapefile-js/index.html","description":"A binary shapefile loader and canvas-based renderer, for javascript. Many caveats.","git_url":"git://github.com/mattwigway/shapefile-js.git","html_url":"https://github.com/mattwigway/shapefile-js","url":"https://api.github.com/repos/mattwigway/shapefile-js","size":112,"ssh_url":"git@github.com:mattwigway/shapefile-js.git","open_issues":0,"fork":true},"sha":"a4d849a59e8ccc12ad31997d087e33a24d025025","ref":"openlayers","label":"mattwigway:openlayers"},"html_url":"https://github.com/RandomEtc/shapefile-js/pull/1","closed_at":"2011-12-15T02:19:43Z","url":"https://api.github.com/repos/RandomEtc/shapefile-js/pulls/1","diff_url":"https://github.com/RandomEtc/shapefile-js/pull/1.diff","merged_at":"2011-12-15T02:19:43Z"}}