diff --git a/demos/simple/demo.js b/demos/simple/demo.js
index 2693990..63e3e72 100644
--- a/demos/simple/demo.js
+++ b/demos/simple/demo.js
@@ -123,6 +123,14 @@ function main() {
trackManager.addPOI(event.coordinate);
});
});
+
+ document.querySelector('#createNewPart').addEventListener('click', () => {
+ trackManager.createNewPart();
+ });
+ document.querySelector('#changeActivePart').addEventListener('click', () => {
+ const nextPart = (trackManager.activePart() + 1) % trackManager.partsCount();
+ trackManager.workOnPart(nextPart);
+ });
}
main();
diff --git a/demos/simple/simple.html b/demos/simple/simple.html
index 13aeb49..2b5e2ba 100644
--- a/demos/simple/simple.html
+++ b/demos/simple/simple.html
@@ -51,7 +51,11 @@
reverse
Add poi
-
+
+ Add a new line string
+
+ Change active line string
+