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
83bcdc05
Commit
83bcdc05
authored
Oct 14, 2022
by
Eric Duminil
Browse files
const
parent
014a877f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js
View file @
83bcdc05
var
regionChooser
=
(
function
(){
//TODO: Somehow split in classes. This file is getting too big and mixed
var
publicScope
=
{};
var
fromJavaFX
=
navigator
.
userAgent
.
indexOf
(
'
JavaFX
'
)
!==
-
1
;
var
dataPanel
=
$
(
'
#dataPanel
'
);
var
wgs84Sphere
=
new
ol
.
Sphere
(
6378137
);
const
fromJavaFX
=
navigator
.
userAgent
.
indexOf
(
'
JavaFX
'
)
!==
-
1
;
const
dataPanel
=
$
(
'
#dataPanel
'
);
const
wgs84Sphere
=
new
ol
.
Sphere
(
6378137
);
var
features_by_project
;
var
gmlId
;
...
...
@@ -60,8 +60,8 @@ var regionChooser = (function(){
})
});
var
geoJsonFormat
=
new
ol
.
format
.
GeoJSON
();
var
kmlFormat
=
new
ol
.
format
.
KML
({
extractStyles
:
false
});
const
geoJsonFormat
=
new
ol
.
format
.
GeoJSON
();
const
kmlFormat
=
new
ol
.
format
.
KML
({
extractStyles
:
false
});
kml_source
.
addEventListener
(
"
addfeature
"
,
function
()
{
map
.
getView
().
fitExtent
(
kml_source
.
getExtent
(),
(
map
.
getSize
()));
...
...
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