Hello, my question is in the title: How can I put the trafic on my display on xibo 1.7.9.
Thanks you in advance for help me.
You mean like google traffic map?
In 1.8 series there is a dedicated module for that, in 1.7 series you should still be able to use embedded html module to embed it using your google maps API key, something like:
HTML to embed:
<div id="map"></div>
CSS
<style>
#map {
height: 100%;
}
</style>
HEAD content
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=yourOwnAPIkey&callback=initMap">
</script>
<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 12,
center: {lat: 42.6055556, lng: -83.15},
disableDefaultUI: true
});
var trafficLayer = new google.maps.TrafficLayer();
trafficLayer.setMap(map);
}
function EmbedInit() {
$("#map").height($(window).height());
}
</script>
Obviously ‘yourOwnAPIkey’ should be replaced with your actual API key.
yes, It’s exactly what I mean. Thanks for helping me.