From 05fe393b808749c2e949105aae027c980612e412 Mon Sep 17 00:00:00 2001 From: NatureFreshMilk Date: Fri, 22 Feb 2019 15:01:44 +0100 Subject: [PATCH] fix typo --- server/static/js/overlays/TrainOverlay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/static/js/overlays/TrainOverlay.js b/server/static/js/overlays/TrainOverlay.js index 61bc0ba..69725ec 100644 --- a/server/static/js/overlays/TrainOverlay.js +++ b/server/static/js/overlays/TrainOverlay.js @@ -1,7 +1,7 @@ 'use strict'; //TODO -var PlayerIcon = L.icon({ +var TrainIcon = L.icon({ iconUrl: 'pics/sam.png', iconSize: [16, 32], @@ -29,7 +29,7 @@ var TrainOverlay = L.LayerGroup.extend({ }, createMarker: function(train){ - var marker = L.marker([train.pos.z, train.pos.x], {icon: PlayerIcon}); + var marker = L.marker([train.pos.z, train.pos.x], {icon: TrainIcon}); marker.bindPopup("Train"); return marker;