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
89a21507
Commit
89a21507
authored
1 year ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
mini refactor
parent
71d20b3c
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
+6
-5
...stadt/regionchooser/website/script/simstadt_openlayers.js
with
6 additions
and
5 deletions
+6
-5
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+
6
-
5
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
();
...
...
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