mirror of
https://forge.chapril.org/tykayn/libre-charge-map
synced 2025-06-20 01:34:43 +02:00
add infos temps
This commit is contained in:
parent
74eb8a9c01
commit
c23d4bd404
5 changed files with 34 additions and 26 deletions
|
@ -5,7 +5,7 @@
|
|||
* @type {boolean}
|
||||
*/
|
||||
import lcm_config from './lcm_config.js'
|
||||
import lcm_utils, {valid_qa_message} from './lcm_utils.js'
|
||||
import lcm_utils, { valid_qa_message } from './lcm_utils.js'
|
||||
import lcm_color_utils from './lcm_color_utils.js'
|
||||
import { sendToJOSM, createJOSMEditLink } from './lcm_editor.js'
|
||||
|
||||
|
@ -915,9 +915,11 @@ function fillDetailsWithFeature(feature) {
|
|||
if (!count_features_in_table) {
|
||||
table_details += '<div class="no-feature-in-table">Aucune information renseignée</div>'
|
||||
}
|
||||
// panel de détails dans le volet latéral
|
||||
content += `
|
||||
|
||||
<span class="color-indication" style="background-color: ${lcm_color_utils.getColor(feature)};">${displayOutPowerGuessed}</span>
|
||||
${rechargeTimeText}
|
||||
<div class="buttons-land ">
|
||||
<a href="https://www.openstreetmap.org/directions?from=&to=${feature.geometry.coordinates[1]},${feature.geometry.coordinates[0]}&engine=fossgis_osrm_car#map=14/${feature.geometry.coordinates[1]}/${feature.geometry.coordinates[0]}" class="navigation-link by-car" title="itinéraire en voiture vers cette station"> 🚗</a>
|
||||
<a href="https://www.openstreetmap.org/directions?from=&to=${feature.geometry.coordinates[1]},${feature.geometry.coordinates[0]}&engine=fossgis_osrm_bike#map=14/${feature.geometry.coordinates[1]}/${feature.geometry.coordinates[0]}" class="navigation-link by-car" title="itinéraire en vélo vers cette station">🚴♀️</a>
|
||||
<a href="https://www.openstreetmap.org/directions?from=&to=${feature.geometry.coordinates[1]},${feature.geometry.coordinates[0]}&engine=fossgis_osrm_foot#map=14/${feature.geometry.coordinates[1]}/${feature.geometry.coordinates[0]}" class="navigation-link by-car" title="itinéraire à pied vers cette station">👠</a>
|
||||
|
@ -931,6 +933,9 @@ function fillDetailsWithFeature(feature) {
|
|||
<a href="${panoramaxLink}" target="_blank" class="panoramax-link" title="Voir sur Panoramax">
|
||||
<img src="styles/images/panoramax.ico" alt="icone">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
${rechargeTimeText}
|
||||
|
||||
|
||||
<div class="socket-list">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue