|
@@ -5,6 +5,8 @@ import { coordinate } from "../Coordinate.js";
|
|
|
import { draw } from "./Draw.js";
|
|
|
import { listenLayer } from "../ListenLayer.js";
|
|
|
import Settings from "../Settings.js";
|
|
|
+import VectorStyle from "../enum/VectorStyle.js";
|
|
|
+import VectorCategory from "../enum/VectorCategory.js";
|
|
|
|
|
|
export default class Render {
|
|
|
constructor(layer) {
|
|
@@ -153,8 +155,14 @@ export default class Render {
|
|
|
}
|
|
|
|
|
|
const lines = dataService.getLines();
|
|
|
- for (const key in lines) {
|
|
|
- this.drawGeometry(lines[key]);
|
|
|
+ const sortLine = Object.keys(lines)
|
|
|
+ .map((key) => dataService.getLine(key))
|
|
|
+ .sort((line) =>
|
|
|
+ line.getCategory() == VectorCategory.Line.GuideLocationLine ? -1 : 1
|
|
|
+ );
|
|
|
+
|
|
|
+ for (const line of sortLine) {
|
|
|
+ this.drawGeometry(line);
|
|
|
}
|
|
|
|
|
|
const curveLines = dataService.getCurveLines();
|