How can I include the traffic layer of google maps?
问题 I'm new to development within android using the Google Maps API. I've been able to set up a map and test out the basic functionality, but I'm having trouble implementing the logic shown in the documentation into my own code. I've researched and found through google's documentation you must have the map check if traffic data is available by using: public final boolean isTrafficEnabled() and then calling the method: public final boolean isTrafficEnabled() { return mMap.isTrafficEnabled(); }