// }] | // }] | ||||
// }]; | // }]; | ||||
series.nodes.template.events.on("hit", function(event) { | |||||
console.log(event.target.dataItem.nb); | |||||
//Popover | |||||
series.nodes.template.events.on("hit", function (event) { | |||||
if (typeof event.target.dataItem.nb !== 'undefined') { | |||||
if ($('.popover-body').length == 0) { | |||||
$('.popup').click(); | |||||
} else { | |||||
$('.popover-body').fadeOut("fast"); | |||||
$('.popover-body').fadeIn("fast"); | |||||
} | |||||
var href = $('.popover-body a').attr('href'); | |||||
// /cartographie-list?search_list_form%5Bcategory%5D%5B%5D=temp&search_list_form%5Bthematic%5D%5B%5D=1 | |||||
var hrefArray = href.split("&"); | |||||
var hrefCategoryArray = hrefArray[0].split('='); | |||||
var hrefCategory = hrefCategoryArray[0] + '=' + event.target.dataItem.id_category; | |||||
var hrefThematicArray = hrefArray[1].split('='); | |||||
var hrefThematic = hrefThematicArray[0] + '=' + event.target.dataItem.id_thematic; | |||||
var hrefFinal = hrefCategory + '&' + hrefThematic; | |||||
$('.popover-body a').attr('href', hrefFinal); | |||||
$('.popover-body .nb').html(event.target.dataItem.nb); | |||||
} | |||||
}); | }); | ||||
series.manyBodyStrength = -25; | series.manyBodyStrength = -25; | ||||
// series.dataFields.linkWith = "link"; | // series.dataFields.linkWith = "link"; | ||||
//distance entre les bulles | //distance entre les bulles | ||||
series.links.template.distance = 1.7; | |||||
series.links.template.distance = 1.3; | |||||
// Set up data fields | // Set up data fields | ||||
series.dataFields.name = "name"; | series.dataFields.name = "name"; | ||||
series.dataFields.id_category = "id_category"; | |||||
series.dataFields.id_thematic = "id_thematic"; | |||||
series.dataFields.children = "children"; | series.dataFields.children = "children"; | ||||
series.dataFields.nb = "nb"; | series.dataFields.nb = "nb"; | ||||
series.links.template.strokeOpacity = 1; | series.links.template.strokeOpacity = 1; | ||||
//tooltip | //tooltip | ||||
series.nodes.template.tooltipText = "{nb}"; | |||||
// series.nodes.template.tooltipText = "{nb}"; |
placement: 'top', | placement: 'top', | ||||
trigger: 'focus', | trigger: 'focus', | ||||
}); | }); | ||||
$('[data-toggle="popover-bulle"]').popover({ | |||||
html: true, | |||||
container: '.popup-bulle', | |||||
trigger: 'click', | |||||
}); | |||||
} | } | ||||
function manageFormIndiv() { | function manageFormIndiv() { |
opacity: 1; | opacity: 1; | ||||
transform: translate3d(0, 0, 0); | transform: translate3d(0, 0, 0); | ||||
} | } | ||||
} | |||||
.popover { | |||||
border: 2px solid $green; | |||||
border-radius: 0; | |||||
font-size: 1.4rem; | |||||
.popover-body { | |||||
color: $green; | |||||
font-family: dinbold; | |||||
padding: 0; | |||||
span { | |||||
padding: 10px 0 10px 50px; | |||||
display: inline-block; | |||||
.nb { | |||||
padding: 0; | |||||
} | |||||
} | |||||
a { | |||||
font-family: dinbold; | |||||
background-image: url($dir-img + 'Picto-Loupe.png'); | |||||
background-repeat: no-repeat; | |||||
background-size: 20px; | |||||
background-position: 15px center; | |||||
color: $green; | |||||
display: inline-block; | |||||
width: 100%; | |||||
background-color: $yellow; | |||||
padding: 5px 0 5px 50px; | |||||
} | |||||
} | |||||
.arrow { | |||||
&:after { | |||||
border-top-color: $green; | |||||
} | |||||
&:before { | |||||
border-top-color: $green; | |||||
} | |||||
} | |||||
} | } |
padding: 10px 10px 40px; | padding: 10px 10px 40px; | ||||
position: relative; | position: relative; | ||||
.popover { | |||||
border: 2px solid $green; | |||||
border-radius: 0; | |||||
font-size: 1.4rem; | |||||
.popover-body { | |||||
color: $green; | |||||
font-family: dinbold; | |||||
padding: 0; | |||||
span { | |||||
padding: 10px 0 10px 50px; | |||||
display: inline-block; | |||||
} | |||||
a { | |||||
font-family: dinbold; | |||||
background-image: url($dir-img + 'Picto-Loupe.png'); | |||||
background-repeat: no-repeat; | |||||
background-size: 20px; | |||||
background-position: 15px center; | |||||
color: $green; | |||||
display: inline-block; | |||||
width: 100%; | |||||
background-color: $yellow; | |||||
padding: 5px 0 5px 50px; | |||||
} | |||||
} | |||||
.arrow { | |||||
&:after { | |||||
border-top-color: $green; | |||||
} | |||||
&:before { | |||||
border-top-color: $green; | |||||
} | |||||
} | |||||
} | |||||
.img-map { | .img-map { | ||||
display: none; | display: none; | ||||
margin-bottom: 75px; | margin-bottom: 75px; | ||||
} | } | ||||
.carto-bulles { | |||||
border: 2px solid $green; | |||||
min-height: 800px; | |||||
.popup-bulle { | |||||
position: relative; | |||||
tspan { | |||||
font-family: dinbold; | |||||
.popover { | |||||
transform: none !important; | |||||
top: 5px !important; | |||||
right: 5px; | |||||
left: auto !important; | |||||
.arrow { | |||||
display: none; | |||||
} | |||||
} | |||||
.carto-bulles { | |||||
border: 2px solid $green; | |||||
min-height: 800px; | |||||
tspan { | |||||
font-family: dinbold; | |||||
} | |||||
} | } | ||||
} | } | ||||
} | } |
"entrypoints": { | "entrypoints": { | ||||
"adminlte-plugins": { | "adminlte-plugins": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | |||||
"/build/vendors-node_modules_jquery_src_jquery_js.2a8ff255.js", | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js", | |||||
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js", | "/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js", | ||||
"/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-57a6be.35767fac.js", | |||||
"/build/adminlte-plugins.a206a66e.js" | |||||
"/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js", | |||||
"/build/adminlte-plugins.058f2e02.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-57a6be.fa890b12.css" | |||||
"/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.fa890b12.css" | |||||
] | ] | ||||
}, | }, | ||||
"adminlte-index": { | "adminlte-index": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-f7c72f.c0107d2e.js", | |||||
"/build/adminlte-index.3de48d32.js" | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js", | |||||
"/build/vendors-node_modules_core-js_internals_add-to-unscopables_js-node_modules_core-js_modules_es_-e14c1c.756bb6b8.js", | |||||
"/build/adminlte-index.b393b588.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/adminlte-index.e4548695.css" | "/build/adminlte-index.e4548695.css" | ||||
}, | }, | ||||
"adminlte-form": { | "adminlte-form": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | |||||
"/build/adminlte-form.4079807b.js" | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db01.8e56d6b5.js", | |||||
"/build/adminlte-form.52acb20e.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/adminlte-form.59862983.css" | "/build/adminlte-form.59862983.css" | ||||
}, | }, | ||||
"adminlte-sort": { | "adminlte-sort": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | |||||
"/build/vendors-node_modules_jquery_src_jquery_js.2a8ff255.js", | |||||
"/build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.js", | |||||
"/build/adminlte-sort.72f3a9ea.js" | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js", | |||||
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.js", | |||||
"/build/adminlte-sort.8ff818a1.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/adminlte-sort.8d9ca659.css" | "/build/adminlte-sort.8d9ca659.css" | ||||
}, | }, | ||||
"adminlte-field-filemanager": { | "adminlte-field-filemanager": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"/build/adminlte-field-filemanager.d8302fb7.js" | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/adminlte-field-filemanager.5b4b01b5.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/adminlte-field-filemanager.aacd1c4c.css" | "/build/adminlte-field-filemanager.aacd1c4c.css" | ||||
}, | }, | ||||
"adminlte-field-collection": { | "adminlte-field-collection": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | |||||
"/build/vendors-node_modules_jquery_src_jquery_js.2a8ff255.js", | |||||
"/build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.js", | |||||
"/build/adminlte-field-collection.db18b61c.js" | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js", | |||||
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.js", | |||||
"/build/adminlte-field-collection.88287cf4.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/adminlte-field-collection.55dda2c2.css" | "/build/adminlte-field-collection.55dda2c2.css" | ||||
}, | }, | ||||
"adminlte-main": { | "adminlte-main": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | |||||
"/build/adminlte-main.e8feeffc.js" | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js", | |||||
"/build/adminlte-main.54e70d9c.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/adminlte-main.87244ec8.css" | "/build/adminlte-main.87244ec8.css" | ||||
}, | }, | ||||
"sov-reminder": { | "sov-reminder": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/sov-reminder.27580486.js" | "/build/sov-reminder.27580486.js" | ||||
], | ], | ||||
"css": [ | "css": [ | ||||
}, | }, | ||||
"sov-ticket": { | "sov-ticket": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/sov-ticket.df76c7a0.js" | "/build/sov-ticket.df76c7a0.js" | ||||
] | ] | ||||
}, | }, | ||||
"app-backend": { | "app-backend": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | |||||
"/build/app-backend.9246973d.js" | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db00.020ca672.js", | |||||
"/build/app-backend.e87ef456.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/app-backend.3d882954.css" | "/build/app-backend.3d882954.css" | ||||
}, | }, | ||||
"app-frontend": { | "app-frontend": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | |||||
"/build/vendors-node_modules_jquery_src_jquery_js.2a8ff255.js", | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js", | |||||
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js", | |||||
"/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js", | "/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js", | ||||
"/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_internals_object-def-7fa577.a4fc2b12.js", | |||||
"/build/app-frontend.0eab0ec9.js" | |||||
"/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_modules_es_array_for-85fc9f.e742e2fb.js", | |||||
"/build/app-frontend.1e3b4ae2.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/app-frontend.1e476ca5.css" | |||||
"/build/app-frontend.2ddca656.css" | |||||
] | ] | ||||
}, | }, | ||||
"app-bulle": { | "app-bulle": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.cbcc88f9.js", | |||||
"/build/vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-e7c189.7a170faa.js", | |||||
"/build/app-bulle.522340dc.js" | |||||
"/build/runtime.ef68e0db.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js", | |||||
"/build/vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-680fc8.d2df4450.js", | |||||
"/build/app-bulle.1628dbdd.js" | |||||
] | ] | ||||
} | } | ||||
} | } |
{ | { | ||||
"build/adminlte-plugins.js": "/build/adminlte-plugins.a206a66e.js", | |||||
"build/adminlte-plugins.js": "/build/adminlte-plugins.058f2e02.js", | |||||
"build/adminlte-index.css": "/build/adminlte-index.e4548695.css", | "build/adminlte-index.css": "/build/adminlte-index.e4548695.css", | ||||
"build/adminlte-index.js": "/build/adminlte-index.3de48d32.js", | |||||
"build/adminlte-index.js": "/build/adminlte-index.b393b588.js", | |||||
"build/adminlte-form.css": "/build/adminlte-form.59862983.css", | "build/adminlte-form.css": "/build/adminlte-form.59862983.css", | ||||
"build/adminlte-form.js": "/build/adminlte-form.4079807b.js", | |||||
"build/adminlte-form.js": "/build/adminlte-form.52acb20e.js", | |||||
"build/adminlte-sort.css": "/build/adminlte-sort.8d9ca659.css", | "build/adminlte-sort.css": "/build/adminlte-sort.8d9ca659.css", | ||||
"build/adminlte-sort.js": "/build/adminlte-sort.72f3a9ea.js", | |||||
"build/adminlte-sort.js": "/build/adminlte-sort.8ff818a1.js", | |||||
"build/adminlte-field-filemanager.css": "/build/adminlte-field-filemanager.aacd1c4c.css", | "build/adminlte-field-filemanager.css": "/build/adminlte-field-filemanager.aacd1c4c.css", | ||||
"build/adminlte-field-filemanager.js": "/build/adminlte-field-filemanager.d8302fb7.js", | |||||
"build/adminlte-field-filemanager.js": "/build/adminlte-field-filemanager.5b4b01b5.js", | |||||
"build/adminlte-field-collection.css": "/build/adminlte-field-collection.55dda2c2.css", | "build/adminlte-field-collection.css": "/build/adminlte-field-collection.55dda2c2.css", | ||||
"build/adminlte-field-collection.js": "/build/adminlte-field-collection.db18b61c.js", | |||||
"build/adminlte-field-collection.js": "/build/adminlte-field-collection.88287cf4.js", | |||||
"build/adminlte-main.css": "/build/adminlte-main.87244ec8.css", | "build/adminlte-main.css": "/build/adminlte-main.87244ec8.css", | ||||
"build/adminlte-main.js": "/build/adminlte-main.e8feeffc.js", | |||||
"build/adminlte-main.js": "/build/adminlte-main.54e70d9c.js", | |||||
"build/sov-reminder.css": "/build/sov-reminder.05d9ff45.css", | "build/sov-reminder.css": "/build/sov-reminder.05d9ff45.css", | ||||
"build/sov-reminder.js": "/build/sov-reminder.27580486.js", | "build/sov-reminder.js": "/build/sov-reminder.27580486.js", | ||||
"build/sov-ticket.js": "/build/sov-ticket.df76c7a0.js", | "build/sov-ticket.js": "/build/sov-ticket.df76c7a0.js", | ||||
"build/app-backend.css": "/build/app-backend.3d882954.css", | "build/app-backend.css": "/build/app-backend.3d882954.css", | ||||
"build/app-backend.js": "/build/app-backend.9246973d.js", | |||||
"build/app-frontend.css": "/build/app-frontend.1e476ca5.css", | |||||
"build/app-frontend.js": "/build/app-frontend.0eab0ec9.js", | |||||
"build/app-bulle.js": "/build/app-bulle.522340dc.js", | |||||
"build/runtime.js": "/build/runtime.cbcc88f9.js", | |||||
"build/app-backend.js": "/build/app-backend.e87ef456.js", | |||||
"build/app-frontend.css": "/build/app-frontend.2ddca656.css", | |||||
"build/app-frontend.js": "/build/app-frontend.1e3b4ae2.js", | |||||
"build/app-bulle.js": "/build/app-bulle.1628dbdd.js", | |||||
"build/runtime.js": "/build/runtime.ef68e0db.js", | |||||
"build/pdfmake.js": "/build/pdfmake.fbf70324.js", | "build/pdfmake.js": "/build/pdfmake.fbf70324.js", | ||||
"build/canvg.js": "/build/canvg.23051f37.js", | |||||
"build/canvg.js": "/build/canvg.881f9fc1.js", | |||||
"build/xlsx.js": "/build/xlsx.05855660.js", | "build/xlsx.js": "/build/xlsx.05855660.js", | ||||
"build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js": "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | |||||
"build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js": "/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | |||||
"build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | |||||
"build/vendors-node_modules_jquery_src_jquery_js.2a8ff255.js": "/build/vendors-node_modules_jquery_src_jquery_js.2a8ff255.js", | |||||
"build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.js": "/build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.js", | |||||
"build/vendors-node_modules_core-js_internals_export_js.2e873f33.js": "/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||||
"build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js": "/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js", | |||||
"build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js": "/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_core-js_modules_es_str-0c9418.b5fc4c19.js", | |||||
"build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.js", | |||||
"build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js": "/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js", | "build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js": "/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js", | ||||
"build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-f7c72f.c0107d2e.js": "/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-f7c72f.c0107d2e.js", | |||||
"build/vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-e7c189.7a170faa.js": "/build/vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-e7c189.7a170faa.js", | |||||
"build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-57a6be.fa890b12.css": "/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-57a6be.fa890b12.css", | |||||
"build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-57a6be.35767fac.js": "/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-57a6be.35767fac.js", | |||||
"build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_internals_object-def-7fa577.a4fc2b12.js": "/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_internals_object-def-7fa577.a4fc2b12.js", | |||||
"build/vendors-node_modules_core-js_internals_add-to-unscopables_js-node_modules_core-js_modules_es_-e14c1c.756bb6b8.js": "/build/vendors-node_modules_core-js_internals_add-to-unscopables_js-node_modules_core-js_modules_es_-e14c1c.756bb6b8.js", | |||||
"build/vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-680fc8.d2df4450.js": "/build/vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-680fc8.d2df4450.js", | |||||
"build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.fa890b12.css": "/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.fa890b12.css", | |||||
"build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js": "/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js", | |||||
"build/vendors-node_modules_core-js_modules_es_array_find_js-_7db00.020ca672.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db00.020ca672.js", | |||||
"build/vendors-node_modules_core-js_modules_es_array_find_js-_7db01.8e56d6b5.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db01.8e56d6b5.js", | |||||
"build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_modules_es_array_for-85fc9f.e742e2fb.js": "/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_modules_es_array_for-85fc9f.e742e2fb.js", | |||||
"build/vendors-node_modules_xlsx_xlsx_js.f1747964.js": "/build/vendors-node_modules_xlsx_xlsx_js.f1747964.js", | "build/vendors-node_modules_xlsx_xlsx_js.f1747964.js": "/build/vendors-node_modules_xlsx_xlsx_js.f1747964.js", | ||||
"build/images/fa-solid-900.svg": "/build/images/fa-solid-900.13de59f1.svg", | "build/images/fa-solid-900.svg": "/build/images/fa-solid-900.13de59f1.svg", | ||||
"build/images/fa-brands-400.svg": "/build/images/fa-brands-400.216edb96.svg", | "build/images/fa-brands-400.svg": "/build/images/fa-brands-400.216edb96.svg", |
foreach ($territoryArray as $territory) { | foreach ($territoryArray as $territory) { | ||||
$resultSortArray[$territory->getDevAlias()] = | $resultSortArray[$territory->getDevAlias()] = | ||||
[ | [ | ||||
AbstractData::TERRITORY => "", | |||||
AbstractData::TERRITORY => $territory->getId(), | |||||
AbstractData::CATEGORY_REVOLT => "0", | AbstractData::CATEGORY_REVOLT => "0", | ||||
AbstractData::CATEGORY_DREAM => "0", | AbstractData::CATEGORY_DREAM => "0", | ||||
AbstractData::CATEGORY_PROJECTBOOST => "0", | AbstractData::CATEGORY_PROJECTBOOST => "0", | ||||
$className = (new ReflectionClass($result))->getShortName(); | $className = (new ReflectionClass($result))->getShortName(); | ||||
if ($result->getIndividualData()) { | if ($result->getIndividualData()) { | ||||
$devAliasTerritory = $result->getIndividualData()->getTerritory()->getDevAlias(); | $devAliasTerritory = $result->getIndividualData()->getTerritory()->getDevAlias(); | ||||
$idTerritory = $result->getIndividualData()->getTerritory()->getId(); | |||||
} elseif ($result->getCollectifData()->getTerritory()) { | } elseif ($result->getCollectifData()->getTerritory()) { | ||||
$devAliasTerritory = $result->getCollectifData()->getTerritory()->getDevAlias(); | $devAliasTerritory = $result->getCollectifData()->getTerritory()->getDevAlias(); | ||||
$idTerritory = $result->getCollectifData()->getTerritory()->getId(); | |||||
} | } | ||||
if (empty($resultSortArray[$devAliasTerritory][AbstractData::TERRITORY])) { | |||||
$resultSortArray[$devAliasTerritory][AbstractData::TERRITORY] = $idTerritory; | |||||
} | |||||
$resultSortArray[$devAliasTerritory][$className] = $resultSortArray[$devAliasTerritory][$className] + 1; | $resultSortArray[$devAliasTerritory][$className] = $resultSortArray[$devAliasTerritory][$className] + 1; | ||||
} | } | ||||
]; | ]; | ||||
// on insere le premier thème de la contribution | // on insere le premier thème de la contribution | ||||
$data[$key]['children'][] = [ | $data[$key]['children'][] = [ | ||||
'name' => $contrib->getThematic()->getName(), | |||||
'name' => $thematic->getName(), | |||||
'id_thematic' => $thematic->getId(), | |||||
'id_category' => AbstractData::getCategoryByLabel($contrib->__toString()), | |||||
'nb' => 1, | 'nb' => 1, | ||||
]; | ]; | ||||
$key++; | $key++; | ||||
} else { | } else { | ||||
$keyTheme = array_search( | $keyTheme = array_search( | ||||
$contrib->getThematic()->getName(), | |||||
$thematic->getName(), | |||||
array_column($data[$keyAlreadyHere]['children'], 'name') | array_column($data[$keyAlreadyHere]['children'], 'name') | ||||
); | ); | ||||
// si le thème de la contribution n'existe pas encore on le créer | // si le thème de la contribution n'existe pas encore on le créer | ||||
if ($keyTheme === false) { | if ($keyTheme === false) { | ||||
$data[$keyAlreadyHere]['children'][] = [ | $data[$keyAlreadyHere]['children'][] = [ | ||||
'name' => $contrib->getThematic()->getName(), | |||||
'name' => $thematic->getName(), | |||||
'id_thematic' => $thematic->getId(), | |||||
'id_category' => AbstractData::getCategoryByLabel($contrib->__toString()), | |||||
'nb' => 1, | 'nb' => 1, | ||||
]; | ]; | ||||
} else { | } else { |
self::CATEGORY_LABEL_PROJECTINSPIRING => self::CATEGORY_PROJECTINSPIRING, | self::CATEGORY_LABEL_PROJECTINSPIRING => self::CATEGORY_PROJECTINSPIRING, | ||||
]; | ]; | ||||
} | } | ||||
static function getCategoryByLabel(string $label): string | |||||
{ | |||||
$categoryArray = self::getCategory(); | |||||
return $categoryArray[$label]; | |||||
} | |||||
} | } |
<div class="img-map img-{{ key }}"> | <div class="img-map img-{{ key }}"> | ||||
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_REVOLT')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | {% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_REVOLT')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | ||||
<img src="{{ 'assets/img/Picto-Revoltes.png' }}" alt="" data-toggle="popover" | <img src="{{ 'assets/img/Picto-Revoltes.png' }}" alt="" data-toggle="popover" | ||||
tabindex="0" data-trigger="focus" data-content='<span>Nombre de Révoltes : {{ result.Revolt }} </span> {{ url }}'> | |||||
tabindex="0" data-content='<span>Nombre de Révoltes : {{ result.Revolt }} </span> {{ url }}'> | |||||
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_DREAM')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | {% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_DREAM')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | ||||
<img src="{{ 'assets/img/Picto-Reve.png' }}" alt="" data-toggle="popover" | <img src="{{ 'assets/img/Picto-Reve.png' }}" alt="" data-toggle="popover" | ||||
tabindex="0" data-trigger="focus" data-content='<span>Nombre de Rêves : {{ result.Dream }} </span> {{ url }}'> | |||||
tabindex="0" data-content='<span>Nombre de Rêves : {{ result.Dream }} </span> {{ url }}'> | |||||
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTBOOST')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | {% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTBOOST')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | ||||
<img src="{{ 'assets/img/Picto-Actions-Booster.png' }}" alt="" data-toggle="popover" | <img src="{{ 'assets/img/Picto-Actions-Booster.png' }}" alt="" data-toggle="popover" | ||||
tabindex="0" data-trigger="focus" data-content='<span>Nombre de projets à booster : {{ result.ProjectBoost }} </span> {{ url }}'> | |||||
tabindex="0" data-content='<span>Nombre de projets à booster : {{ result.ProjectBoost }} </span> {{ url }}'> | |||||
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTINSPIRING')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | {% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTINSPIRING')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | ||||
<img src="{{ 'assets/img/Picto-Actions-Inspirantes.png' }}" alt="" data-toggle="popover" | <img src="{{ 'assets/img/Picto-Actions-Inspirantes.png' }}" alt="" data-toggle="popover" | ||||
tabindex="0" data-trigger="focus" data-content='<span>Nombre de projets inspirants : {{ result.ProjectInspiring }} </span> {{ url }}'> | |||||
tabindex="0" data-content='<span>Nombre de projets inspirants : {{ result.ProjectInspiring }} </span> {{ url }}'> | |||||
</div> | </div> | ||||
{% endfor %} | {% endfor %} | ||||
</div> | </div> |
<div id="carto-int"> | <div id="carto-int"> | ||||
<h1 class="title-interactive">La cartographie interactive Nord Franche-Comté</h1> | <h1 class="title-interactive">La cartographie interactive Nord Franche-Comté</h1> | ||||
<div class="carto-bulles"> | |||||
<div class="popup-bulle"> | |||||
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':'temp'}, thematic:{'':'1'}}}) ~'">Consulter la liste</a>' %} | |||||
<div class="popup" data-toggle="popover-bulle" tabindex="0" data-content='<span>Nombre : <span class="nb"></span></span> {{ url }}'></div> | |||||
<div class="carto-bulles"></div> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
{% endblock %} | {% endblock %} |