{"action":"created","comment":{"url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/comments/52991551","id":52991551,"diff_hunk":"@@ -0,0 +1,53 @@\n+<!DOCTYPE html>\n+<html>\n+<head>\n+\t<title>Leaflet CRS.Simple Example</title>\n+\t<meta charset=\"utf-8\" />\n+\n+\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n+\n+\t<link rel=\"stylesheet\" href=\"https://leafletjs-cdn.s3.amazonaws.com/content/leaflet/master/leaflet.css\" />\n+</head>\n+<body>\n+\t<div id=\"map\" style=\"width: 600px; height: 400px\"></div>\n+\n+\t<script src=\"https://leafletjs-cdn.s3.amazonaws.com/content/leaflet/master/leaflet.js\"></script>\n+\t<script type=\"text/javascript\" src=\"eu-countries.js\"></script>\n+\n+\t<script>\n+\n+\t\tvar map = L.map('map', {\n+\t\t\tcrs: L.CRS.Simple,\n+\t\t\tminZoom: -3\n+\t\t});\n+\n+\t\tvar YX = L.LatLng;\n+\t\tvar yx = L.latLng;\n+\n+\t\tvar xy = function(x, y) {\n+\t\t\tif (L.Util.isArray(x)) {    // When doing xy([x, y]);\n+\t\t\t\treturn yx(x[1], x[0]);\n+\t\t\t}\n+\t\t\treturn yx(y, x);  // When doing xy(x, y);\n+\t\t};\n+\n+\t\tvar bounds = [xy(-25, -26.5), xy(1023, 1021.5)];\n+\t\tvar image = L.imageOverlay('uqm_map_full.png', bounds).addTo(map);\n+\n+\t\tvar sol      = xy(175.2, 145.0);\n+\t\tvar mizar    = xy( 41.6, 130.1);\n+\t\tvar kruegerZ = xy( 13.4,  56.5);\n+\t\tvar deneb    = xy(218.7,   8.3);\n+\n+\t\tL.marker(     sol).addTo(map).bindPopup(      'Sol');\n+\t\tL.marker(   mizar).addTo(map).bindPopup(    'Mizar');\n+\t\tL.marker(kruegerZ).addTo(map).bindPopup('Krueger-Z');\n+\t\tL.marker(   deneb).addTo(map).bindPopup(    'Deneb');\n+\n+\t\tvar travel = L.polyline([sol, deneb]).addTo(map);\n+\n+\t\tmap.setView( xy(120, 70), 1);","path":"examples/crs-simple/crs-simple-example3.html","position":49,"original_position":49,"commit_id":"c967ed33b83bba63d47cfcf491592b6b0c8afbed","original_commit_id":"c967ed33b83bba63d47cfcf491592b6b0c8afbed","user":{"login":"jieter","id":1470389,"avatar_url":"https://avatars.githubusercontent.com/u/1470389?v=3","gravatar_id":"","url":"https://api.github.com/users/jieter","html_url":"https://github.com/jieter","followers_url":"https://api.github.com/users/jieter/followers","following_url":"https://api.github.com/users/jieter/following{/other_user}","gists_url":"https://api.github.com/users/jieter/gists{/gist_id}","starred_url":"https://api.github.com/users/jieter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jieter/subscriptions","organizations_url":"https://api.github.com/users/jieter/orgs","repos_url":"https://api.github.com/users/jieter/repos","events_url":"https://api.github.com/users/jieter/events{/privacy}","received_events_url":"https://api.github.com/users/jieter/received_events","type":"User","site_admin":false},"body":"Space before `xy` intentional? ","created_at":"2016-02-16T10:18:54Z","updated_at":"2016-02-16T10:18:54Z","html_url":"https://github.com/Leaflet/Leaflet/pull/4248#discussion_r52991551","pull_request_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4248","_links":{"self":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/comments/52991551"},"html":{"href":"https://github.com/Leaflet/Leaflet/pull/4248#discussion_r52991551"},"pull_request":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4248"}}},"pull_request":{"url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4248","id":59466494,"html_url":"https://github.com/Leaflet/Leaflet/pull/4248","diff_url":"https://github.com/Leaflet/Leaflet/pull/4248.diff","patch_url":"https://github.com/Leaflet/Leaflet/pull/4248.patch","issue_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/4248","number":4248,"state":"closed","locked":false,"title":"CRS.Simple tutorial","user":{"login":"IvanSanchez","id":1125786,"avatar_url":"https://avatars.githubusercontent.com/u/1125786?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanSanchez","html_url":"https://github.com/IvanSanchez","followers_url":"https://api.github.com/users/IvanSanchez/followers","following_url":"https://api.github.com/users/IvanSanchez/following{/other_user}","gists_url":"https://api.github.com/users/IvanSanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanSanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanSanchez/subscriptions","organizations_url":"https://api.github.com/users/IvanSanchez/orgs","repos_url":"https://api.github.com/users/IvanSanchez/repos","events_url":"https://api.github.com/users/IvanSanchez/events{/privacy}","received_events_url":"https://api.github.com/users/IvanSanchez/received_events","type":"User","site_admin":false},"body":"Implements a bit of #4239. Also: spaceships!","created_at":"2016-02-16T09:55:46Z","updated_at":"2016-02-16T10:18:54Z","closed_at":"2016-02-16T10:06:46Z","merged_at":"2016-02-16T10:06:46Z","merge_commit_sha":"a75a6785196711b38bc0adb6b620e55a202d2cd4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4248/commits","review_comments_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4248/comments","review_comment_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/4248/comments","statuses_url":"https://api.github.com/repos/Leaflet/Leaflet/statuses/c967ed33b83bba63d47cfcf491592b6b0c8afbed","head":{"label":"Leaflet:gh-pages-crs-simple","ref":"gh-pages-crs-simple","sha":"c967ed33b83bba63d47cfcf491592b6b0c8afbed","user":{"login":"Leaflet","id":2854298,"avatar_url":"https://avatars.githubusercontent.com/u/2854298?v=3","gravatar_id":"","url":"https://api.github.com/users/Leaflet","html_url":"https://github.com/Leaflet","followers_url":"https://api.github.com/users/Leaflet/followers","following_url":"https://api.github.com/users/Leaflet/following{/other_user}","gists_url":"https://api.github.com/users/Leaflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Leaflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leaflet/subscriptions","organizations_url":"https://api.github.com/users/Leaflet/orgs","repos_url":"https://api.github.com/users/Leaflet/repos","events_url":"https://api.github.com/users/Leaflet/events{/privacy}","received_events_url":"https://api.github.com/users/Leaflet/received_events","type":"Organization","site_admin":false},"repo":{"id":931135,"name":"Leaflet","full_name":"Leaflet/Leaflet","owner":{"login":"Leaflet","id":2854298,"avatar_url":"https://avatars.githubusercontent.com/u/2854298?v=3","gravatar_id":"","url":"https://api.github.com/users/Leaflet","html_url":"https://github.com/Leaflet","followers_url":"https://api.github.com/users/Leaflet/followers","following_url":"https://api.github.com/users/Leaflet/following{/other_user}","gists_url":"https://api.github.com/users/Leaflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Leaflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leaflet/subscriptions","organizations_url":"https://api.github.com/users/Leaflet/orgs","repos_url":"https://api.github.com/users/Leaflet/repos","events_url":"https://api.github.com/users/Leaflet/events{/privacy}","received_events_url":"https://api.github.com/users/Leaflet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Leaflet/Leaflet","description":" :leaves: JavaScript library for mobile-friendly interactive maps","fork":false,"url":"https://api.github.com/repos/Leaflet/Leaflet","forks_url":"https://api.github.com/repos/Leaflet/Leaflet/forks","keys_url":"https://api.github.com/repos/Leaflet/Leaflet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Leaflet/Leaflet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Leaflet/Leaflet/teams","hooks_url":"https://api.github.com/repos/Leaflet/Leaflet/hooks","issue_events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/events{/number}","events_url":"https://api.github.com/repos/Leaflet/Leaflet/events","assignees_url":"https://api.github.com/repos/Leaflet/Leaflet/assignees{/user}","branches_url":"https://api.github.com/repos/Leaflet/Leaflet/branches{/branch}","tags_url":"https://api.github.com/repos/Leaflet/Leaflet/tags","blobs_url":"https://api.github.com/repos/Leaflet/Leaflet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Leaflet/Leaflet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Leaflet/Leaflet/git/refs{/sha}","trees_url":"https://api.github.com/repos/Leaflet/Leaflet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Leaflet/Leaflet/statuses/{sha}","languages_url":"https://api.github.com/repos/Leaflet/Leaflet/languages","stargazers_url":"https://api.github.com/repos/Leaflet/Leaflet/stargazers","contributors_url":"https://api.github.com/repos/Leaflet/Leaflet/contributors","subscribers_url":"https://api.github.com/repos/Leaflet/Leaflet/subscribers","subscription_url":"https://api.github.com/repos/Leaflet/Leaflet/subscription","commits_url":"https://api.github.com/repos/Leaflet/Leaflet/commits{/sha}","git_commits_url":"https://api.github.com/repos/Leaflet/Leaflet/git/commits{/sha}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/comments{/number}","issue_comment_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments{/number}","contents_url":"https://api.github.com/repos/Leaflet/Leaflet/contents/{+path}","compare_url":"https://api.github.com/repos/Leaflet/Leaflet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Leaflet/Leaflet/merges","archive_url":"https://api.github.com/repos/Leaflet/Leaflet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Leaflet/Leaflet/downloads","issues_url":"https://api.github.com/repos/Leaflet/Leaflet/issues{/number}","pulls_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls{/number}","milestones_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones{/number}","notifications_url":"https://api.github.com/repos/Leaflet/Leaflet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/labels{/name}","releases_url":"https://api.github.com/repos/Leaflet/Leaflet/releases{/id}","deployments_url":"https://api.github.com/repos/Leaflet/Leaflet/deployments","created_at":"2010-09-22T16:57:44Z","updated_at":"2016-02-16T06:36:49Z","pushed_at":"2016-02-16T10:06:49Z","git_url":"git://github.com/Leaflet/Leaflet.git","ssh_url":"git@github.com:Leaflet/Leaflet.git","clone_url":"https://github.com/Leaflet/Leaflet.git","svn_url":"https://github.com/Leaflet/Leaflet","homepage":"http://leafletjs.com","size":42507,"stargazers_count":12814,"watchers_count":12814,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":2301,"mirror_url":null,"open_issues_count":247,"forks":2301,"open_issues":247,"watchers":12814,"default_branch":"master"}},"base":{"label":"Leaflet:gh-pages","ref":"gh-pages","sha":"143ee84659934819fb9904f6710c0235af35ef87","user":{"login":"Leaflet","id":2854298,"avatar_url":"https://avatars.githubusercontent.com/u/2854298?v=3","gravatar_id":"","url":"https://api.github.com/users/Leaflet","html_url":"https://github.com/Leaflet","followers_url":"https://api.github.com/users/Leaflet/followers","following_url":"https://api.github.com/users/Leaflet/following{/other_user}","gists_url":"https://api.github.com/users/Leaflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Leaflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leaflet/subscriptions","organizations_url":"https://api.github.com/users/Leaflet/orgs","repos_url":"https://api.github.com/users/Leaflet/repos","events_url":"https://api.github.com/users/Leaflet/events{/privacy}","received_events_url":"https://api.github.com/users/Leaflet/received_events","type":"Organization","site_admin":false},"repo":{"id":931135,"name":"Leaflet","full_name":"Leaflet/Leaflet","owner":{"login":"Leaflet","id":2854298,"avatar_url":"https://avatars.githubusercontent.com/u/2854298?v=3","gravatar_id":"","url":"https://api.github.com/users/Leaflet","html_url":"https://github.com/Leaflet","followers_url":"https://api.github.com/users/Leaflet/followers","following_url":"https://api.github.com/users/Leaflet/following{/other_user}","gists_url":"https://api.github.com/users/Leaflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Leaflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leaflet/subscriptions","organizations_url":"https://api.github.com/users/Leaflet/orgs","repos_url":"https://api.github.com/users/Leaflet/repos","events_url":"https://api.github.com/users/Leaflet/events{/privacy}","received_events_url":"https://api.github.com/users/Leaflet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Leaflet/Leaflet","description":" :leaves: JavaScript library for mobile-friendly interactive maps","fork":false,"url":"https://api.github.com/repos/Leaflet/Leaflet","forks_url":"https://api.github.com/repos/Leaflet/Leaflet/forks","keys_url":"https://api.github.com/repos/Leaflet/Leaflet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Leaflet/Leaflet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Leaflet/Leaflet/teams","hooks_url":"https://api.github.com/repos/Leaflet/Leaflet/hooks","issue_events_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/events{/number}","events_url":"https://api.github.com/repos/Leaflet/Leaflet/events","assignees_url":"https://api.github.com/repos/Leaflet/Leaflet/assignees{/user}","branches_url":"https://api.github.com/repos/Leaflet/Leaflet/branches{/branch}","tags_url":"https://api.github.com/repos/Leaflet/Leaflet/tags","blobs_url":"https://api.github.com/repos/Leaflet/Leaflet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Leaflet/Leaflet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Leaflet/Leaflet/git/refs{/sha}","trees_url":"https://api.github.com/repos/Leaflet/Leaflet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Leaflet/Leaflet/statuses/{sha}","languages_url":"https://api.github.com/repos/Leaflet/Leaflet/languages","stargazers_url":"https://api.github.com/repos/Leaflet/Leaflet/stargazers","contributors_url":"https://api.github.com/repos/Leaflet/Leaflet/contributors","subscribers_url":"https://api.github.com/repos/Leaflet/Leaflet/subscribers","subscription_url":"https://api.github.com/repos/Leaflet/Leaflet/subscription","commits_url":"https://api.github.com/repos/Leaflet/Leaflet/commits{/sha}","git_commits_url":"https://api.github.com/repos/Leaflet/Leaflet/git/commits{/sha}","comments_url":"https://api.github.com/repos/Leaflet/Leaflet/comments{/number}","issue_comment_url":"https://api.github.com/repos/Leaflet/Leaflet/issues/comments{/number}","contents_url":"https://api.github.com/repos/Leaflet/Leaflet/contents/{+path}","compare_url":"https://api.github.com/repos/Leaflet/Leaflet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Leaflet/Leaflet/merges","archive_url":"https://api.github.com/repos/Leaflet/Leaflet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Leaflet/Leaflet/downloads","issues_url":"https://api.github.com/repos/Leaflet/Leaflet/issues{/number}","pulls_url":"https://api.github.com/repos/Leaflet/Leaflet/pulls{/number}","milestones_url":"https://api.github.com/repos/Leaflet/Leaflet/milestones{/number}","notifications_url":"https://api.github.com/repos/Leaflet/Leaflet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Leaflet/Leaflet/labels{/name}","releases_url":"https://api.github.com/repos/Leaflet/Leaflet/releases{/id}","deployments_url":"https://api.github.com/repos/Leaflet/Leaflet/deployments","created_at":"2010-09-22T16:57:44Z","updated_at":"2016-02-16T06:36:49Z","pushed_at":"2016-02-16T10:06:49Z","git_url":"git://github.com/Leaflet/Leaflet.git","ssh_url":"git@github.com:Leaflet/Leaflet.git","clone_url":"https://github.com/Leaflet/Leaflet.git","svn_url":"https://github.com/Leaflet/Leaflet","homepage":"http://leafletjs.com","size":42507,"stargazers_count":12814,"watchers_count":12814,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":2301,"mirror_url":null,"open_issues_count":247,"forks":2301,"open_issues":247,"watchers":12814,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4248"},"html":{"href":"https://github.com/Leaflet/Leaflet/pull/4248"},"issue":{"href":"https://api.github.com/repos/Leaflet/Leaflet/issues/4248"},"comments":{"href":"https://api.github.com/repos/Leaflet/Leaflet/issues/4248/comments"},"review_comments":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4248/comments"},"review_comment":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Leaflet/Leaflet/pulls/4248/commits"},"statuses":{"href":"https://api.github.com/repos/Leaflet/Leaflet/statuses/c967ed33b83bba63d47cfcf491592b6b0c8afbed"}}}}