{"action":"created","issue":{"url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/31","labels_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/31/comments","events_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/31/events","html_url":"https://github.com/ga-dc/pbj-project4/issues/31","id":106829517,"number":31,"title":"Can't get autodetect Image Paths for Leaflet in Meteor.","user":{"login":"phantomhaircuts","id":12280803,"avatar_url":"https://avatars.githubusercontent.com/u/12280803?v=3","gravatar_id":"","url":"https://api.github.com/users/phantomhaircuts","html_url":"https://github.com/phantomhaircuts","followers_url":"https://api.github.com/users/phantomhaircuts/followers","following_url":"https://api.github.com/users/phantomhaircuts/following{/other_user}","gists_url":"https://api.github.com/users/phantomhaircuts/gists{/gist_id}","starred_url":"https://api.github.com/users/phantomhaircuts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantomhaircuts/subscriptions","organizations_url":"https://api.github.com/users/phantomhaircuts/orgs","repos_url":"https://api.github.com/users/phantomhaircuts/repos","events_url":"https://api.github.com/users/phantomhaircuts/events{/privacy}","received_events_url":"https://api.github.com/users/phantomhaircuts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-09-16T18:13:22Z","updated_at":"2015-09-16T19:55:23Z","closed_at":null,"body":"Hey all, \r\nWorking on getting markers on a map, using Leaflet and Mapbox in Meteor. Can't seem to get the Leaflet CSS to load. Help me GA instructors you are my only hope."},"comment":{"url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/comments/140868757","html_url":"https://github.com/ga-dc/pbj-project4/issues/31#issuecomment-140868757","issue_url":"https://api.github.com/repos/ga-dc/pbj-project4/issues/31","id":140868757,"user":{"login":"phantomhaircuts","id":12280803,"avatar_url":"https://avatars.githubusercontent.com/u/12280803?v=3","gravatar_id":"","url":"https://api.github.com/users/phantomhaircuts","html_url":"https://github.com/phantomhaircuts","followers_url":"https://api.github.com/users/phantomhaircuts/followers","following_url":"https://api.github.com/users/phantomhaircuts/following{/other_user}","gists_url":"https://api.github.com/users/phantomhaircuts/gists{/gist_id}","starred_url":"https://api.github.com/users/phantomhaircuts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantomhaircuts/subscriptions","organizations_url":"https://api.github.com/users/phantomhaircuts/orgs","repos_url":"https://api.github.com/users/phantomhaircuts/repos","events_url":"https://api.github.com/users/phantomhaircuts/events{/privacy}","received_events_url":"https://api.github.com/users/phantomhaircuts/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T19:55:23Z","updated_at":"2015-09-16T19:55:23Z","body":"sure.\r\n```// Get Current Position:\r\n\r\nvar options = {\r\n  enableHighAccuracy: true,\r\n  timeout: 5000,\r\n  maximumAge: 0\r\n};\r\n\r\n// If Position can be located:\r\n\r\nfunction success(pos) {\r\n  var crd = pos.coords;\r\n  var userLoc = [crd.latitude, crd.longitude];\r\n  console.log('User Position is at: ' + userLoc);\r\n  console.log('Your current position is:');\r\n  console.log('Latitude : ' + crd.latitude);\r\n  console.log('Longitude: ' + crd.longitude);\r\n  console.log('Accurate within about: ' + crd.accuracy + ' meters.');\r\n\r\n  L.marker(userLoc, {\r\n    icon: temp_icon\r\n  }).addTo(map);\r\n};\r\n\r\n// If Position cannot be located:\r\nfunction error(err) {\r\n  console.warn('ERROR(' + err.code + '): ' + err.message);\r\n};\r\n// Find Position\r\nnavigator.geolocation.watchPosition(success, error, options);\r\n\r\n\r\n// Render Map\r\n\r\nTemplate.map.rendered = function() {\r\n  console.log(\"-----Rendering Map-----\")\r\n  temp_icon = L.icon({\r\n    iconUrl: \"http://i.imgur.com/gtfSEkP.png\",\r\n    iconSize: [22, 27]\r\n  })\r\n  // L.Icon.Default.imagePath = 'http://api.tiles.mapbox.com/mapbox.js/'\r\n  map = L.map(\"map\").setView([38.897604, -76.9912402], 16);\r\n  L.tileLayer('https://api.tiles.mapbox.com/v4/phantomhaircuts.1a4dda09/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoicGhhbnRvbWhhaXJjdXRzIiwiYSI6Ijc4NzQzY2IyOTg4NzVhNWFlNzJkZjI5Y2FjNmE3NzNmIn0.1jakhTTyrFLd70ccY0wkRw', {\r\n  maxZoom: 20\r\n  }).addTo(map);\r\n\r\n};```"}}