Add marker images and updated code to reference those images in the right location.

This commit is contained in:
Dimosthenis Kaponis 2018-03-06 17:26:00 +00:00 committed by Dimosthenis Kaponis
parent a679abcab4
commit bb7d61258f
3 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 B

View file

@ -270,7 +270,7 @@ module.exports = function(options, repo, params, id, dataResolver) {
var markerImageNames = ['pickup','dropoff'];
markerImageNames.forEach(function(imageName){
var imageData = fs.readFileSync("./" + imageName + "-marker.png");
var imageData = fs.readFileSync(path.join(__dirname, "../public/resources/images/") + imageName + "-marker.png");
// TODO: HANDLE ERROR!
var mkrImage = new Canvas.Image();
mkrImage.src = imageData;