Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ARCHITRAVE
SADE
Commits
66ffa501
Commit
66ffa501
authored
Nov 21, 2020
by
barth23
Browse files
modal on click
parent
1d85bf50
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/itinerary.html
View file @
66ffa501
...
...
@@ -35,6 +35,10 @@
<
/style
>
<!--
error
modal
for
error
messages
-->
<
div
data
-
template
=
"
templates:surround
"
data
-
template
-
with
=
"
templates/modal_error.html
"
data
-
template
-
at
=
"
content-container
"
/>
<!--
error
modal
for
register
entries
-->
<
div
data
-
template
=
"
templates:surround
"
data
-
template
-
with
=
"
templates/modal_register.html
"
data
-
template
-
at
=
"
content-container
"
/>
<
div
class
=
"
arch-content p-content arch-content-margin
"
id
=
"
content
"
>
...
...
@@ -62,13 +66,9 @@
<!--
<
div
id
=
"
mapid
"
class
=
"
arch-content arch-content-margin
"
/>
<
script
>
document
.
getElementById
(
'
map_content
'
).
innerHTML
=
'
<script src="/exist/apps/sade-architrave/templates/paris-project/js/europeMap.js"/>
'
;
</script>
-->
<
script
type
=
"
text/javascript
"
src
=
"
templates/js/jquery.browser.min.js
"
/>
<
script
type
=
"
text/javascript
"
src
=
"
templates/js/edition.js
"
/>
<
script
type
=
"
text/javascript
"
src
=
"
templates/js/registers.js
"
/>
<
div
id
=
"
mapid
"
class
=
"
arch-content arch-content-margin
"
>
...
...
templates/paris-project/js/europeMap.js
View file @
66ffa501
...
...
@@ -53,8 +53,12 @@ function onEachFeature(feature, layer) {
layer
.
setIcon
(
setMarker
(
feature
.
properties
.
type
,
feature
.
properties
.
color
))
}
else
if
(
lang
===
"
de
"
)
{
layer
.
on
(
'
click
'
,
function
()
{
openPlaceName
(
'
plc:textgrid:3pfxn
'
)
});
//layer.bindPopup(feature.properties.description.de);
layer
.
bindPopup
(
'
<iframe src="https://adwmainz.pages.gitlab.rlp.net/regesta-imperii/lab/landing/"></iframe>
'
)
//layer.bindPopup('<iframe src="https://adwmainz.pages.gitlab.rlp.net/regesta-imperii/lab/landing/"></iframe>')
//layer.bindPopup(openPlaceName('plc:textgrid:3pfxn'))
//layer.bindPopup(`<a class="placeName" href="#/" onclick="openPlaceName('plc:textgrid:3pfxn')" textgriduri="('plc:textgrid:3pfxn')"><placename xmlns="http://www.tei-c.org/ns/1.0" type="current" xml:lang="de">Abbeville</placename></a>`)
layer
.
setIcon
(
setMarker
(
feature
.
properties
.
type
,
feature
.
properties
.
color
))
}
}
...
...
@@ -490,22 +494,22 @@ function setMarker(type, color) {
//Init Map
var
map
=
L
.
map
(
'
mapid
'
).
setView
([
48.856667
,
2.351667
],
5
);
//
Minim
al
//
Carto DB No Labels
var
CartoDB_PositronNoLabels
=
L
.
tileLayer
(
'
https://{s}.basemaps.cartocdn.com/light_nolabels
/{z}/{x}/{y}{r}.png
'
,
{
attribution
:
'
©
<a href="https://w
ww.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO
</a>
'
,
subdomains
:
'
abcd
'
,
//
Tradition
al
//
Wikimedia
var
Wikimedia
=
L
.
tileLayer
(
'
https://maps.wikimedia.org/osm-intl
/{z}/{x}/{y}{r}.png
'
,
{
attribution
:
'
<a href="https://w
ikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia
</a>
'
,
minZoom
:
1
,
maxZoom
:
19
});
//
Tradition
al
//
Minim
al
//Carto DB
var
CartoDB_Positron
=
L
.
tileLayer
(
'
https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png
'
,
{
attribution
:
'
© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>
'
,
subdomains
:
'
abcd
'
,
minZoom
:
1
2
,
maxZoom
:
19
attribution
:
'
© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>
'
,
subdomains
:
'
abcd
'
,
minZoom
:
1
,
maxZoom
:
19
}).
addTo
(
map
);
//Overlay Name
...
...
@@ -513,10 +517,10 @@ var franceLabel = overlayName("france", lang);
var
hreLabel
=
overlayName
(
"
hrr
"
,
lang
);
//Layer Groups
//Base Maps
Container
//Base Maps
var
baseMaps
=
{
"
Carto DB
"
:
CartoDB_Positron
,
"
Carto DB
No Labels
"
:
CartoDB_Positron
NoLabels
"
Wikimedia
"
:
Wikimedia
,
"
Carto DB
"
:
CartoDB_Positron
};
//Overlay Maps
...
...
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