Initial Cariflex project
- 40 FlexMeasures assets (10 PV, 10 Bat, 10 Chg, 10 EV) - Geolocated on Martinique - Documentation: architecture, deployment, concepts - Standards: Flex Ready, S2, OpenADR, EPEX SPOT - R&D tools: HAMLET, OPLEM, lemlab - Map patch: Mapbox -> OpenStreetMap
This commit is contained in:
14
config/map-init-patch.js
Normal file
14
config/map-init-patch.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// Cariflex - MapLibre tile layer replacement for FlexMeasures
|
||||
// Replaces Mapbox dependency with free OpenStreetMap tiles
|
||||
|
||||
function addTileLayer(leafletMap, mapboxAccessToken) {
|
||||
/*
|
||||
Add the tile layer for FlexMeasures using OpenStreetMap (no token required).
|
||||
Mapbox replacement - uses free OSM tiles with proper attribution.
|
||||
*/
|
||||
var tileLayer = new L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
||||
maxZoom: 19,
|
||||
});
|
||||
tileLayer.addTo(leafletMap);
|
||||
}
|
||||
Reference in New Issue
Block a user