<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[MMM-Google-Route label cleanup help]]></title><description><![CDATA[<p dir="auto">Hi all, I am setting up a new MM and installed the MMM-Google-Route module. It is working just fine with my api key, but I am trying to remove, resize, or just move the labels/icons that say “Map Data © 2022 Google, Terms of Use, Report a map error”.</p>
<p dir="auto">I’ve tried reading the linked mapOptions reference: <a href="https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions" target="_blank" rel="noopener noreferrer nofollow ugc">https://developers.google.com/maps/documentation/javascript/reference/map#MapOptions</a>, but am unable to get the map on the screen to simplify the view to not have those icons overlap on the maps. Any help would be most appreciated!</p>
]]></description><link>https://forum.magicmirror.builders/topic/17216/mmm-google-route-label-cleanup-help</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 11:10:22 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/17216.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Sep 2022 22:03:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MMM-Google-Route label cleanup help on Tue, 20 Sep 2022 13:13:20 GMT]]></title><description><![CDATA[<p dir="auto">Hope this will help -</p>
<p dir="auto">Using the module<br />
To use this module, clone this repo to your MagicMirror/modules/ directory.</p>
<p dir="auto">git clone <a href="https://github.com/mrdis/MMM-google-route.git" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/mrdis/MMM-google-route.git</a></p>
<p dir="auto">And add the following configuration block to the modules array in the config/config.js file:</p>
<p dir="auto">var config = {<br />
modules: [</p>
<pre><code>    {
        module: 'MMM-google-route',
        position: 'top_left',
        config: {
            key: '&lt;YOUR_KEY&gt;',
            directionsRequest:{
                origin: '&lt;ROUTE START&gt;',
                destination: '&lt;ROUTE FINISH&gt;'
            }
        }
    }

]
</code></pre>
<p dir="auto">}<br />
Configuration options<br />
Option	Description<br />
key	Required Google api key. See below for help.<br />
Type: string<br />
directionsRequest	Required The directions to show on the map.<br />
Type: google.maps.DirectionsRequest interface<br />
language	Directions language<br />
Type: string<br />
Default value: en<br />
title	Optional title to show above the map.<br />
Type: string<br />
height	Height of the map.<br />
Type: string (pixels)<br />
Default value: 300px<br />
width	Width of the map.<br />
Type: string (pixels)<br />
Default value: 300px<br />
refreshPeriod	Period between API requests. Set to 0 to disable periodic refresh.<br />
Type: integer (minutes)<br />
Default value: 1<br />
minimumRefreshPeriod	Set a minimum period between API requests. This is useful when used in combination with listen.<br />
Type: integer (minutes)<br />
Default value: 0<br />
showAge	Show how long ago the routes were updated.<br />
Type: boolean<br />
Default value: true<br />
showMap	Show the map.<br />
Type: boolean<br />
Default value: true<br />
fontSize	Size of the title and routes font. Use a percentage to specify size relative to default.<br />
HTML DOM Style fontSize property<br />
Type: string<br />
Default value: 100%<br />
mapOptions	Map visualization options.<br />
Type: google.maps.MapOptions interface<br />
listen	Refresh the route when receiving these notifications and use the location contained in the notification as destination (if available).<br />
Specify the ID of the notifications to listen for.<br />
Type: string[]<br />
Default value: []<br />
Google API Key<br />
Obtain an api key at Google Developer’s page.</p>
<p dir="auto">Google directions service errors<br />
If “Google directions service status:” error message appears, it means that the request to the Google directions service failed for some reason.</p>
<p dir="auto">The list of error codes and their meanings can be found here.</p>
<p dir="auto">Importance of correct date/time settings<br />
If “Google directions service status: INVALID_REQUEST” error message appears, it could be due to an invalid setting of the current date and time on the device that is displaying the mirror interface.</p>
<p dir="auto">This is due to the departureTime field of the drivingOptions field passed to the directions API being set to one minute from the current time, and google service checking that this timestamp is in the future. Basically I have using this cloning while developing an app for <a href="https://enterprise.affle.com/mobile-app-development" target="_blank" rel="noopener noreferrer nofollow ugc">mobile app development company</a> Using MMM-ModuleScheduler to configure the route refresh interval<br />
You can use the MMM-ModuleScheduler module to trigger route updates using a certain schedule.<br />
This may be useful for example to refresh the route more frequently in the morning and less frequently during the rest of the day, reducing the risk of exceeding the query limit set by google.</p>
<p dir="auto">Just set “MMM-google-route/refresh” as the notification id in the notification_schedule configuration parameter of the module, e.g.</p>
<pre><code>{
    module: 'MMM-ModuleScheduler',
    config: {
        notification_schedule: [
            // Refresh the route every minute from 7:00 AM to 8:00 AM, monday to friday
            { notification: 'MMM-google-route/refresh', schedule: '* 7 * * 1-5' }
        ]
    }
},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/104643</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/104643</guid><dc:creator><![CDATA[cabalpaul90]]></dc:creator><pubDate>Tue, 20 Sep 2022 13:13:20 GMT</pubDate></item></channel></rss>