Skip to content

Commit

Permalink
Adds hand drawn map
Browse files Browse the repository at this point in the history
  • Loading branch information
lyret committed Jul 13, 2024
1 parent 8aece4e commit 16e25e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added public/data/drawn.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/map/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ export const createMap = async () => {
[57.6291230394961715, 14.9362178462290363],
]);

// Load and add the hand drawn layer
map.groups.drawn = await loadImageOverlay(map, './data/drawn.jpg', [
[57.6306870895, 14.9142416425],
[57.6178044724, 14.9377186881],
]);

// Load and add the height map layer
map.groups.heightmap = L.tileLayer('./data/analysis/height/{z}/{x}/{y}.jpg', {
minZoom: 13,
Expand Down Expand Up @@ -179,6 +185,7 @@ export const createMap = async () => {
Slope: map.groups.slopemap,
Height: map.groups.heightmap,
Terrain: map.groups.terrain,
Handdrawn: map.groups.drawn,
Plazas: map.groups.plazas,
Placement: map.groups.placement,
Names: map.groups.names,
Expand Down

0 comments on commit 16e25e9

Please sign in to comment.