vicmora / MMM-GoogleMapsTraffic

A raspberry pi MagicMirror module that displays a map, centered at provided coordinates, with Google Maps Traffic information.
MIT License
88 stars 32 forks source link

feature: set controls on/off and zoom in config #1

Closed Sp4M closed 6 years ago

Sp4M commented 7 years ago

Hi, it will be very usefull for smart mirrors application to give the possibility to hide UI controls (zoom and street view buttons)

this can be done by setting disableDefaultUI: true with "zoom" and "center" options.

What about adding a boolean disableDefaultUI to the config.js ? By the way, we can also imagine to add a zoom parameter to the config.

It will end up with something like that:

config: 
            {
                key: 'YOUR_KEY',
                lat: 37.8262306,
                lng: -122.2920096,
                height: '300px',
                width: '300px',
                zoom: 10,
                disableDefaultUI: true
            }
Sp4M commented 7 years ago

I created a pull request for that

quedayone commented 7 years ago

I would like this as well.

LexJackson commented 6 years ago

Sp4M I just wanted to thank you for adding the pull request.. Would love to have this committed.. if the vicmora doesn't commit do we fork?

LexJackson commented 6 years ago

...nevermind :-) I figured it out.. Just a little green to git is all. Thanks for your hard work!

vicmora commented 6 years ago

added, sorry for the delayQ