Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
3ad6d82d
Commit
3ad6d82d
authored
Feb 13, 2023
by
Eric Duminil
Browse files
Try to import WKT
parent
38e37810
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
3ad6d82d
...
...
@@ -375,6 +375,18 @@ const regionChooser = (function(){
dataPanel
.
append
(
"
<br>
\n
"
);
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
(
"
<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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment