Read the statement by Michael Teeuw here.
MMM-RAIN-MAP Zoom not working
-
Hi. I am unable to zoom into my property even after changing my defaultZoomLevel to 20. I have included part of the config.js file;
{ module: "MMM-RAIN-MAP", position: "bottom_left", config: { animationSpeedMs: 400, colorScheme: 20, colorizeTime: true, defaultZoomLevel: 20, displayTime: false, displayTimeline: false, displayClockSymbol: false, displayHoursBeforeRain: -1, extraDelayLastFrameMs: 1000, extraDelayCurrentFrameMs: 3000, invertColors: false, markers: [ { lat: 42.2132, lng: -82.8983, color: "red" }, ], mapPositions: [ { lat: 42.2132, lng: -82.8983, zoom: 8, loops: 1 }, { lat: 42.2132, lng: -82.8983, zoom: 8, loops: 2 }, { lat: 42.2132, lng: -82.8983, zoom: 8, loops: 1 }, { lat: 42.2132, lng: -82.8983, zoom: 8, loops: 2 }, { lat: 42.2132, lng: -82.8983, zoom: 8, loops: 2 }, ], mapUrl: "https://a.tile.openstreetmap.de/{z}/{x}/{y}.png", mapHeight: "420px", // must be a pixel value (no percent) mapWidth: "500px", // must be a pixel value (no percent) maxHistoryFrames: -1, maxForecastFrames: -1, substitudeModules: [], updateIntervalInSeconds: 300, } },Thanks,
Brian -
@briantogo you have zoom set to 8 in the mapPositions,
that wins over defaultZoom -
That worked! Thanks for the help!
-
@briantogo awesome!!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login