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
7e96e8ba
Commit
7e96e8ba
authored
Oct 13, 2022
by
Eric Duminil
Browse files
Sort projects
parent
bd29d301
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
7e96e8ba
...
...
@@ -98,8 +98,10 @@ var regionChooser = (function(){
feature
[
"
source
"
]
=
"
CityGML
"
;
});
features_by_project
=
groupBy
(
kml_source
.
getFeatures
(),
"
project
"
);
var
features
=
Array
.
from
(
kml_source
.
getFeatures
());
// Sort projects
features
.
sort
((
a
,
b
)
=>
a
.
project
.
localeCompare
(
b
.
project
));
features_by_project
=
groupBy
(
features
,
"
project
"
);
// Sort CityGMLs inside each project
Object
.
values
(
features_by_project
).
forEach
(
features
=>
features
.
sort
((
a
,
b
)
=>
a
.
name
.
localeCompare
(
b
.
name
)));
}
...
...
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