diff options
Diffstat (limited to 'web/load.js')
-rw-r--r-- | web/load.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/web/load.js b/web/load.js index 88eb1cf0..f6da4e62 100644 --- a/web/load.js +++ b/web/load.js @@ -154,16 +154,10 @@ addScriptFile('//cdnjs.cloudflare.com/ajax/libs/proj4js/' + proj4jsVersion + '/proj4.js'); } - addSvgFile('images/default.svg', 'defaultSvg'); - addSvgFile('images/arrow.svg', 'arrowSvg'); - addSvgFile('images/car.svg', 'carSvg'); - addSvgFile('images/bus.svg', 'busSvg'); - addSvgFile('images/truck.svg', 'truckSvg'); - addSvgFile('images/ship.svg', 'shipSvg'); - addSvgFile('images/plane.svg', 'planeSvg'); - addSvgFile('images/motorcycle.svg', 'motorcycleSvg'); - addSvgFile('images/bicycle.svg', 'bicycleSvg'); - addSvgFile('images/person.svg', 'personSvg'); - addSvgFile('images/animal.svg', 'animalSvg'); + window.Images = ['arrow', 'default', 'animal', 'bicycle', 'boat', 'bus', 'car', 'crane', 'helicopter', + 'motorcycle', 'offroad', 'person', 'pickup', 'plane', 'ship', 'tractor', 'truck', 'van']; + for (i = 0; i < window.Images.length; i++) { + addSvgFile('images/' + window.Images[i] + '.svg', window.Images[i] + 'Svg'); + } })(); |