Hi,
I don’t know what I am doing wrong, but I can’t get the map to centre on my location.
//New Module Rain Map
{
module: "MMM-RAIN-MAP",
position: "top_right",
config: {
animationSpeedMs: 400,
colorizeTime: true,
defaultZoomLevel: 8,
displayTime: true,
displayTimeline: true,
displayClockSymbol: true,
displayOnlyOnRain: false,
extraDelayLastFrameMs: 1000,
extraDelayCurrentFrameMs: 3000,
markers: [
// { lat: 49.41, lng: 8.717, color: "red" },
{ lat: 50.212, lng: 5.29, color: "green" },
],
mapPositions: [
{ lat: 50.212, lng: 5.29, zoom: 9, loops: 1 },
],
mapUrl: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
mapHeight: "420px",
mapWidth: "420px",
substitudeModules: [],
updateIntervalInSeconds: 300,
}
},
Am I doing something completely wrong? It just centres around Rochefort, and not Cornwall.
EDIT: I’m an idiot… it should be -5 not 5 for lng. Fixed. Thank you for this!