1. Home >
  2. Documentation >
  3. Layers >
  4. trafficlayer
 

trafficlayer

This function allows to add a google.maps.TrafficLayer .

Usage

Parameters

  • None

Example

In this example, trafficlayer does not include options, or anything else, so the object can be reduce into a string

$("#test").gmap3({ 
  map:{
    options:{ 
      center:[34.04924594193164, -118.24104309082031], 
      zoom: 13 
    }
  },
  trafficlayer:{
  }
});
$("#test").gmap3(
  { map:{
      options:{ 
        center:[34.04924594193164, -118.24104309082031], 
        zoom: 13 
      }
    }
  },
  "trafficlayer"
);
Close