OK, did not take a look at the config from @remb0 at first, but in his CONFIG.js he tries use 'trafficmap' in column 2 which is not declared.
I have started to use this and that works:
Code: Select all
var maps = {}
maps.noordwijk = { key:'noordwijk', width:4, latitude: 52.246915, longitude: 4.448097, zoom:9 }
maps.amsterdam = { key:'amsterdam',width:4, latitude: 52.397876, longitude: 4.847882, zoom:10 }
and then you can use these in your columns:
Code: Select all
columns[1]['blocks'] = ['currentweather_big','weather',231,230,228,'9_1',10,11,buttons.buienradar,maps.noordwijk,maps.amsterdam,95,97,98]
I also use this in custom.css to manager the format of the maps:
Code: Select all
.trafficmap {
height: 100%;
}
.col-xs-1.block_trafficmap,
.col-xs-2.block_trafficmap
, .col-xs-3.block_trafficmap, .col-xs-4.block_trafficmap, .col-xs-5.block_trafficmap, .col-xs-6.block_trafficmap, .col-xs-7.block_trafficmap, .col-xs-8.block_trafficmap, .$
padding-left: 10px !important;
padding-right: 10px !important;
height:200px !important;
}
I hope this sets you guys up right.
Cheers,
Ray