libre-charge-map/js/lcm_config.js
2025-04-27 22:31:26 +02:00

75 lines
1.9 KiB
JavaScript

const lcm_config = {
osmMention: '&copy; <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> contributors',
showHighPower: true,
overrideQuery: true,
initialZoom: 12,
hide_osmose_markers_if_close_to_existing_charging_stations: true,
hide_osmose_markers_if_close_to_existing_charging_stations_distance: 10, // meters
filter_max_output: true,
filter_max_output_min: 0,
filter_max_output_max: 499,
filter_max_output_default_value: 1,
filter_unknown_output: true,
max_possible_station_output: 499,
// Filtres pour les prises
filterCableAttached: false,
filterCCS: false,
filterType2: false,
filterQuality: false,
filterDomestic: false,
filterChademo: false,
filterType1: false,
filterType3: false,
// Configuration des filtres
filterConfigs: {
'filterUnknownOutput': true,
'filterCableAttached': true,
'filterCCS': true,
'filterType2': true,
'filterQuality': true,
'filterDomestic': true,
'filterChademo': true,
'filterType1': true,
'filterType3': true
},
tileServers: {
osm: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
cycle: 'https://{s}.tile.thunderforest.org/cycle/{z}/{x}/{y}.png',
cartodb: 'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png',
stamen: 'https://a.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png',
transport: 'https://a.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png'
},
tags_to_display_in_popup: [
'description',
'name',
'access',
'capacity',
'date_start',
'charging_station:output',
'socket:type_2',
'socket:type2:output',
'socket:typee',
'socket:typee:output',
'socket:type2_combo',
'socket:type2_combo:output',
'socket:chademo',
'operator', 'ref:EU:EVSE',
'network',
'opening_hours',
'contact',
'phone',
'contact:phone',
'website',
'contact:website',
'ref',
'fee',
'payment',
'payment:contactless',
'authentication:app',
'authentication:debit_card',
]
}
export default lcm_config