Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
VIPSLogic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIPS
VIPSLogic
Merge requests
!174
Bugfix: Now using a more detailed polygon service for municipality search
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bugfix: Now using a more detailed polygon service for municipality search
barkbeetle_n5
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Tor-Einar Skog
requested to merge
barkbeetle_n5
into
develop
1 year ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
2c5e22c2
1 commit,
1 year ago
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/main/webapp/templates/modules/barkbeetle/barkbeetleSeasonTrapsiteForm.ftl
+
3
−
2
Options
@@ -31,6 +31,7 @@
<script type="text/javascript" src="/js/3rdparty/moment.min.js"></script>
<script type="text/javascript">
var theForm = document.getElementById("$
{
formId
}
");
const municipalityPolygonServiceUrl = "https://proxy03.nibio.no/municipality_cache_ws/kommuneListe/N5/4326";
$(document).ready(function()
{
//
M
ake
sure
that
there
is
a
date
picker
present
for
HTML
5
//
date
input
fields
@@ -73,7 +74,7 @@
})
;
//
G
et
C
ounty
and
municipality
fetch
(
"/corsproxy/
https://proxy1.nibio.no/municipality_cache_ws/kommuneListe/N2000/4326/
?lon="
+
lon
+
"&lat="
+
lat
)
fetch
(
"/corsproxy/
"
+
municipalityPolygonServiceUrl
+
"
?lon="
+
lon
+
"&lat="
+
lat
)
.then
(
response
=>
response
.json
())
.then
(
municInfo
=>
{
if
(
municInfo
.length
==
0
)
@@ -97,7 +98,7 @@
.catch
(
error
=>
console
.info
(
error
))
;
//
G
et
C
ounty
and
municipality
from
before
2018
fetch
(
"/corsproxy/
https://proxy1.nibio.no/municipality_cache_ws/kommuneListe/N2000/4326
/2017?lon="
+
lon
+
"&lat="
+
lat
)
fetch
(
"/corsproxy/
/"
+
municipalityPolygonServiceUrl
+
"
/2017?lon="
+
lon
+
"&lat="
+
lat
)
.then
(
response
=>
response
.json
())
.then
(
municInfo
=>
{
if
(
municInfo
.length
==
0
)
Loading