Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
giscience
disaster-tools
covid-19-research-map
Commits
86133c5c
Commit
86133c5c
authored
Mar 22, 2020
by
Amon
Browse files
Removed see on map link
parent
cd032c5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
nginx/covid_website/assets/js/map.js
View file @
86133c5c
...
...
@@ -127,12 +127,11 @@ function circleMarkerClick (event, map) {
let
lat
=
geometry
.
coordinates
[
1
]
let
lng
=
geometry
.
coordinates
[
0
]
var
center
=
{
lat
:
geometry
.
coordinates
[
1
],
lng
:
geometry
.
coordinates
[
0
]}
let
link
=
`https://openrouteservice.org/map/#/place/
${
lat
}
,
${
lng
}
/@
${
lng
}
,
${
lat
}
/data/%7B%22layer%22:null,%22country%22:null%7D`
var
popupContent
=
`
Name: <b>
${
properties
.
name
}
</b></br>
Description: <b>
${
properties
.
description
}
</b></br>
Study type: <b>
${
properties
.
study_type
}
</b></br>
Location (lat,lng): <b>
${
lat
}
,
${
lng
}
</b>
- <a target="_blank" href='
${
link
}
'>See on map</a>
</br>
Location (lat,lng): <b>
${
lat
}
,
${
lng
}
</b></br>
Date: <b>
${
properties
.
time
}
</b>`
;
popup
.
setLatLng
(
center
);
popup
.
setContent
(
popupContent
);
...
...
Write
Preview
Supports
Markdown
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