In this recipe, we will add transit layers to the Google Maps map interface.
Continuing from the previous recipe, Adding the traffic layer, will simplify our work, as we will only replace the
TrafficLayer object with
TransitLayer classes. Remember to copy the code of the original recipe.
Here are the steps to show public transit lines as an overlay:
TrafficLayerrelated lines (the last two ...