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
bd9e90c5
Commit
bd9e90c5
authored
Nov 21, 2020
by
barth23
Browse files
update js with tg-id
parent
62d5fc5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
templates/paris-project/js/europeMap.js
View file @
bd9e90c5
...
...
@@ -48,11 +48,11 @@ var translation = {
//OnEachFeature Function
function
onEachFeature
(
feature
,
layer
)
{
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
))
}
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
))
}
}
...
...
templates/paris-project/js/parisMap.js
View file @
bd9e90c5
...
...
@@ -40,11 +40,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
))
}
}
...
...
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