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
2 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Sort projects
parent
bd29d301
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+4
-2
...stadt/regionchooser/website/script/simstadt_openlayers.js
with
4 additions
and
2 deletions
+4
-2
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+
4
-
2
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
)));
}
...
...
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