Skip to content

Commit

Permalink
fix(ui): Fix copy-paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Mar 11, 2021
1 parent 036752a commit 4479777
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/segment-edit-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
s.type = "module";
s.crossOrigin = "use-credentials";
ons.getScriptPage().appendChild(s);
s.onreadystatechange = s.onload = () => { window.markerConfigInit(); };
s.onreadystatechange = s.onload = () => { window.segmentConfigInit(); };
}
</script>
<style>
Expand Down
6 changes: 3 additions & 3 deletions client/segment-edit-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {VacuumMap} from "./js/js-modules/vacuum-map.js";
import {ApiService} from "./services/api.service.js";

function markerConfigInit() {
function segmentConfigInit() {
const map = new VacuumMap(document.getElementById("segment-edit-map"));
const loadingBarSegmentEdit = document.getElementById("loading-bar-segment-edit");

Expand All @@ -15,7 +15,7 @@ function markerConfigInit() {
}
});

map.initCanvas(mapData, {metaData: "segments", noGotoPoints: true});
map.initCanvas(mapData, {metaData: "segments", noGotoPoints: true, noPath: true});
window.fn.map = map;

document.getElementById("segment-edit-map-page-h1").innerText = "Editing Segments";
Expand Down Expand Up @@ -90,4 +90,4 @@ function markerConfigInit() {
};
}

window.markerConfigInit = markerConfigInit;
window.segmentConfigInit = segmentConfigInit;

0 comments on commit 4479777

Please sign in to comment.