Commit 66ffa501 authored by barth23's avatar barth23
Browse files

modal on click

parent 1d85bf50
......@@ -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">
......
......@@ -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);
//Minimal
//Carto DB No Labels
var CartoDB_PositronNoLabels = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>',
subdomains: 'abcd',
//Traditional
//Wikimedia
var Wikimedia = L.tileLayer('https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}{r}.png', {
attribution: '<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia</a>',
minZoom: 1,
maxZoom: 19
});
//Traditional
//Minimal
//Carto DB
var CartoDB_Positron = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>',
subdomains: 'abcd',
minZoom: 12,
maxZoom: 19
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <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_PositronNoLabels
"Wikimedia": Wikimedia,
"Carto DB" : CartoDB_Positron
};
//Overlay Maps
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment