I load my map in:
public class MapFragment extends SupportMapFragment {...
I can't figure out how to turn off traffic layer. I tried getMap().setTrafficEnabled(false); but it doesn't seem to work.
Could someone help me understand how does it work? Thank you.
Thank you @Aaron He! Deprecated getMap() was the issue. After refactoring my code to use getMapAsync() it works! Thanks again!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With