Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed config code - working 3/2020 #33

Open
AzidoTetrazole opened this issue Mar 8, 2020 · 2 comments
Open

Fixed config code - working 3/2020 #33

AzidoTetrazole opened this issue Mar 8, 2020 · 2 comments

Comments

@AzidoTetrazole
Copy link

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
Copy link

Yes, it helps a lot !! Thank you

@hyboi1
Copy link

hyboi1 commented Aug 30, 2020

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'
},
],
},
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants