在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):vicmora/MMM-GoogleMapsTraffic开源软件地址(OpenSource Url):https://github.com/vicmora/MMM-GoogleMapsTraffic开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):MMM-GoogleMapsTrafficA module for the MagicMirror² that displays a map, centered at provided coordinates, with Google Maps Traffic information. Installation
Using the moduleTo use this module, add it to the modules array in the var config = {
modules: [
{
module: 'MMM-GoogleMapsTraffic',
position: 'top_left',
config: {
key: 'YOUR_KEY',
lat: 37.8262306,
lng: -122.2920096,
height: '300px',
width: '300px'
styledMapType: "transparent",
disableDefaultUI: true,
backgroundColor: 'hsla(0, 0%, 0%, 0)',
markers: [
{
lat: 37.8262316,
lng: -122.2920196,
fillColor: '#9966ff'
},
],
},
}
]
} Configuration options
Google API KeyObtain an api at Google Developer's page. CoordinatesThe easiest way to obtain latitude and longitude coordinates is via Google Maps. Type an address, location, or center the map where you'd like it centered. The coordinates will appear in the address bar as seen below. Map styleThe easiest way to create your own styled map is via Google Maps APIs Styling Wizard. Create a new file in DependenciesInstalled via
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论