import React from 'react'; import { compose, withProps } from 'recompose'; import { withScriptjs, withGoogleMap, GoogleMap, TrafficLayer, } from 'react-google-maps'; const MapWithATrafficLayer = compose( withProps({ googleMapURL: 'https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places', loadingElement:
, containerElement: , mapElement: , }), withScriptjs, withGoogleMap )(props => (