Commit 3ad6d82d authored by Eric Duminil's avatar Eric Duminil
Browse files

Try to import WKT

parent 38e37810
...@@ -375,6 +375,18 @@ const regionChooser = (function(){ ...@@ -375,6 +375,18 @@ const regionChooser = (function(){
dataPanel.append("<br>\n"); dataPanel.append("<br>\n");
dataPanel.append("More info is available in the "); dataPanel.append("More info is available in the ");
dataPanel.append("<a href='http://simstadt.hft-stuttgart.de/related-softwares/region-chooser/'>SimStadt documentation</a><br>\n"); dataPanel.append("<a href='http://simstadt.hft-stuttgart.de/related-softwares/region-chooser/'>SimStadt documentation</a><br>\n");
dataPanel.append("<form id='importWKT'>\n" +
"<input id='wktPolygon' type='text' placeholder='WKT Polygon' value='POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))'></input>\n" +
"<input type='submit' value='Import Polygon'></input>\n" +
"</form>\n");
document.getElementById('importWKT').addEventListener('submit', importWKT);
}
importWKT = function(e){
console.log("Let's import WKT!!!");
var wktPolygon = document.getElementById("wktPolygon").value;
console.log(wktPolygon);
e.preventDefault(); // to avoid refresh
} }
// Executed by JavaFX when whole page is loaded. // Executed by JavaFX when whole page is loaded.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment