Traffic Layer

Toggle traffic layer

javascript


simplegmaps.init({
  container: '#simplegmaps-1'
});
document.querySelector('#toggleTraffic').addEventListener('click', function(event) {
  simplegmaps.TrafficLayer.toggle();
  event.preventDefault();
});

html


Toggle traffic layer