Skip to content

Commit c818cf8

Browse files
committed
set preferCanvas to true to hopefully improve performance.
1 parent b28d0cd commit c818cf8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/wwwroot/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
.then(response => { return response.json() })
2020
.then(coordinates => {
2121
const startingEntry = Math.floor(Math.random() * ((coordinates.length - 1) - 0 + 1) + 0);
22-
22+
2323
const map = L
24-
.map('map')
24+
.map('map', {
25+
preferCanvas: true
26+
})
2527
.setView([
2628
coordinates[startingEntry].lat,
2729
coordinates[startingEntry].long

0 commit comments

Comments
 (0)