feat: Ajout des noms courts
continuous-integration/drone Build is failing
Details
continuous-integration/drone Build is failing
Details
This commit is contained in:
parent
a6a7e50ab9
commit
1999522e97
|
@ -41,11 +41,12 @@
|
||||||
const columns = {
|
const columns = {
|
||||||
finessET: 0,
|
finessET: 0,
|
||||||
name: 1,
|
name: 1,
|
||||||
dep: 2,
|
name_long: 2,
|
||||||
tel: 3,
|
dep: 3,
|
||||||
siret: 4,
|
tel: 4,
|
||||||
x: 5,
|
siret: 5,
|
||||||
y: 6,
|
x: 6,
|
||||||
|
y: 7,
|
||||||
}
|
}
|
||||||
var json = fetch('./data.json').then(response => {
|
var json = fetch('./data.json').then(response => {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
@ -56,7 +57,7 @@
|
||||||
const marker = L
|
const marker = L
|
||||||
.marker([msp[columns.x], msp[columns.y]])
|
.marker([msp[columns.x], msp[columns.y]])
|
||||||
.bindPopup(
|
.bindPopup(
|
||||||
msp[columns.name] + " (" + msp[columns.dep] + ")<br>" +
|
(msp[columns.name_long] ? msp[columns.name_long] : msp[columns.name]) + " (" + msp[columns.dep] + ")<br>" +
|
||||||
"Établissement FINESS N°" + msp[columns.finessET] + "<br>" +
|
"Établissement FINESS N°" + msp[columns.finessET] + "<br>" +
|
||||||
(msp[columns.siret] != null ? "SIREN : <a rel='noreferrer' target='_blank' href='https://data.inpi.fr/entreprises/" + msp[columns.siret].substring(0, 9) + "'>" + msp[columns.siret].substring(0, 9) + "</a><br>" : "") +
|
(msp[columns.siret] != null ? "SIREN : <a rel='noreferrer' target='_blank' href='https://data.inpi.fr/entreprises/" + msp[columns.siret].substring(0, 9) + "'>" + msp[columns.siret].substring(0, 9) + "</a><br>" : "") +
|
||||||
(msp[columns.tel] != null ? "<a href='tel:" + msp[columns.tel] + "'>" + msp[columns.tel] + "</a>" : "")
|
(msp[columns.tel] != null ? "<a href='tel:" + msp[columns.tel] + "'>" + msp[columns.tel] + "</a>" : "")
|
||||||
|
|
|
@ -55,7 +55,7 @@ header_drop = [
|
||||||
'section',
|
'section',
|
||||||
# 'nofinesset',
|
# 'nofinesset',
|
||||||
'nofinessej',
|
'nofinessej',
|
||||||
'rs',
|
#'rs',
|
||||||
#'rslongue',
|
#'rslongue',
|
||||||
'complrs',
|
'complrs',
|
||||||
'compldistrib',
|
'compldistrib',
|
||||||
|
|
Loading…
Reference in New Issue