google-maps-documentation

TransitLayer class

google.maps.TransitLayer class

A transit layer.

This class extends MVCObject.

Constructor
TransitLayer
TransitLayer()
Parameters:  None
A layer that displays transit lines.
Methods
getMap
getMap()
Parameters:  None
Return Value:  Map
Returns the map on which this layer is displayed.
setMap
setMap(map)
Parameters: 
Return Value:  None
Renders the layer on the specified map. If map is set to null, the layer will be removed.