diff --git a/js/Pathfinding.js b/js/Astar.js similarity index 100% rename from js/Pathfinding.js rename to js/Astar.js diff --git a/js/map.js b/js/map.js index 81fd762..4b796c4 100644 --- a/js/map.js +++ b/js/map.js @@ -8,7 +8,7 @@ import 'https://unpkg.com/lodash@4.17.21/lodash.min.js' import { Product, findProduct, searchProducts } from './Products.js' import { clickOnMap, loadJSON } from './Graph.js' import { calculatePosition } from './Position.js' -import Astar from './Pathfinding.js' +import Astar from './Astar.js' const loadedGraph = await loadJSON() const astar = new Astar(loadedGraph)