开发者

Does Android Google Api provide traffic layer for developers?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜