Add marker images and updated code to reference those images in the right location.
This commit is contained in:
parent
a679abcab4
commit
bb7d61258f
3 changed files with 1 additions and 1 deletions
BIN
public/resources/images/dropoff-marker.png
Normal file
BIN
public/resources/images/dropoff-marker.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 474 B |
BIN
public/resources/images/pickup-marker.png
Normal file
BIN
public/resources/images/pickup-marker.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 486 B |
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue