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
5c6ace0f
Commit
5c6ace0f
authored
2 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Check if all same projects.
parent
8625d7f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+12
-2
...stadt/regionchooser/website/script/simstadt_openlayers.js
with
12 additions
and
2 deletions
+12
-2
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
+
12
-
2
View file @
5c6ace0f
...
...
@@ -222,8 +222,18 @@ var regionChooser = (function(){
return
kml_source
.
getFeatureById
(
i
);
})
var
project
=
features
[
0
].
get
(
"
project
"
);
//TODO: Check all the same
var
srsName
=
features
[
0
].
get
(
"
srsName
"
);
//TODO: Check all the same
var
project
=
features
[
0
].
get
(
"
project
"
);
var
srsName
=
features
[
0
].
get
(
"
srsName
"
);
if
(
!
features
.
every
(
f
=>
f
.
get
(
"
project
"
)
===
project
)){
dataPanel
.
append
(
"
<h2 class='error'>Sorry, the CityGML files should all belong to the same project.</h2><br/>
\n
"
);
return
;
}
if
(
!
features
.
every
(
f
=>
f
.
get
(
"
srsName
"
)
===
srsName
)){
dataPanel
.
append
(
"
<h2 class='error'>Sorry, the CityGML files should all be written with the same coordinate system.</h2><br/>
\n
"
);
}
var
citygmlNames
=
features
.
map
(
f
=>
f
.
get
(
"
name
"
));
// Waiting 100ms in order to let the cursor change
setTimeout
(
function
()
{
...
...
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