开发者

Does Android Google Api provide traffic layer for developers?

开发者 https://www.devze.com 2023-04-01 06:36 出处:网络
Is it possible to create traffic layer using android google api sdk on And开发者_开发百科roid?((MapView) findViewById(R.id.my_map_view)).setTraffic(true);

Is it possible to create traffic layer using android google api sdk on And开发者_开发百科roid?


((MapView) findViewById(R.id.my_map_view)).setTraffic(true);

public void setTraffic(boolean isEnabled) Control whether traffic is shown on the map. This is incompatible with Street View indicators, so they will be deactivated if necessary. They can be drawn over map tiles or over satellite tiles; however, they are optimized for map tiles. Parameters: on - If true, turn traffic lines on. If false, turn them off.

0

精彩评论

暂无评论...
验证码 换一张
取 消