Commit bd9e90c5 authored by barth23's avatar barth23
Browse files

update js with tg-id

parent 62d5fc5d
...@@ -48,11 +48,11 @@ var translation = { ...@@ -48,11 +48,11 @@ var translation = {
//OnEachFeature Function //OnEachFeature Function
function onEachFeature(feature, layer) { function onEachFeature(feature, layer) {
if (lang === "fra") { if (lang === "fra") {
layer.on('click', function() { openPlaceName('plc:textgrid:3pfxn') }); layer.on('click', function() { openPlaceName('plc:'+feature.properties.id) });
layer.setIcon(setMarker(feature.properties.type, feature.properties.color)) layer.setIcon(setMarker(feature.properties.type, feature.properties.color))
} }
else if (lang === "de") { else if (lang === "de") {
layer.on('click', function() { openPlaceName('plc:textgrid:3pfxn') }); layer.on('click', function() { openPlaceName('plc:'+feature.properties.id) });
layer.setIcon(setMarker(feature.properties.type, feature.properties.color)) layer.setIcon(setMarker(feature.properties.type, feature.properties.color))
} }
} }
......
...@@ -40,11 +40,11 @@ var translation = { ...@@ -40,11 +40,11 @@ var translation = {
//OnEachFeature Function //OnEachFeature Function
function onEachFeature(feature, layer) { function onEachFeature(feature, layer) {
if (lang === "fra") { 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)) layer.setIcon(setMarker(feature.properties.type, feature.properties.color))
} }
else if (lang === "de") { 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)) 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