Commit 6b46dc94 authored by barth23's avatar barth23
Browse files

modal component

parent e10dba3f
......@@ -53,13 +53,11 @@ var translation = {
//OnEachFeature Function
function onEachFeature(feature, layer) {
if (lang === "fra") {
layer.bindPopup(feature.properties.description.fra);
//layer.bindPopup('<iframe src="https://adwmainz.pages.gitlab.rlp.net/regesta-imperii/lab/landing/"></iframe>')
layer.on('click', function() { openPlaceName('plc:'+feature.properties.id) });
layer.setIcon(setMarker(feature.properties.type, feature.properties.color))
}
else if (lang === "de") {
//layer.bindPopup(feature.properties.description.de);
layer.bindPopup('<iframe src="https://adwmainz.pages.gitlab.rlp.net/regesta-imperii/lab/landing/"></iframe>')
layer.on('click', function() { openPlaceName('plc:'+feature.properties.id) });
layer.setIcon(setMarker(feature.properties.type, feature.properties.color))
}
}
......
......@@ -52,13 +52,11 @@ var translation = {
//OnEachFeature Function
function onEachFeature(feature, layer) {
if (lang === "fra") {
layer.bindPopup(feature.properties.description.fra);
//layer.bindPopup('<iframe src="https://adwmainz.pages.gitlab.rlp.net/regesta-imperii/lab/landing/"></iframe>')
layer.on('click', function() { openPlaceName('plc:'+feature.properties.id) });
layer.setIcon(setMarker(feature.properties.type, feature.properties.color))
}
else if (lang === "de") {
//layer.bindPopup(feature.properties.description.de);
layer.bindPopup('<iframe src="https://adwmainz.pages.gitlab.rlp.net/regesta-imperii/lab/landing/"></iframe>')
layer.on('click', function() { openPlaceName('plc:'+feature.properties.id) });
layer.setIcon(setMarker(feature.properties.type, feature.properties.color))
}
}
......
......@@ -44,11 +44,11 @@ var translation = {
//OnEachFeature Function
function onEachFeature(feature, layer) {
if (lang === "fra") {
layer.bindPopup(feature.properties.description.fra);
layer.on('click', function() { openPlaceName('plc:'+feature.properties.id) });
layer.setIcon(setMarker(feature.properties.type, feature.properties.color))
}
else if (lang === "de") {
layer.bindPopup(feature.properties.description.de);
layer.on('click', function() { openPlaceName('plc:'+feature.properties.id) });
layer.setIcon(setMarker(feature.properties.type, feature.properties.color))
}
}
......
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