TransitLayer in react-google-maps

Viewed 115

How can I incorporate google maps TransitLayer using react-google-maps? I see that TransitLayer needs an instance of the map, like this:

    var transitLayer = new google.maps.TransitLayer();
    transitLayer.setMap(map);

However, I am not sure how to get the instance, as I am using wrappers GoogleMap and withGoogleMap.

0 Answers
Related