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

Fixed config code - working 3/2020 #33

Open AzidoTetrazole opened 4 years ago

AzidoTetrazole commented 4 years ago

The default config code in the program is broken (missing comma's, missing brackets, single quotes instead of double quotes etc). I was able to get it working. Here is my current working config code for this module. I hope it helps someone else save some time and frustration!

{ module: "MMM-GoogleMapsTraffic", position: "top_center", config: { key: "YOUR GOOGLE MAPS JAVASCRIPT API KEY", lat: 45.0000000, lng: -100.000000, zoom: 6, height: "500px", width: "800px", styledMapType: "night", disableDefaultUI: true, backgroundColor: "hsla(0, 0%, 0%, 0)", }, },

ArnoStrasbourg commented 4 years ago

Yes, it helps a lot !! Thank you

hyboi1 commented 4 years ago

Still can't get the styles to change... { module: "MMM-GoogleMapsTraffic", position: "bottom_center", config: { key: "my key", lat: a place, lng: a place, height: "300px", width: "600px", zoom: 11, styledMapType: "night", disableDefaultUI: true, backgroundColor: "hsla(0, 0%, 0%, 0)", markers: [ { lat: 37.8262316, lng: -122.2920196, fillColor: '#9966ff' }, ], }, },