private static final String DEFAULT_URL = "百度地图url";
LayerView layerView = new LayerView(this); layerView.setURL(DEFAULT_URL);
使用以上代码即可