diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/index.js b/templates/index.js index b7b3b58..99701d0 100644 --- a/templates/index.js +++ b/templates/index.js @@ -31,6 +31,9 @@ async function postShortestPath(event){ console.log(res.path) var poly = L.polyline(res.path).addTo(map) + for (const square of res.squares) { + L.rectangle(square.bounds, {color: square.color, weight: 1, fill: false}).addTo(map) + } } function handleMapClick ({latlng}){ |
