Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
RegionChooser
Commits
89a21507
Commit
89a21507
authored
Feb 15, 2023
by
Eric Duminil
Browse files
mini refactor
parent
71d20b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
89a21507
const
styles
=
{};
styles
.
original
=
utils
.
polygon_style
(
'
#447744
'
,
0.2
);
styles
.
highlighted
=
utils
.
polygon_style
(
"
#ff44a2
"
,
0.7
);
styles
.
selected
=
utils
.
polygon_style
(
"
#ffff00
"
,
0.8
);
const
regionChooser
=
(
function
(){
//TODO: Somehow split in classes. This file is getting too big and mixed
...
...
@@ -12,6 +7,12 @@ const regionChooser = (function(){
const
wgs84Sphere
=
new
ol
.
Sphere
(
6378137
);
var
features_by_project
;
const
styles
=
{};
styles
.
original
=
utils
.
polygon_style
(
'
#447744
'
,
0.2
);
styles
.
highlighted
=
utils
.
polygon_style
(
"
#ff44a2
"
,
0.7
);
styles
.
selected
=
utils
.
polygon_style
(
"
#ffff00
"
,
0.8
);
publicScope
.
init
=
function
(){
//NOTE: Only called from JavaFX. At startup, or when Repo has been changed.
kml_source
.
clear
();
...
...
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