Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Try to import WKT
parent
38e37810
master
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+12
-0
...stadt/regionchooser/website/script/simstadt_openlayers.js
with
12 additions
and
0 deletions
+12
-0
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+
12
-
0
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.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets