Skip to content
GitLab
Menu
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
Oct 06, 2022
by
Eric Duminil
Browse files
Check if all same projects.
parent
8625d7f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
5c6ace0f
...
@@ -222,8 +222,18 @@ var regionChooser = (function(){
...
@@ -222,8 +222,18 @@ var regionChooser = (function(){
return
kml_source
.
getFeatureById
(
i
);
return
kml_source
.
getFeatureById
(
i
);
})
})
var
project
=
features
[
0
].
get
(
"
project
"
);
//TODO: Check all the same
var
project
=
features
[
0
].
get
(
"
project
"
);
var
srsName
=
features
[
0
].
get
(
"
srsName
"
);
//TODO: Check all the same
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
"
));
var
citygmlNames
=
features
.
map
(
f
=>
f
.
get
(
"
name
"
));
// Waiting 100ms in order to let the cursor change
// Waiting 100ms in order to let the cursor change
setTimeout
(
function
()
{
setTimeout
(
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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